OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @fileoverview | 6 * @fileoverview |
7 * Class handling the in-session options menu (or menus in the case of apps v1). | 7 * Class handling the in-session options menu (or menus in the case of apps v1). |
8 */ | 8 */ |
9 | 9 |
10 'use strict'; | 10 'use strict'; |
(...skipping 16 matching lines...) Expand all Loading... |
27 newConnection, fullscreen, | 27 newConnection, fullscreen, |
28 startStopRecording) { | 28 startStopRecording) { |
29 this.sendCtrlAltDel_ = sendCtrlAltDel; | 29 this.sendCtrlAltDel_ = sendCtrlAltDel; |
30 this.sendPrtScrn_ = sendPrtScrn; | 30 this.sendPrtScrn_ = sendPrtScrn; |
31 this.resizeToClient_ = resizeToClient; | 31 this.resizeToClient_ = resizeToClient; |
32 this.shrinkToFit_ = shrinkToFit; | 32 this.shrinkToFit_ = shrinkToFit; |
33 this.newConnection_ = newConnection; | 33 this.newConnection_ = newConnection; |
34 this.fullscreen_ = fullscreen; | 34 this.fullscreen_ = fullscreen; |
35 this.startStopRecording_ = startStopRecording; | 35 this.startStopRecording_ = startStopRecording; |
36 | 36 |
37 /** | 37 /** @private {remoting.DesktopConnectedView} */ |
38 * @type {remoting.DesktopConnectedView} | |
39 * @private | |
40 */ | |
41 this.desktopConnectedView_ = null; | 38 this.desktopConnectedView_ = null; |
42 | 39 |
43 this.sendCtrlAltDel_.addEventListener( | 40 this.sendCtrlAltDel_.addEventListener( |
44 'click', this.onSendCtrlAltDel_.bind(this), false); | 41 'click', this.onSendCtrlAltDel_.bind(this), false); |
45 this.sendPrtScrn_.addEventListener( | 42 this.sendPrtScrn_.addEventListener( |
46 'click', this.onSendPrtScrn_.bind(this), false); | 43 'click', this.onSendPrtScrn_.bind(this), false); |
47 this.resizeToClient_.addEventListener( | 44 this.resizeToClient_.addEventListener( |
48 'click', this.onResizeToClient_.bind(this), false); | 45 'click', this.onResizeToClient_.bind(this), false); |
49 this.shrinkToFit_.addEventListener( | 46 this.shrinkToFit_.addEventListener( |
50 'click', this.onShrinkToFit_.bind(this), false); | 47 'click', this.onShrinkToFit_.bind(this), false); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 remoting.OptionsMenu.prototype.onStartStopRecording_ = function() { | 136 remoting.OptionsMenu.prototype.onStartStopRecording_ = function() { |
140 if (this.desktopConnectedView_) { | 137 if (this.desktopConnectedView_) { |
141 this.desktopConnectedView_.startStopRecording(); | 138 this.desktopConnectedView_.startStopRecording(); |
142 } | 139 } |
143 } | 140 } |
144 | 141 |
145 /** | 142 /** |
146 * @type {remoting.OptionsMenu} | 143 * @type {remoting.OptionsMenu} |
147 */ | 144 */ |
148 remoting.optionsMenu = null; | 145 remoting.optionsMenu = null; |
OLD | NEW |