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

Side by Side Diff: content/public/common/screen_info.h

Issue 2954793002: color: Replace more instances of ICCProfile with ColorSpace (Closed)
Patch Set: Created 3 years, 5 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 | « content/common/view_messages.h ('k') | content/public/common/screen_info.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 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/color_space.h"
10 #include "ui/gfx/geometry/rect.h" 11 #include "ui/gfx/geometry/rect.h"
11 #include "ui/gfx/icc_profile.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // Information about the screen on which a RenderWidget is being displayed. This 15 // Information about the screen on which a RenderWidget is being displayed. This
16 // is the content counterpart to WebScreenInfo in blink. 16 // is the content counterpart to WebScreenInfo in blink.
17 struct CONTENT_EXPORT ScreenInfo { 17 struct CONTENT_EXPORT ScreenInfo {
18 ScreenInfo(); 18 ScreenInfo();
19 ScreenInfo(const ScreenInfo& other); 19 ScreenInfo(const ScreenInfo& other);
20 ~ScreenInfo(); 20 ~ScreenInfo();
21 21
22 // Device scale factor. Specifies the ratio between physical and logical 22 // Device scale factor. Specifies the ratio between physical and logical
23 // pixels. 23 // pixels.
24 float device_scale_factor = 1.f; 24 float device_scale_factor = 1.f;
25 25
26 // The ICC profile of the output display. 26 // The color space of the output display.
27 gfx::ICCProfile icc_profile; 27 gfx::ColorSpace color_space = gfx::ColorSpace::CreateSRGB();
28 28
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;
(...skipping 13 matching lines...) Expand all
51 // It is the opposite of the physical rotation. 51 // It is the opposite of the physical rotation.
52 uint16_t orientation_angle = 0; 52 uint16_t orientation_angle = 0;
53 53
54 bool operator==(const ScreenInfo& other) const; 54 bool operator==(const ScreenInfo& other) const;
55 bool operator!=(const ScreenInfo& other) const; 55 bool operator!=(const ScreenInfo& other) const;
56 }; 56 };
57 57
58 } // namespace content 58 } // namespace content
59 59
60 #endif // CONTENT_PUBLIC_COMMON_SCREEN_INFO_H_ 60 #endif // CONTENT_PUBLIC_COMMON_SCREEN_INFO_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/common/screen_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698