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

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

Issue 1543183002: Switch to standard integer types in ui/gfx/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 | « ui/gfx/color_analysis_unittest.cc ('k') | ui/gfx/color_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 (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
8 #include <vector> 10 #include <vector>
9 11
12 #include "base/macros.h"
13 #include "build/build_config.h"
10 #include "ui/gfx/geometry/rect.h" 14 #include "ui/gfx/geometry/rect.h"
11 #include "ui/gfx/gfx_export.h" 15 #include "ui/gfx/gfx_export.h"
12 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
13 17
14 namespace gfx { 18 namespace gfx {
15 19
16 static const size_t kMinProfileLength = 128; 20 static const size_t kMinProfileLength = 128;
17 static const size_t kMaxProfileLength = 4 * 1024 * 1024; 21 static const size_t kMaxProfileLength = 4 * 1024 * 1024;
18 22
19 class GFX_EXPORT ColorProfile { 23 class GFX_EXPORT ColorProfile {
(...skipping 27 matching lines...) Expand all
47 // Return the color profile of the native window. If the window is null, or has 51 // Return the color profile of the native window. If the window is null, or has
48 // empty bounds, return false meaning there is no color profile associated with 52 // empty bounds, return false meaning there is no color profile associated with
49 // the window. Otherwise return true after storing the window color profile in 53 // the window. Otherwise return true after storing the window color profile in
50 // |profile|, which will be empty if the sRGB color profile should be assumed. 54 // |profile|, which will be empty if the sRGB color profile should be assumed.
51 GFX_EXPORT bool GetDisplayColorProfile(gfx::NativeWindow window, 55 GFX_EXPORT bool GetDisplayColorProfile(gfx::NativeWindow window,
52 std::vector<char>* profile); 56 std::vector<char>* profile);
53 #endif 57 #endif
54 } // namespace gfx 58 } // namespace gfx
55 59
56 #endif // UI_GFX_COLOR_PROFILE_H_ 60 #endif // UI_GFX_COLOR_PROFILE_H_
OLDNEW
« no previous file with comments | « ui/gfx/color_analysis_unittest.cc ('k') | ui/gfx/color_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698