Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: extensions/common/api/system_display.idl

Issue 2824843002: MD Settings: Display: Disable orientaiton control in tablet mode (Closed)
Patch Set: Add test and trigger onDisplayChanged Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 // Use the <code>system.display</code> API to query display metadata. 5 // Use the <code>system.display</code> API to query display metadata.
6 namespace system.display { 6 namespace system.display {
7 7
8 dictionary Bounds { 8 dictionary Bounds {
9 // The x-coordinate of the upper-left corner. 9 // The x-coordinate of the upper-left corner.
10 long left; 10 long left;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // True if this is an internal display. 126 // True if this is an internal display.
127 boolean isInternal; 127 boolean isInternal;
128 128
129 // True if this display is enabled. 129 // True if this display is enabled.
130 boolean isEnabled; 130 boolean isEnabled;
131 131
132 // True for all displays when in unified desktop mode. See documentation 132 // True for all displays when in unified desktop mode. See documentation
133 // for $(ref:enableUnifiedDesktop). 133 // for $(ref:enableUnifiedDesktop).
134 boolean isUnified; 134 boolean isUnified;
135 135
136 // True when the display is in maximize mode. This is enabled for touch
137 // devices with auto rotation. It is only set for the primary display.
138 // The default value is false.
139 boolean? isMaximizeMode;
140
136 // The number of pixels per inch along the x-axis. 141 // The number of pixels per inch along the x-axis.
137 double dpiX; 142 double dpiX;
138 143
139 // The number of pixels per inch along the y-axis. 144 // The number of pixels per inch along the y-axis.
140 double dpiY; 145 double dpiY;
141 146
142 // The display's clockwise rotation in degrees relative to the vertical 147 // The display's clockwise rotation in degrees relative to the vertical
143 // position. 148 // position.
144 // Currently exposed only on ChromeOS. Will be set to 0 on other platforms. 149 // Currently exposed only on ChromeOS. Will be set to 0 on other platforms.
145 long rotation; 150 long rotation;
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // display. 338 // display.
334 // |id|: The display's unique identifier. 339 // |id|: The display's unique identifier.
335 static void clearTouchCalibration(DOMString id); 340 static void clearTouchCalibration(DOMString id);
336 }; 341 };
337 342
338 interface Events { 343 interface Events {
339 // Fired when anything changes to the display configuration. 344 // Fired when anything changes to the display configuration.
340 static void onDisplayChanged(); 345 static void onDisplayChanged();
341 }; 346 };
342 }; 347 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/device_page/display.js ('k') | third_party/closure_compiler/externs/system_display.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698