| 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 * @private | 27 * @private {?string} |
| 28 */ | 28 */ |
| 29 id_: null, | 29 id_: null, |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * The keyboard event handler function. | 32 * The keyboard event handler function. |
| 33 * @private | 33 * @private |
| 34 */ | 34 */ |
| 35 keyHandler_: null, | 35 keyHandler_: null, |
| 36 | 36 |
| 37 /** @override */ | 37 /** @override */ |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 DisplayOverscan.onOverscanCanceled = function() { | 152 DisplayOverscan.onOverscanCanceled = function() { |
| 153 DisplayOverscan.getInstance().onOverscanCanceled_(); | 153 DisplayOverscan.getInstance().onOverscanCanceled_(); |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 // Export | 156 // Export |
| 157 return { | 157 return { |
| 158 DisplayOverscan: DisplayOverscan | 158 DisplayOverscan: DisplayOverscan |
| 159 }; | 159 }; |
| 160 }); | 160 }); |
| OLD | NEW |