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

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

Issue 2439543003: Do not use overlays when VR shell is enabled. (Closed)
Patch Set: Minor style adjustments Created 4 years 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_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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 depth_per_component_ = depth_per_component; 183 depth_per_component_ = depth_per_component;
184 } 184 }
185 185
186 // True if this is a monochrome display (e.g, for accessiblity). Used by media 186 // True if this is a monochrome display (e.g, for accessiblity). Used by media
187 // query APIs. 187 // query APIs.
188 bool is_monochrome() const { return is_monochrome_; } 188 bool is_monochrome() const { return is_monochrome_; }
189 void set_is_monochrome(bool is_monochrome) { 189 void set_is_monochrome(bool is_monochrome) {
190 is_monochrome_ = is_monochrome; 190 is_monochrome_ = is_monochrome;
191 } 191 }
192 192
193 // True if this is a virtual display (e.g, for vr).
194 bool is_virtual() const { return is_virtual_; }
195 void set_is_virtual(bool is_virtual) {
196 is_virtual_ = is_virtual;
197 }
198
193 private: 199 private:
194 int64_t id_; 200 int64_t id_;
195 gfx::Rect bounds_; 201 gfx::Rect bounds_;
196 gfx::Rect work_area_; 202 gfx::Rect work_area_;
197 float device_scale_factor_; 203 float device_scale_factor_;
198 Rotation rotation_ = ROTATE_0; 204 Rotation rotation_ = ROTATE_0;
199 TouchSupport touch_support_ = TOUCH_SUPPORT_UNKNOWN; 205 TouchSupport touch_support_ = TOUCH_SUPPORT_UNKNOWN;
200 gfx::Size maximum_cursor_size_; 206 gfx::Size maximum_cursor_size_;
201 gfx::ICCProfile icc_profile_; 207 gfx::ICCProfile icc_profile_;
202 int color_depth_; 208 int color_depth_;
203 int depth_per_component_; 209 int depth_per_component_;
204 bool is_monochrome_ = false; 210 bool is_monochrome_ = false;
211 bool is_virtual_ = false;
205 212
206 #if !defined(OS_IOS) 213 #if !defined(OS_IOS)
207 friend struct mojo::StructTraits<display::mojom::DisplayDataView, 214 friend struct mojo::StructTraits<display::mojom::DisplayDataView,
208 display::Display>; 215 display::Display>;
209 #endif 216 #endif
210 }; 217 };
211 218
212 } // namespace display 219 } // namespace display
213 220
214 #endif // UI_DISPLAY_DISPLAY_H_ 221 #endif // UI_DISPLAY_DISPLAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698