Debian Codegraph @

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

raw symbols SCIP
1 /*!
2 * VisualEditor UserInterface DesktopInspectorWindowManager class.
3 *
4 * @copyright See AUTHORS.txt
5 */
6
7 /**
8 * Window manager for desktop inspectors.
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.DesktopInspectorWindowManager = function VeUiDesktopInspectorWindowManager( surface, config ) {
19 // Parent constructor
20 ve.ui.DesktopInspectorWindowManager.super.call( this, surface, config );
21 };
22
23 /* Inheritance */
24
25 OO.inheritClass( ve.ui.DesktopInspectorWindowManager, ve.ui.SurfaceWindowManager );
26
27 /* Static Properties */
28
29 ve.ui.DesktopInspectorWindowManager.static.sizes = {
30 small: {
31 width: 200,
32 maxHeight: '100%'
33 },
34 medium: {
35 width: 300,
36 maxHeight: '100%'
37 },
38 large: {
39 width: 400,
40 maxHeight: '100%'
41 },
42 full: {
43 // These can be non-numeric because they are never used in calculations
44 width: '100%',
45 height: '100%'
46 }
47 };