| OLD | NEW |
| 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_GFX_COLOR_PROFILE_H_ | 5 #ifndef UI_GFX_COLOR_PROFILE_H_ |
| 6 #define UI_GFX_COLOR_PROFILE_H_ | 6 #define UI_GFX_COLOR_PROFILE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | |
| 9 | |
| 10 #include <vector> | 8 #include <vector> |
| 11 | 9 |
| 12 #include "base/macros.h" | 10 #include "base/macros.h" |
| 13 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 14 #include "ui/gfx/geometry/rect.h" | |
| 15 #include "ui/gfx/gfx_export.h" | 12 #include "ui/gfx/gfx_export.h" |
| 16 #include "ui/gfx/native_widget_types.h" | |
| 17 | 13 |
| 18 namespace gfx { | 14 namespace gfx { |
| 19 | 15 |
| 20 class GFX_EXPORT ColorProfile { | 16 class GFX_EXPORT ColorProfile { |
| 21 public: | 17 public: |
| 18 ColorProfile(const std::vector<char>& profile); |
| 22 ColorProfile(); | 19 ColorProfile(); |
| 23 ColorProfile(ColorProfile&& other); | 20 ColorProfile(ColorProfile&& other); |
| 24 ColorProfile(const ColorProfile& other); | 21 ColorProfile(const ColorProfile& other); |
| 25 ColorProfile& operator=(const ColorProfile& other); | 22 ColorProfile& operator=(const ColorProfile& other); |
| 26 ~ColorProfile(); | 23 ~ColorProfile(); |
| 27 | 24 |
| 28 const std::vector<char>& profile() const { return profile_; } | 25 const std::vector<char>& profile() const { return profile_; } |
| 29 | 26 |
| 30 #if defined(OS_WIN) | 27 #if defined(OS_WIN) |
| 31 // This will read color profile information from disk and cache the results | 28 // This will read color profile information from disk and cache the results |
| (...skipping 10 matching lines...) Expand all Loading... |
| 42 | 39 |
| 43 static bool IsValidProfileLength(size_t length); | 40 static bool IsValidProfileLength(size_t length); |
| 44 | 41 |
| 45 private: | 42 private: |
| 46 std::vector<char> profile_; | 43 std::vector<char> profile_; |
| 47 }; | 44 }; |
| 48 | 45 |
| 49 } // namespace gfx | 46 } // namespace gfx |
| 50 | 47 |
| 51 #endif // UI_GFX_COLOR_PROFILE_H_ | 48 #endif // UI_GFX_COLOR_PROFILE_H_ |
| OLD | NEW |