From f7b6b1e99c12c7a91f0ed76adb1e51c5dafc06b7 Mon Sep 17 00:00:00 2001 From: Rob Moen Date: Thu, 5 Sep 2013 16:39:13 -0700 Subject: [PATCH] Add abstract method for getMediaSources. Change-Id: I8c51d91a1f8ad1a8c688a6dd3de8ac53d4f8d3f9 --- modules/ve/init/ve.init.Platform.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/ve/init/ve.init.Platform.js b/modules/ve/init/ve.init.Platform.js index f443b5c7bd..ef65df0858 100644 --- a/modules/ve/init/ve.init.Platform.js +++ b/modules/ve/init/ve.init.Platform.js @@ -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' ); +};