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

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

Issue 10795080: A couple of multiple displays support fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/window_animations.cc ('k') | 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/base/ui_export.h" 10 #include "ui/base/ui_export.h"
(...skipping 11 matching lines...) Expand all
22 // "--force-device-scale-factor". 22 // "--force-device-scale-factor".
23 static float GetForcedDeviceScaleFactor(); 23 static float GetForcedDeviceScaleFactor();
24 24
25 // Creates a display with invalid id(-1) as default. 25 // Creates a display with invalid id(-1) as default.
26 Display(); 26 Display();
27 explicit Display(int id); 27 explicit Display(int id);
28 Display(int id, const Rect& bounds); 28 Display(int id, const Rect& bounds);
29 ~Display(); 29 ~Display();
30 30
31 // Sets/Gets unique identifier associated with the display. 31 // Sets/Gets unique identifier associated with the display.
32 // -1 means invalid display and it doesn't not exit.
32 int id() const { return id_; } 33 int id() const { return id_; }
33 void set_id(int id) { id_ = id; } 34 void set_id(int id) { id_ = id; }
34 35
35 // Gets/Sets the display's bounds in gfx::Screen's coordinates. 36 // Gets/Sets the display's bounds in gfx::Screen's coordinates.
36 // -1 means invalid display and it doesn't not exit.
37 const Rect& bounds() const { return bounds_; } 37 const Rect& bounds() const { return bounds_; }
38 void set_bounds(const Rect& bounds) { bounds_ = bounds; } 38 void set_bounds(const Rect& bounds) { bounds_ = bounds; }
39 39
40 // Gets/Sets the display's work area in gfx::Screen's coordinates. 40 // Gets/Sets the display's work area in gfx::Screen's coordinates.
41 const Rect& work_area() const { return work_area_; } 41 const Rect& work_area() const { return work_area_; }
42 void set_work_area(const Rect& work_area) { work_area_ = work_area; } 42 void set_work_area(const Rect& work_area) { work_area_ = work_area; }
43 43
44 // Output device's pixel scale factor. This specifies how much the 44 // Output device's pixel scale factor. This specifies how much the
45 // UI should be scaled when the actual output has more pixels than 45 // UI should be scaled when the actual output has more pixels than
46 // standard displays (which is around 100~120dpi.) The potential return 46 // standard displays (which is around 100~120dpi.) The potential return
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 Rect work_area_; 89 Rect work_area_;
90 #if defined(USE_AURA) 90 #if defined(USE_AURA)
91 Rect bounds_in_pixel_; 91 Rect bounds_in_pixel_;
92 #endif 92 #endif
93 float device_scale_factor_; 93 float device_scale_factor_;
94 }; 94 };
95 95
96 } // namespace gfx 96 } // namespace gfx
97 97
98 #endif // UI_GFX_DISPLAY_H_ 98 #endif // UI_GFX_DISPLAY_H_
OLDNEW
« no previous file with comments | « ash/wm/window_animations.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698