| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 | 63 |
| 64 /** | 64 /** |
| 65 * @return {remoting.OptionsMenu} | 65 * @return {remoting.OptionsMenu} |
| 66 */ | 66 */ |
| 67 remoting.Toolbar.prototype.createOptionsMenu = function() { | 67 remoting.Toolbar.prototype.createOptionsMenu = function() { |
| 68 return new remoting.OptionsMenu( | 68 return new remoting.OptionsMenu( |
| 69 document.getElementById('send-ctrl-alt-del'), | 69 document.getElementById('send-ctrl-alt-del'), |
| 70 document.getElementById('send-print-screen'), | 70 document.getElementById('send-print-screen'), |
| 71 document.getElementById('map-right-ctrl-to-meta'), |
| 71 document.getElementById('screen-resize-to-client'), | 72 document.getElementById('screen-resize-to-client'), |
| 72 document.getElementById('screen-shrink-to-fit'), | 73 document.getElementById('screen-shrink-to-fit'), |
| 73 document.getElementById('new-connection'), | 74 document.getElementById('new-connection'), |
| 74 document.getElementById('toggle-full-screen'), | 75 document.getElementById('toggle-full-screen'), |
| 75 null, | 76 null, |
| 76 null); | 77 null); |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 /** | 80 /** |
| 80 * Preview the tool-bar functionality by showing it for 3s. | 81 * Preview the tool-bar functionality by showing it for 3s. |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 remoting.optionsMenu.onShow(); | 171 remoting.optionsMenu.onShow(); |
| 171 }; | 172 }; |
| 172 | 173 |
| 173 /** @type {remoting.Toolbar} */ | 174 /** @type {remoting.Toolbar} */ |
| 174 remoting.toolbar = null; | 175 remoting.toolbar = null; |
| 175 | 176 |
| 176 /** @private */ | 177 /** @private */ |
| 177 remoting.Toolbar.STUB_EXTENDED_CLASS_ = 'toolbar-stub-extended'; | 178 remoting.Toolbar.STUB_EXTENDED_CLASS_ = 'toolbar-stub-extended'; |
| 178 /** @private */ | 179 /** @private */ |
| 179 remoting.Toolbar.VISIBLE_CLASS_ = 'toolbar-visible'; | 180 remoting.Toolbar.VISIBLE_CLASS_ = 'toolbar-visible'; |
| OLD | NEW |