| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 representing the client tool-bar. | 7 * Class representing the client tool-bar. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 * @return {remoting.OptionsMenu} | 64 * @return {remoting.OptionsMenu} |
| 65 */ | 65 */ |
| 66 remoting.Toolbar.prototype.createOptionsMenu = function() { | 66 remoting.Toolbar.prototype.createOptionsMenu = function() { |
| 67 return new remoting.OptionsMenu( | 67 return new remoting.OptionsMenu( |
| 68 document.getElementById('send-ctrl-alt-del'), | 68 document.getElementById('send-ctrl-alt-del'), |
| 69 document.getElementById('send-print-screen'), | 69 document.getElementById('send-print-screen'), |
| 70 document.getElementById('screen-resize-to-client'), | 70 document.getElementById('screen-resize-to-client'), |
| 71 document.getElementById('screen-shrink-to-fit'), | 71 document.getElementById('screen-shrink-to-fit'), |
| 72 document.getElementById('new-connection'), | 72 document.getElementById('new-connection'), |
| 73 document.getElementById('toggle-full-screen'), | 73 document.getElementById('toggle-full-screen'), |
| 74 null, |
| 74 null); | 75 null); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 /** | 78 /** |
| 78 * Preview the tool-bar functionality by showing it for 3s. | 79 * Preview the tool-bar functionality by showing it for 3s. |
| 79 * @return {void} Nothing. | 80 * @return {void} Nothing. |
| 80 */ | 81 */ |
| 81 remoting.Toolbar.prototype.preview = function() { | 82 remoting.Toolbar.prototype.preview = function() { |
| 82 this.toolbar_.classList.add(remoting.Toolbar.VISIBLE_CLASS_); | 83 this.toolbar_.classList.add(remoting.Toolbar.VISIBLE_CLASS_); |
| 83 if (this.timerId_) { | 84 if (this.timerId_) { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 remoting.optionsMenu.onShow(); | 169 remoting.optionsMenu.onShow(); |
| 169 }; | 170 }; |
| 170 | 171 |
| 171 /** @type {remoting.Toolbar} */ | 172 /** @type {remoting.Toolbar} */ |
| 172 remoting.toolbar = null; | 173 remoting.toolbar = null; |
| 173 | 174 |
| 174 /** @private */ | 175 /** @private */ |
| 175 remoting.Toolbar.STUB_EXTENDED_CLASS_ = 'toolbar-stub-extended'; | 176 remoting.Toolbar.STUB_EXTENDED_CLASS_ = 'toolbar-stub-extended'; |
| 176 /** @private */ | 177 /** @private */ |
| 177 remoting.Toolbar.VISIBLE_CLASS_ = 'toolbar-visible'; | 178 remoting.Toolbar.VISIBLE_CLASS_ = 'toolbar-visible'; |
| OLD | NEW |