Debian Codegraph @

extensions/VisualEditor/lib/ve/src/ui/windowmanagers/ve.ui.MobileWindowManager.js

raw symbols SCIP
1 /*!
2 * VisualEditor UserInterface MobileWindowManager class.
3 *
4 * @copyright See AUTHORS.txt
5 */
6
7 /**
8 * Window manager for mobile windows.
9 *
10 * @class
11 * @extends ve.ui.SurfaceWindowManager
12 *
13 * @constructor
14 * @param {ve.ui.Surface} surface Surface this belongs to
15 * @param {Object} [config] Configuration options
16 * @param {ve.ui.Overlay} [config.overlay] Overlay to use for menus
17 */
18 ve.ui.MobileWindowManager = function VeUiMobileWindowManager( surface, config ) {
19 // Parent constructor
20 ve.ui.MobileWindowManager.super.call( this, surface, config );
21
22 // Initialization
23 this.$element.addClass( 've-ui-mobileWindowManager' );
24 };
25
26 /* Inheritance */
27
28 OO.inheritClass( ve.ui.MobileWindowManager, ve.ui.SurfaceWindowManager );
29
30 /* Static Properties */
31
32 // Only allow 'small' and 'full' sizes, defaulting to 'full'
33 ve.ui.MobileWindowManager.static.sizes = {
34 small: ve.ui.MobileWindowManager.super.static.sizes.small,
35 full: ve.ui.MobileWindowManager.super.static.sizes.full
36 };
37
38 ve.ui.MobileWindowManager.static.defaultSize = 'full';