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'; |
11 | 11 |
12 /** @suppress {duplicate} */ | 12 /** @suppress {duplicate} */ |
13 var remoting = remoting || {}; | 13 var remoting = remoting || {}; |
14 | 14 |
15 /** | 15 /** |
16 * @param {HTMLElement} sendCtrlAltDel | 16 * @param {Element} sendCtrlAltDel |
17 * @param {HTMLElement} sendPrtScrn | 17 * @param {Element} sendPrtScrn |
18 * @param {HTMLElement} resizeToClient | 18 * @param {Element} resizeToClient |
19 * @param {HTMLElement} shrinkToFit | 19 * @param {Element} shrinkToFit |
20 * @param {HTMLElement?} fullscreen | 20 * @param {Element?} fullscreen |
21 * @constructor | 21 * @constructor |
22 */ | 22 */ |
23 remoting.OptionsMenu = function(sendCtrlAltDel, sendPrtScrn, | 23 remoting.OptionsMenu = function(sendCtrlAltDel, sendPrtScrn, |
24 resizeToClient, shrinkToFit, fullscreen) { | 24 resizeToClient, shrinkToFit, fullscreen) { |
25 this.sendCtrlAltDel_ = sendCtrlAltDel; | 25 this.sendCtrlAltDel_ = sendCtrlAltDel; |
26 this.sendPrtScrn_ = sendPrtScrn; | 26 this.sendPrtScrn_ = sendPrtScrn; |
27 this.resizeToClient_ = resizeToClient; | 27 this.resizeToClient_ = resizeToClient; |
28 this.shrinkToFit_ = shrinkToFit; | 28 this.shrinkToFit_ = shrinkToFit; |
29 this.fullscreen_ = fullscreen; | 29 this.fullscreen_ = fullscreen; |
30 /** | 30 /** |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 remoting.OptionsMenu.prototype.onShrinkToFit_ = function() { | 90 remoting.OptionsMenu.prototype.onShrinkToFit_ = function() { |
91 if (this.clientSession_) { | 91 if (this.clientSession_) { |
92 this.clientSession_.setScreenMode(!this.clientSession_.getShrinkToFit(), | 92 this.clientSession_.setScreenMode(!this.clientSession_.getShrinkToFit(), |
93 this.clientSession_.getResizeToClient()); | 93 this.clientSession_.getResizeToClient()); |
94 } | 94 } |
95 }; | 95 }; |
96 | 96 |
97 remoting.OptionsMenu.prototype.onFullscreen_ = function() { | 97 remoting.OptionsMenu.prototype.onFullscreen_ = function() { |
98 remoting.fullscreen.toggle(); | 98 remoting.fullscreen.toggle(); |
99 }; | 99 }; |
OLD | NEW |