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

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

Issue 2151563002: Add the fields bits-per-pixel and bits-per-component to Display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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 | « ui/display/android/screen_android.cc ('k') | ui/display/display.cc » ('j') | 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_DISPLAY_DISPLAY_H_ 5 #ifndef UI_DISPLAY_DISPLAY_H_
6 #define UI_DISPLAY_DISPLAY_H_ 6 #define UI_DISPLAY_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"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 // True if there is an internal display. 158 // True if there is an internal display.
159 static bool HasInternalDisplay(); 159 static bool HasInternalDisplay();
160 160
161 // Maximum cursor size in native pixels. 161 // Maximum cursor size in native pixels.
162 const gfx::Size& maximum_cursor_size() const { return maximum_cursor_size_; } 162 const gfx::Size& maximum_cursor_size() const { return maximum_cursor_size_; }
163 void set_maximum_cursor_size(const gfx::Size& size) { 163 void set_maximum_cursor_size(const gfx::Size& size) {
164 maximum_cursor_size_ = size; 164 maximum_cursor_size_ = size;
165 } 165 }
166 166
167 int color_depth() const { return color_depth_; }
168 void set_color_depth(int color_depth) {
169 color_depth_ = color_depth;
170 }
171
172 int depth_per_component() const { return depth_per_component_; }
173 void set_depth_per_component(int depth_per_component) {
174 depth_per_component_ = depth_per_component;
175 }
176
167 private: 177 private:
168 int64_t id_; 178 int64_t id_;
169 gfx::Rect bounds_; 179 gfx::Rect bounds_;
170 gfx::Rect work_area_; 180 gfx::Rect work_area_;
171 float device_scale_factor_; 181 float device_scale_factor_;
172 Rotation rotation_; 182 Rotation rotation_;
173 TouchSupport touch_support_; 183 TouchSupport touch_support_;
174 gfx::Size maximum_cursor_size_; 184 gfx::Size maximum_cursor_size_;
185 int color_depth_;
186 int depth_per_component_;
175 187
176 #if !defined(OS_IOS) 188 #if !defined(OS_IOS)
177 friend struct mojo::StructTraits<display::mojom::Display, display::Display>; 189 friend struct mojo::StructTraits<display::mojom::Display, display::Display>;
178 #endif 190 #endif
179 }; 191 };
180 192
181 } // namespace display 193 } // namespace display
182 194
183 #endif // UI_DISPLAY_DISPLAY_H_ 195 #endif // UI_DISPLAY_DISPLAY_H_
OLDNEW
« no previous file with comments | « ui/display/android/screen_android.cc ('k') | ui/display/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698