Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 103 | 103 |
| 104 // Returns the display's size in pixel coordinates. | 104 // Returns the display's size in pixel coordinates. |
| 105 gfx::Size GetSizeInPixel() const; | 105 gfx::Size GetSizeInPixel() const; |
| 106 | 106 |
| 107 // Returns a string representation of the display; | 107 // Returns a string representation of the display; |
| 108 std::string ToString() const; | 108 std::string ToString() const; |
| 109 | 109 |
| 110 // True if the display contains valid display id. | 110 // True if the display contains valid display id. |
| 111 bool is_valid() const { return id_ != kInvalidDisplayID; } | 111 bool is_valid() const { return id_ != kInvalidDisplayID; } |
| 112 | 112 |
| 113 // Sets the display which is mirrored on this display. | |
| 114 void set_mirrored_display_id(int64 id) { mirrored_display_id_ = id; } | |
| 115 | |
| 116 // Returns the display which is mirrored on this display and kInvalidDisplayID | |
| 117 // otherwise. | |
| 118 int64 mirrored_display_id() const { return mirrored_display_id_; } | |
|
oshima
2015/03/04 00:54:36
This is low level information that none of chrome
| |
| 119 | |
| 113 // True if the display corresponds to internal panel. | 120 // True if the display corresponds to internal panel. |
| 114 bool IsInternal() const; | 121 bool IsInternal() const; |
| 115 | 122 |
| 116 // Gets/Sets an id of display corresponding to internal panel. | 123 // Gets/Sets an id of display corresponding to internal panel. |
| 117 static int64 InternalDisplayId(); | 124 static int64 InternalDisplayId(); |
| 118 static void SetInternalDisplayId(int64 internal_display_id); | 125 static void SetInternalDisplayId(int64 internal_display_id); |
| 119 | 126 |
| 120 static const int64 kInvalidDisplayID; | 127 static const int64 kInvalidDisplayID; |
| 121 | 128 |
| 122 private: | 129 private: |
| 123 int64 id_; | 130 int64 id_; |
| 124 Rect bounds_; | 131 Rect bounds_; |
| 125 Rect work_area_; | 132 Rect work_area_; |
| 126 float device_scale_factor_; | 133 float device_scale_factor_; |
| 127 Rotation rotation_; | 134 Rotation rotation_; |
| 128 TouchSupport touch_support_; | 135 TouchSupport touch_support_; |
| 136 int64 mirrored_display_id_; | |
| 129 }; | 137 }; |
| 130 | 138 |
| 131 } // namespace gfx | 139 } // namespace gfx |
| 132 | 140 |
| 133 #endif // UI_GFX_DISPLAY_H_ | 141 #endif // UI_GFX_DISPLAY_H_ |
| OLD | NEW |