OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 cr.define('options', function() { | 5 cr.define('options', function() { |
6 var OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
7 | 7 |
8 /** | 8 /** |
9 * Encapsulated handling of the 'DisplayOverscan' page. | 9 * Encapsulated handling of the 'DisplayOverscan' page. |
10 * @constructor | 10 * @constructor |
(...skipping 14 matching lines...) Expand all Loading... |
25 * @private | 25 * @private |
26 */ | 26 */ |
27 id_: null, | 27 id_: null, |
28 | 28 |
29 /** | 29 /** |
30 * The keyboard event handler function. | 30 * The keyboard event handler function. |
31 * @private | 31 * @private |
32 */ | 32 */ |
33 keyHandler_: null, | 33 keyHandler_: null, |
34 | 34 |
35 /** | 35 /** @override */ |
36 * Initialize the page. | |
37 */ | |
38 initializePage: function() { | 36 initializePage: function() { |
39 OptionsPage.prototype.initializePage.call(this); | 37 OptionsPage.prototype.initializePage.call(this); |
40 | 38 |
41 this.keyHandler_ = this.handleKeyevent_.bind(this); | 39 this.keyHandler_ = this.handleKeyevent_.bind(this); |
42 $('display-overscan-operation-reset').onclick = function() { | 40 $('display-overscan-operation-reset').onclick = function() { |
43 chrome.send('reset'); | 41 chrome.send('reset'); |
44 }; | 42 }; |
45 $('display-overscan-operation-ok').onclick = function() { | 43 $('display-overscan-operation-ok').onclick = function() { |
46 chrome.send('commit'); | 44 chrome.send('commit'); |
47 OptionsPage.closeOverlay(); | 45 OptionsPage.closeOverlay(); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 149 |
152 DisplayOverscan.onOverscanCanceled = function() { | 150 DisplayOverscan.onOverscanCanceled = function() { |
153 DisplayOverscan.getInstance().onOverscanCanceled_(); | 151 DisplayOverscan.getInstance().onOverscanCanceled_(); |
154 }; | 152 }; |
155 | 153 |
156 // Export | 154 // Export |
157 return { | 155 return { |
158 DisplayOverscan: DisplayOverscan | 156 DisplayOverscan: DisplayOverscan |
159 }; | 157 }; |
160 }); | 158 }); |
OLD | NEW |