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 */ | 13 */ |
13 function DisplayOverscan() { | 14 function DisplayOverscan() { |
14 Page.call(this, 'displayOverscan', | 15 Page.call(this, 'displayOverscan', |
15 loadTimeData.getString('displayOverscanPageTabTitle'), | 16 loadTimeData.getString('displayOverscanPageTabTitle'), |
16 'display-overscan-page'); | 17 'display-overscan-page'); |
17 } | 18 } |
18 | 19 |
19 cr.addSingletonGetter(DisplayOverscan); | 20 cr.addSingletonGetter(DisplayOverscan); |
20 | 21 |
21 DisplayOverscan.prototype = { | 22 DisplayOverscan.prototype = { |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 151 |
151 DisplayOverscan.onOverscanCanceled = function() { | 152 DisplayOverscan.onOverscanCanceled = function() { |
152 DisplayOverscan.getInstance().onOverscanCanceled_(); | 153 DisplayOverscan.getInstance().onOverscanCanceled_(); |
153 }; | 154 }; |
154 | 155 |
155 // Export | 156 // Export |
156 return { | 157 return { |
157 DisplayOverscan: DisplayOverscan | 158 DisplayOverscan: DisplayOverscan |
158 }; | 159 }; |
159 }); | 160 }); |
OLD | NEW |