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

Side by Side Diff: content/public/common/screen_info.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CONTENT_PUBLIC_COMMON_SCREEN_INFO_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_SCREEN_INFO_H_
6 #define CONTENT_PUBLIC_COMMON_SCREEN_INFO_H_ 6 #define CONTENT_PUBLIC_COMMON_SCREEN_INFO_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/public/common/screen_orientation_values.h" 9 #include "content/public/common/screen_orientation_values.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
(...skipping 18 matching lines...) Expand all
29 // The screen depth in bits per pixel 29 // The screen depth in bits per pixel
30 uint32_t depth = 0; 30 uint32_t depth = 0;
31 31
32 // The bits per colour component. This assumes that the colours are balanced 32 // The bits per colour component. This assumes that the colours are balanced
33 // equally. 33 // equally.
34 uint32_t depth_per_component = 0; 34 uint32_t depth_per_component = 0;
35 35
36 // This can be true for black and white printers 36 // This can be true for black and white printers
37 bool is_monochrome = false; 37 bool is_monochrome = false;
38 38
39 // This is true when display is a virtual display.
40 bool in_vr = false;
41
39 // The display monitor rectangle in virtual-screen coordinates. Note that 42 // The display monitor rectangle in virtual-screen coordinates. Note that
40 // this may be negative. 43 // this may be negative.
41 gfx::Rect rect; 44 gfx::Rect rect;
42 45
43 // The portion of the monitor's rectangle that can be used by applications. 46 // The portion of the monitor's rectangle that can be used by applications.
44 gfx::Rect available_rect; 47 gfx::Rect available_rect;
45 48
46 // The monitor's orientation. 49 // The monitor's orientation.
47 ScreenOrientationValues orientation_type = 50 ScreenOrientationValues orientation_type =
48 SCREEN_ORIENTATION_VALUES_DEFAULT; 51 SCREEN_ORIENTATION_VALUES_DEFAULT;
49 52
50 // This is the orientation angle of the displayed content in degrees. 53 // This is the orientation angle of the displayed content in degrees.
51 // It is the opposite of the physical rotation. 54 // It is the opposite of the physical rotation.
52 uint16_t orientation_angle = 0; 55 uint16_t orientation_angle = 0;
53 56
54 bool operator==(const ScreenInfo& other) const; 57 bool operator==(const ScreenInfo& other) const;
55 bool operator!=(const ScreenInfo& other) const; 58 bool operator!=(const ScreenInfo& other) const;
56 }; 59 };
57 60
58 } // namespace content 61 } // namespace content
59 62
60 #endif // CONTENT_PUBLIC_COMMON_SCREEN_INFO_H_ 63 #endif // CONTENT_PUBLIC_COMMON_SCREEN_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698