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

Unified Diff: ui/gfx/screen_mac.mm

Issue 263643004: Teach gfx::Screen about color profiles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mojo movers [sky]. Created 6 years, 7 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
Index: ui/gfx/screen_mac.mm
diff --git a/ui/gfx/screen_mac.mm b/ui/gfx/screen_mac.mm
index 377c8592210b93f00da814c6383c2343d7c28fe7..11d94fca44d90335e36fa0a3c9d906cbf6e91643 100644
--- a/ui/gfx/screen_mac.mm
+++ b/ui/gfx/screen_mac.mm
@@ -166,6 +166,22 @@ class ScreenMac : public gfx::Screen {
return GetDisplayForScreen(match_screen);
}
+ virtual bool GetDisplayColorProfile(
+ gfx::NativeView view, std::vector<char>* color_profile) const OVERRIDE {
+ DCHECK(color_profile->empty());
+
+ NSWindow* window = nil;
+#if !defined(USE_AURA)
+ window = [view window];
+#endif
+ if (!window)
+ return false;
+
+ // TODO(noel): implement.
+ NOTIMPLEMENTED();
+ return false;
+ }
+
virtual gfx::Display GetDisplayNearestPoint(
const gfx::Point& point) const OVERRIDE {
NSPoint ns_point = NSPointFromCGPoint(point.ToCGPoint());
« ui/gfx/screen.h ('K') | « ui/gfx/screen_ios.mm ('k') | ui/gfx/screen_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698