Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7429710
ve.ui.SurfaceWindowManager.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ve.ui.SurfaceWindowManager.js
View Options
/*!
* VisualEditor UserInterface SurfaceWindowManager class.
*
* @copyright See AUTHORS.txt
*/
/**
* Window manager for desktop inspectors.
*
* @class
* @extends ve.ui.WindowManager
*
* @constructor
* @param {ve.ui.Surface} surface Surface this belongs to
* @param {Object} [config] Configuration options
* @param {ve.ui.Overlay} [config.overlay] Overlay to use for menus
*/
ve
.
ui
.
SurfaceWindowManager
=
function
VeUiSurfaceWindowManager
(
surface
,
config
)
{
// Properties
// Set up surface before calling the parent so we can request
// specific surface-related details from within the constructor.
this
.
surface
=
surface
;
// Parent constructor
ve
.
ui
.
SurfaceWindowManager
.
super
.
call
(
this
,
config
);
};
/* Inheritance */
OO
.
inheritClass
(
ve
.
ui
.
SurfaceWindowManager
,
ve
.
ui
.
WindowManager
);
/* Methods */
/**
* Override the window manager's directionality method to get the
* directionality from the surface. The surface sometimes does not
* have a directionality set; fallback to direction from the document.
*
* @return {string} UI directionality
*/
ve
.
ui
.
SurfaceWindowManager
.
prototype
.
getDir
=
function
()
{
return
this
.
surface
.
getDir
()
||
// Fallback to parent method
ve
.
ui
.
SurfaceWindowManager
.
super
.
prototype
.
getDir
.
call
(
this
);
};
/**
* Get surface.
*
* @return {ve.ui.Surface} Surface this belongs to
*/
ve
.
ui
.
SurfaceWindowManager
.
prototype
.
getSurface
=
function
()
{
return
this
.
surface
;
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 22, 10:07 (10 h, 22 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
4d/19/607562a9df9823ea12b185f3e819
Default Alt Text
ve.ui.SurfaceWindowManager.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment