| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |