Chromium Code Reviews

Unified Diff: ash/content/keyboard_overlay/keyboard_overlay_delegate.cc

Issue 1608053002: Remove now-unnecessary wrappers around gfx::Screen::GetScreen() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-5
Patch Set: cros Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: ash/content/keyboard_overlay/keyboard_overlay_delegate.cc
diff --git a/ash/content/keyboard_overlay/keyboard_overlay_delegate.cc b/ash/content/keyboard_overlay/keyboard_overlay_delegate.cc
index 91f299a6809c5fe8b2199928618aa100d4c37352..fe0a5c349c1e6da0b58df23c568d79058be0859f 100644
--- a/ash/content/keyboard_overlay/keyboard_overlay_delegate.cc
+++ b/ash/content/keyboard_overlay/keyboard_overlay_delegate.cc
@@ -77,7 +77,7 @@ views::Widget* KeyboardOverlayDelegate::Show(views::WebDialogView* view) {
gfx::Size size;
GetDialogSize(&size);
const gfx::Rect& rect =
- Shell::GetScreen()
+ gfx::Screen::GetScreen()
->GetDisplayNearestWindow(widget_->GetNativeView())
.work_area();
gfx::Rect bounds(rect.x() + (rect.width() - size.width()) / 2,
@@ -108,7 +108,7 @@ void KeyboardOverlayDelegate::GetWebUIMessageHandlers(
void KeyboardOverlayDelegate::GetDialogSize(gfx::Size* size) const {
using std::min;
DCHECK(widget_);
- gfx::Rect rect = ash::Shell::GetScreen()
+ gfx::Rect rect = gfx::Screen::GetScreen()
->GetDisplayNearestWindow(widget_->GetNativeView())
.work_area();
const int width = min(kBaseWidth, rect.width() - kHorizontalMargin);

Powered by Google App Engine