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

Unified Diff: content/browser/web_contents/web_contents_view_win.cc

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix new addition Created 8 years, 2 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 | « content/browser/web_contents/web_contents_view_aura.cc ('k') | content/shell/shell_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_view_win.cc
diff --git a/content/browser/web_contents/web_contents_view_win.cc b/content/browser/web_contents/web_contents_view_win.cc
index 66769af13ac91436139b7c8b95bdee31f960266b..70d6b84a95e86a69db4ae085bdec2b3b117c5b6b 100644
--- a/content/browser/web_contents/web_contents_view_win.cc
+++ b/content/browser/web_contents/web_contents_view_win.cc
@@ -59,7 +59,7 @@ BOOL CALLBACK EnumChildProc(HWND hwnd, LPARAM lParam) {
RenderWidgetHostViewWin* rwhv = static_cast<RenderWidgetHostViewWin*>(
wcv->web_contents()->GetRenderWidgetHostView());
if (rwhv)
- rwhv->UpdateScreenInfo();
+ rwhv->UpdateScreenInfo(rwhv->GetNativeView());
return TRUE; // must return TRUE to continue enumeration.
}
@@ -346,7 +346,7 @@ LRESULT WebContentsViewWin::OnWindowPosChanged(
RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView();
if (rwhv) {
RenderWidgetHostViewWin* view = static_cast<RenderWidgetHostViewWin*>(rwhv);
- view->UpdateScreenInfo();
+ view->UpdateScreenInfo(view->GetNativeView());
}
// Unless we were specifically told not to size, cause the renderer to be
@@ -382,7 +382,9 @@ LRESULT WebContentsViewWin::OnMouseMove(
// bubble state).
if (web_contents_->GetDelegate()) {
web_contents_->GetDelegate()->ContentsMouseEvent(
- web_contents_, gfx::Screen::GetCursorScreenPoint(), true);
+ web_contents_,
+ gfx::Screen::GetNativeScreen()->GetCursorScreenPoint(),
+ true);
}
return 0;
}
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | content/shell/shell_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698