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

Side by Side Diff: ui/gfx/icc_profile.h

Issue 2641973002: Use gfx::ICCProfile type consistently (Closed)
Patch Set: Created 3 years, 11 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 | « third_party/WebKit/public/web/WebView.h ('k') | ui/gfx/icc_profile.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 UI_GFX_ICC_PROFILE_H_ 5 #ifndef UI_GFX_ICC_PROFILE_H_
6 #define UI_GFX_ICC_PROFILE_H_ 6 #define UI_GFX_ICC_PROFILE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 22 matching lines...) Expand all
33 // as parsing this structure is not secure. 33 // as parsing this structure is not secure.
34 class GFX_EXPORT ICCProfile { 34 class GFX_EXPORT ICCProfile {
35 public: 35 public:
36 ICCProfile(); 36 ICCProfile();
37 ICCProfile(ICCProfile&& other); 37 ICCProfile(ICCProfile&& other);
38 ICCProfile(const ICCProfile& other); 38 ICCProfile(const ICCProfile& other);
39 ICCProfile& operator=(ICCProfile&& other); 39 ICCProfile& operator=(ICCProfile&& other);
40 ICCProfile& operator=(const ICCProfile& other); 40 ICCProfile& operator=(const ICCProfile& other);
41 ~ICCProfile(); 41 ~ICCProfile();
42 bool operator==(const ICCProfile& other) const; 42 bool operator==(const ICCProfile& other) const;
43 bool operator!=(const ICCProfile& other) const;
43 44
44 // Returns the color profile of the monitor that can best represent color. 45 // Returns the color profile of the monitor that can best represent color.
45 // This profile should be used for creating content that does not know on 46 // This profile should be used for creating content that does not know on
46 // which monitor it will be displayed. 47 // which monitor it will be displayed.
47 static ICCProfile FromBestMonitor(); 48 static ICCProfile FromBestMonitor();
48 #if defined(OS_MACOSX) 49 #if defined(OS_MACOSX)
49 static ICCProfile FromCGColorSpace(CGColorSpaceRef cg_color_space); 50 static ICCProfile FromCGColorSpace(CGColorSpaceRef cg_color_space);
50 #endif 51 #endif
51 52
52 // This will recover a ICCProfile from a compact ColorSpace representation. 53 // This will recover a ICCProfile from a compact ColorSpace representation.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 friend class ColorSpace; 100 friend class ColorSpace;
100 friend struct IPC::ParamTraits<gfx::ICCProfile>; 101 friend struct IPC::ParamTraits<gfx::ICCProfile>;
101 friend struct IPC::ParamTraits<gfx::ICCProfile::Type>; 102 friend struct IPC::ParamTraits<gfx::ICCProfile::Type>;
102 friend struct mojo::StructTraits<gfx::mojom::ICCProfileDataView, 103 friend struct mojo::StructTraits<gfx::mojom::ICCProfileDataView,
103 gfx::ICCProfile>; 104 gfx::ICCProfile>;
104 }; 105 };
105 106
106 } // namespace gfx 107 } // namespace gfx
107 108
108 #endif // UI_GFX_ICC_PROFILE_H_ 109 #endif // UI_GFX_ICC_PROFILE_H_
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebView.h ('k') | ui/gfx/icc_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698