%PDF- %PDF-
Direktori : /www/varak.net/wiki.varak.net/extensions/VisualEditor/lib/ve/src/ui/ |
Current File : /www/varak.net/wiki.varak.net/extensions/VisualEditor/lib/ve/src/ui/ve.ui.DesktopSurface.js |
/*! * VisualEditor UserInterface DesktopSurface class. * * @copyright 2011-2016 VisualEditor Team and others; see http://ve.mit-license.org */ /** * A surface is a top-level object which contains both a surface model and a surface view. * This is the desktop version of the surface. * * @class * @extends ve.ui.Surface * * @constructor * @param {HTMLDocument|Array|ve.dm.LinearData|ve.dm.Document} dataOrDoc Document data to edit * @param {Object} [config] Configuration options */ ve.ui.DesktopSurface = function VeUiDesktopSurface() { // Parent constructor ve.ui.DesktopSurface.super.apply( this, arguments ); }; /* Inheritance */ OO.inheritClass( ve.ui.DesktopSurface, ve.ui.Surface ); /* Methods */ /** * @inheritdoc */ ve.ui.DesktopSurface.prototype.createContext = function () { return new ve.ui.DesktopContext( this ); }; /** * @inheritdoc */ ve.ui.DesktopSurface.prototype.createDialogWindowManager = function () { return new ve.ui.SurfaceWindowManager( this, { factory: ve.ui.windowFactory } ); };