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

Side by Side Diff: ui/gfx/display.h

Issue 1614953003: Make gfx::Display Final (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_GFX_DISPLAY_H_ 5 #ifndef UI_GFX_DISPLAY_H_
6 #define UI_GFX_DISPLAY_H_ 6 #define UI_GFX_DISPLAY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "ui/gfx/geometry/rect.h" 11 #include "ui/gfx/geometry/rect.h"
12 #include "ui/gfx/gfx_export.h" 12 #include "ui/gfx/gfx_export.h"
13 13
14 namespace gfx { 14 namespace gfx {
15 15
16 // This class typically, but does not always, correspond to a physical display 16 // This class typically, but does not always, correspond to a physical display
17 // connected to the system. A fake Display may exist on a headless system, or a 17 // connected to the system. A fake Display may exist on a headless system, or a
18 // Display may correspond to a remote, virtual display. 18 // Display may correspond to a remote, virtual display.
19 // 19 //
20 // Note: The screen and display currently uses pixel coordinate 20 // Note: The screen and display currently uses pixel coordinate
21 // system. For platforms that support DIP (density independent pixel), 21 // system. For platforms that support DIP (density independent pixel),
22 // |bounds()| and |work_area| will return values in DIP coordinate 22 // |bounds()| and |work_area| will return values in DIP coordinate
23 // system, not in backing pixels. 23 // system, not in backing pixels.
24 class GFX_EXPORT Display { 24 class GFX_EXPORT Display final {
25 public: 25 public:
26 // Screen Rotation in clock-wise degrees. 26 // Screen Rotation in clock-wise degrees.
27 // This enum corresponds to DisplayRotationDefaultProto::Rotation in 27 // This enum corresponds to DisplayRotationDefaultProto::Rotation in
28 // chrome/browser/chromeos/policy/proto/chrome_device_policy.proto. 28 // chrome/browser/chromeos/policy/proto/chrome_device_policy.proto.
29 enum Rotation { 29 enum Rotation {
30 ROTATE_0 = 0, 30 ROTATE_0 = 0,
31 ROTATE_90, 31 ROTATE_90,
32 ROTATE_180, 32 ROTATE_180,
33 ROTATE_270, 33 ROTATE_270,
34 }; 34 };
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 Rect bounds_; 150 Rect bounds_;
151 Rect work_area_; 151 Rect work_area_;
152 float device_scale_factor_; 152 float device_scale_factor_;
153 Rotation rotation_; 153 Rotation rotation_;
154 TouchSupport touch_support_; 154 TouchSupport touch_support_;
155 }; 155 };
156 156
157 } // namespace gfx 157 } // namespace gfx
158 158
159 #endif // UI_GFX_DISPLAY_H_ 159 #endif // UI_GFX_DISPLAY_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698