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

Unified Diff: ui/gfx/screen.h

Issue 263643004: Teach gfx::Screen about color profiles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add desktop_aura/desktop_screen_x11.h Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/test/test_screen.cc ('k') | ui/gfx/screen_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/screen.h
diff --git a/ui/gfx/screen.h b/ui/gfx/screen.h
index 1d36d1b51cbefb9bff481219a7bddb6596b6875c..15e66d116012ec63d22fc0dfc224223ec3005663 100644
--- a/ui/gfx/screen.h
+++ b/ui/gfx/screen.h
@@ -73,6 +73,10 @@ class GFX_EXPORT Screen {
// Returns the display nearest the specified window.
virtual gfx::Display GetDisplayNearestWindow(NativeView view) const = 0;
+ // Returns the color profile of the display nearest the window.
Ken Russell (switch to Gerrit) 2014/04/30 17:43:17 Could you add a little more documentation here? Wh
Noel Gordon 2014/04/30 17:51:29 Yeah good point. Would this work for you? // Ret
Ken Russell (switch to Gerrit) 2014/04/30 17:52:02 Sounds good.
Noel Gordon 2014/05/01 05:24:55 Done.
+ virtual bool GetDisplayColorProfile(
+ NativeView view, std::vector<char>* color_profile) const = 0;
oshima 2014/04/30 18:18:53 Can you define a class (or struct) for color profi
Noel Gordon 2014/05/01 05:52:21 Yes I think that'd be overkill. At this level of
Noel Gordon 2014/05/01 07:33:24 Good question. Yeap, difficult. gfx::Display is n
+
// Returns the display nearest the specified point.
virtual gfx::Display GetDisplayNearestPoint(
const gfx::Point& point) const = 0;
« no previous file with comments | « ui/aura/test/test_screen.cc ('k') | ui/gfx/screen_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698