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 Page = cr.ui.pageManager.Page; | 6 var Page = cr.ui.pageManager.Page; |
7 var PageManager = cr.ui.pageManager.PageManager; | 7 var PageManager = cr.ui.pageManager.PageManager; |
8 | 8 |
9 /** | 9 /** |
10 * Encapsulated handling of the 'DisplayOverscan' page. | 10 * Encapsulated handling of the 'DisplayOverscan' page. |
11 * @constructor | 11 * @constructor |
12 * @extends {cr.ui.pageManager.Page} | 12 * @extends {cr.ui.pageManager.Page} |
13 */ | 13 */ |
14 function DisplayOverscan() { | 14 function DisplayOverscan() { |
15 Page.call(this, 'displayOverscan', | 15 Page.call(this, 'displayOverscan', |
16 loadTimeData.getString('displayOverscanPageTabTitle'), | 16 loadTimeData.getString('displayOverscanPageTabTitle'), |
17 'display-overscan-page'); | 17 'display-overscan-page'); |
18 } | 18 } |
19 | 19 |
20 cr.addSingletonGetter(DisplayOverscan); | 20 cr.addSingletonGetter(DisplayOverscan); |
21 | 21 |
22 DisplayOverscan.prototype = { | 22 DisplayOverscan.prototype = { |
23 __proto__: Page.prototype, | 23 __proto__: Page.prototype, |
24 | 24 |
25 /** | 25 /** |
26 * The ID of the target display. | 26 * The ID of the target display. |
27 * @type {?string} | |
27 * @private | 28 * @private |
Dan Beam
2014/09/12 23:36:12
nit: @private {?string}
Vitaly Pavlenko
2014/09/13 00:02:36
Done.
| |
28 */ | 29 */ |
29 id_: null, | 30 id_: null, |
30 | 31 |
31 /** | 32 /** |
32 * The keyboard event handler function. | 33 * The keyboard event handler function. |
33 * @private | 34 * @private |
34 */ | 35 */ |
35 keyHandler_: null, | 36 keyHandler_: null, |
36 | 37 |
37 /** @override */ | 38 /** @override */ |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
151 | 152 |
152 DisplayOverscan.onOverscanCanceled = function() { | 153 DisplayOverscan.onOverscanCanceled = function() { |
153 DisplayOverscan.getInstance().onOverscanCanceled_(); | 154 DisplayOverscan.getInstance().onOverscanCanceled_(); |
154 }; | 155 }; |
155 | 156 |
156 // Export | 157 // Export |
157 return { | 158 return { |
158 DisplayOverscan: DisplayOverscan | 159 DisplayOverscan: DisplayOverscan |
159 }; | 160 }; |
160 }); | 161 }); |
OLD | NEW |