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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 /** | 45 /** |
46 * @type {remoting.OptionsMenu} | 46 * @type {remoting.OptionsMenu} |
47 * @private | 47 * @private |
48 */ | 48 */ |
49 this.optionsMenu_ = new remoting.OptionsMenu( | 49 this.optionsMenu_ = new remoting.OptionsMenu( |
50 document.getElementById('send-ctrl-alt-del'), | 50 document.getElementById('send-ctrl-alt-del'), |
51 document.getElementById('send-print-screen'), | 51 document.getElementById('send-print-screen'), |
52 document.getElementById('screen-resize-to-client'), | 52 document.getElementById('screen-resize-to-client'), |
53 document.getElementById('screen-shrink-to-fit'), | 53 document.getElementById('screen-shrink-to-fit'), |
54 document.getElementById('new-connection'), | 54 document.getElementById('new-connection'), |
55 document.getElementById('toggle-full-screen')); | 55 document.getElementById('toggle-full-screen'), |
| 56 null); |
56 | 57 |
57 window.addEventListener('mousemove', remoting.Toolbar.onMouseMove, false); | 58 window.addEventListener('mousemove', remoting.Toolbar.onMouseMove, false); |
58 window.addEventListener('resize', this.center.bind(this), false); | 59 window.addEventListener('resize', this.center.bind(this), false); |
59 | 60 |
60 registerEventListener('toolbar-disconnect', 'click', remoting.disconnect); | 61 registerEventListener('toolbar-disconnect', 'click', remoting.disconnect); |
61 registerEventListener('toolbar-stub', 'click', | 62 registerEventListener('toolbar-stub', 'click', |
62 function() { remoting.toolbar.toggle(); }); | 63 function() { remoting.toolbar.toggle(); }); |
63 | 64 |
64 // Prevent the preview canceling if the user is interacting with the tool-bar. | 65 // Prevent the preview canceling if the user is interacting with the tool-bar. |
65 /** @type {remoting.Toolbar} */ | 66 /** @type {remoting.Toolbar} */ |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 } | 158 } |
158 }; | 159 }; |
159 | 160 |
160 /** @type {remoting.Toolbar} */ | 161 /** @type {remoting.Toolbar} */ |
161 remoting.toolbar = null; | 162 remoting.toolbar = null; |
162 | 163 |
163 /** @private */ | 164 /** @private */ |
164 remoting.Toolbar.STUB_EXTENDED_CLASS_ = 'toolbar-stub-extended'; | 165 remoting.Toolbar.STUB_EXTENDED_CLASS_ = 'toolbar-stub-extended'; |
165 /** @private */ | 166 /** @private */ |
166 remoting.Toolbar.VISIBLE_CLASS_ = 'toolbar-visible'; | 167 remoting.Toolbar.VISIBLE_CLASS_ = 'toolbar-visible'; |
OLD | NEW |