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

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

Issue 1426933002: Refactor Windows DPI Point, Rect, and Size for Multiple Monitor DPI Awareness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Other Unit Tests - Moved Inner Classes Outside 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
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 //
25 // Display is designed to be copied, so don't inherit from this class!
oshima 2016/01/21 17:47:44 can you make the class final instead? I believe it
robliao 2016/01/21 18:19:20 Will do! That can be a separate CL too.
24 class GFX_EXPORT Display { 26 class GFX_EXPORT Display {
25 public: 27 public:
26 // Screen Rotation in clock-wise degrees. 28 // Screen Rotation in clock-wise degrees.
27 // This enum corresponds to DisplayRotationDefaultProto::Rotation in 29 // This enum corresponds to DisplayRotationDefaultProto::Rotation in
28 // chrome/browser/chromeos/policy/proto/chrome_device_policy.proto. 30 // chrome/browser/chromeos/policy/proto/chrome_device_policy.proto.
29 enum Rotation { 31 enum Rotation {
30 ROTATE_0 = 0, 32 ROTATE_0 = 0,
31 ROTATE_90, 33 ROTATE_90,
32 ROTATE_180, 34 ROTATE_180,
33 ROTATE_270, 35 ROTATE_270,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 Rect bounds_; 152 Rect bounds_;
151 Rect work_area_; 153 Rect work_area_;
152 float device_scale_factor_; 154 float device_scale_factor_;
153 Rotation rotation_; 155 Rotation rotation_;
154 TouchSupport touch_support_; 156 TouchSupport touch_support_;
155 }; 157 };
156 158
157 } // namespace gfx 159 } // namespace gfx
158 160
159 #endif // UI_GFX_DISPLAY_H_ 161 #endif // UI_GFX_DISPLAY_H_
OLDNEW
« no previous file with comments | « ui/gfx/BUILD.gn ('k') | ui/gfx/gfx.gyp » ('j') | ui/wm/core/default_screen_position_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698