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

Unified Diff: ash/wm/workspace/workspace_event_handler.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: ash/wm/workspace/workspace_event_handler.cc
diff --git a/ash/wm/workspace/workspace_event_handler.cc b/ash/wm/workspace/workspace_event_handler.cc
index 7504a1146581704fcb463ad6f5e503c035ffe7ad..f0db7261befd6a417c8d1c72356f6e8e6a986dee 100644
--- a/ash/wm/workspace/workspace_event_handler.cc
+++ b/ash/wm/workspace/workspace_event_handler.cc
@@ -5,6 +5,7 @@
#include "ash/wm/workspace/workspace_event_handler.h"
#include "ash/screen_ash.h"
+#include "ash/shell.h"
#include "ash/wm/property_util.h"
#include "ash/wm/window_util.h"
#include "ash/wm/workspace/workspace_window_resizer.h"
@@ -141,7 +142,7 @@ void WorkspaceEventHandler::HandleVerticalResizeDoubleClick(
int component =
target->delegate()->GetNonClientComponent(event->location());
gfx::Rect work_area =
- gfx::Screen::GetDisplayNearestWindow(target).work_area();
+ Shell::GetAshScreen()->GetDisplayNearestWindow(target).work_area();
const gfx::Rect* restore_bounds =
target->GetProperty(aura::client::kRestoreBoundsKey);
if (component == HTBOTTOM || component == HTTOP) {

Powered by Google App Engine
This is Rietveld 408576698