Debian Codegraph @

extensions/VisualEditor/lib/ve/collab/ve.ui.CollabTool.js

raw symbols SCIP
1 /*!
2 * VisualEditor collab tool class.
3 *
4 * @copyright 2011-2023 VisualEditor Team and others; see http://ve.mit-license.org
5 */
6
7 ve.ui.CollabTool = function VeUiCollabTool() {
8 ve.ui.CollabTool.super.apply( this, arguments );
9 };
10
11 OO.inheritClass( ve.ui.CollabTool, OO.ui.Tool );
12
13 ve.ui.CollabTool.static.name = 'collab';
14
15 ve.ui.CollabTool.static.group = 'help';
16
17 ve.ui.CollabTool.static.icon = 'userAdd';
18
19 ve.ui.CollabTool.static.title = OO.ui.deferMsg( 'visualeditor-collab-hostbutton-label' );
20
21 ve.ui.CollabTool.static.autoAddToCatchall = false;
22
23 ve.ui.CollabTool.static.displayBothIconAndLabel = true;
24
25 ve.ui.CollabTool.prototype.onUpdateState = function () {
26 };
27
28 ve.ui.CollabTool.prototype.onToolbarResize = function () {
29 };
30
31 ve.ui.CollabTool.prototype.onSelect = function () {
32 this.setActive( false );
33 ve.collab.start();
34 };
35
36 ve.ui.toolFactory.register( ve.ui.CollabTool );