/*! * VisualEditor user interface MediaDialog class. * * @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ /** * Document dialog. * * @class * @abstract * @extends ve.ui.Dialog * * @constructor * @param {ve.Surface} surface */ ve.ui.MediaDialog = function VeUiMediaDialog( surface ) { // Parent constructor ve.ui.Dialog.call( this, surface ); }; /* Inheritance */ ve.inheritClass( ve.ui.MediaDialog, ve.ui.Dialog ); /* Static Properties */ ve.ui.MediaDialog.static.titleMessage = 'visualeditor-dialog-media-title'; ve.ui.MediaDialog.static.icon = 'picture'; ve.ui.MediaDialog.static.modelClasses = [ ve.dm.MWImageNode ]; /* Registration */ ve.ui.dialogFactory.register( 'media', ve.ui.MediaDialog ); ve.ui.viewRegistry.register( 'media', ve.ui.MediaDialog );