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

Unified Diff: ui/views/widget/native_widget_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 some new gfx::Screen additions 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
Index: ui/views/widget/native_widget_win.cc
diff --git a/ui/views/widget/native_widget_win.cc b/ui/views/widget/native_widget_win.cc
index c6b0631d8fb6f6e2ac9af4afc7d2219cc97189c2..ddf2b72f721d3a69aaaed78812f3d4dd277345aa 100644
--- a/ui/views/widget/native_widget_win.cc
+++ b/ui/views/widget/native_widget_win.cc
@@ -472,7 +472,8 @@ void NativeWidgetWin::ClearNativeFocus() {
}
gfx::Rect NativeWidgetWin::GetWorkAreaBoundsInScreen() const {
- return gfx::Screen::GetDisplayNearestWindow(GetNativeView()).work_area();
+ return gfx::Screen::GetNativeScreen()->GetDisplayNearestWindow(
+ GetNativeView()).work_area();
}
void NativeWidgetWin::SetInactiveRenderingDisabled(bool value) {
@@ -913,7 +914,8 @@ namespace internal {
// static
NativeWidgetPrivate* NativeWidgetPrivate::CreateNativeWidget(
- internal::NativeWidgetDelegate* delegate) {
+ internal::NativeWidgetDelegate* delegate,
+ gfx::NativeView parent) {
return new NativeWidgetWin(delegate);
}

Powered by Google App Engine
This is Rietveld 408576698