Add abstract method for getMediaSources.

Change-Id: I8c51d91a1f8ad1a8c688a6dd3de8ac53d4f8d3f9
This commit is contained in:
Rob Moen 2013-09-05 16:39:13 -07:00
parent c0fe8b877c
commit f7b6b1e99c

View file

@ -116,3 +116,14 @@ ve.init.Platform.prototype.getSystemPlatform = function () {
ve.init.Platform.prototype.getUserLanguages = function () {
throw new Error( 've.init.Platform.getUserLanugages must be overridden in subclass' );
};
/**
* Get a list of URL entry points where media can be found.
*
* @method
* @abstract
* @returns {string[]} API URLs
*/
ve.init.Platform.prototype.getMediaSources = function () {
throw new Error( 've.init.Platform.getMediaSources must be overridden in subclass' );
};