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

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

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

Powered by Google App Engine
This is Rietveld 408576698