OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 * 'settings-display-overscan-dialog' is the dialog for display overscan | 7 * 'settings-display-overscan-dialog' is the dialog for display overscan |
8 * adjustments. | 8 * adjustments. |
9 * | |
10 * @group Chrome Settings Elements | |
11 */ | 9 */ |
12 | 10 |
13 Polymer({ | 11 Polymer({ |
14 is: 'settings-display-overscan-dialog', | 12 is: 'settings-display-overscan-dialog', |
15 | 13 |
16 properties: { | 14 properties: { |
17 /** Id of the display for which overscan is being applied (or empty). */ | 15 /** Id of the display for which overscan is being applied (or empty). */ |
18 displayId: { | 16 displayId: { |
19 type: String, | 17 type: String, |
20 notify: true, | 18 notify: true, |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 /** @type {!chrome.system.display.Insets} */ var delta = { | 137 /** @type {!chrome.system.display.Insets} */ var delta = { |
140 left: x, | 138 left: x, |
141 top: y, | 139 top: y, |
142 right: x, | 140 right: x, |
143 bottom: y, | 141 bottom: y, |
144 }; | 142 }; |
145 settings.display.systemDisplayApi.overscanCalibrationAdjust( | 143 settings.display.systemDisplayApi.overscanCalibrationAdjust( |
146 this.displayId, delta); | 144 this.displayId, delta); |
147 } | 145 } |
148 }); | 146 }); |
OLD | NEW |