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

Unified Diff: ui/gfx/screen_win.cc

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_win.cc
diff --git a/ui/gfx/screen_win.cc b/ui/gfx/screen_win.cc
index 0da5833a0c9c143b688619204d47079dfa6ceef1..ac09307eab40bcd7b439e8d6dd09068cb6450afb 100644
--- a/ui/gfx/screen_win.cc
+++ b/ui/gfx/screen_win.cc
@@ -106,6 +106,19 @@ gfx::Display ScreenWin::GetDisplayNearestWindow(gfx::NativeView window) const {
return GetDisplay(monitor_info);
}
+bool ScreenWin::GetDisplayColorProfile(
+ gfx::NativeView view, std::vector<char>* color_profile) const {
+ DCHECK(color_profile->empty());
+
+ HWND hwnd = GetHWNDFromNativeView(view);
+ if (!hwnd)
+ return false;
+
+ // TODO(noel): implement.
+ NOTIMPLEMENTED();
+ return false;
+}
+
gfx::Display ScreenWin::GetDisplayNearestPoint(const gfx::Point& point) const {
POINT initial_loc = { point.x(), point.y() };
HMONITOR monitor = MonitorFromPoint(initial_loc, MONITOR_DEFAULTTONEAREST);

Powered by Google App Engine
This is Rietveld 408576698