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

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

Issue 849523003: ui/gfx/color_profile: Add GetDisplayColorProfile for an NSWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « ui/gfx/color_profile.h ('k') | ui/gfx/color_profile_mac.mm » ('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 #include "ui/gfx/color_profile.h" 5 #include "ui/gfx/color_profile.h"
6 6
7 namespace gfx { 7 namespace gfx {
8 8
9 #if defined(OS_WIN) || defined(OS_MACOSX) 9 #if defined(OS_WIN) || defined(OS_MACOSX)
Robert Sesek 2015/01/20 17:03:39 What are these redeclarations for? They're already
Noel Gordon 2015/01/22 16:26:57 Mainly for doumentation it seems.
Robert Sesek 2015/01/23 14:30:47 I don't follow. I.e., I think these should be remo
10 void ReadColorProfile(std::vector<char>* profile); 10 void ReadColorProfile(std::vector<char>* profile);
11 GFX_EXPORT bool GetDisplayColorProfile(const gfx::Rect& bounds, 11 GFX_EXPORT bool GetDisplayColorProfile(const gfx::Rect& bounds,
12 std::vector<char>* profile); 12 std::vector<char>* profile);
13 #if defined(OS_MACOSX)
14 GFX_EXPORT bool GetDisplayColorProfile(gfx::NativeWindow window,
15 std::vector<char>* profile);
16 #endif
13 #else 17 #else
14 void ReadColorProfile(std::vector<char>* profile) { } 18 void ReadColorProfile(std::vector<char>* profile) { }
15 GFX_EXPORT bool GetDisplayColorProfile(const gfx::Rect& bounds, 19 GFX_EXPORT bool GetDisplayColorProfile(const gfx::Rect& bounds,
16 std::vector<char>* profile) { 20 std::vector<char>* profile) {
17 // TODO(port): consider screen color profile support. 21 // TODO(port): consider screen color profile support.
18 return false; 22 return false;
19 } 23 }
20 #endif 24 #endif
21 25
22 ColorProfile::ColorProfile() { 26 ColorProfile::ColorProfile() {
23 // TODO: support multiple monitors. 27 // TODO: support multiple monitors.
24 ReadColorProfile(&profile_); 28 ReadColorProfile(&profile_);
25 } 29 }
26 30
27 ColorProfile::~ColorProfile() { 31 ColorProfile::~ColorProfile() {
28 } 32 }
29 33
30 } // namespace gfx 34 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/color_profile.h ('k') | ui/gfx/color_profile_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698