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

Unified Diff: ash/wm/gestures/long_press_affordance_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/gestures/long_press_affordance_handler.cc
diff --git a/ash/wm/gestures/long_press_affordance_handler.cc b/ash/wm/gestures/long_press_affordance_handler.cc
index 328c0ad4f53d866939039e7119983368ad371f67..22b61055f39d363d2644471366391aa4ba83efd0 100644
--- a/ash/wm/gestures/long_press_affordance_handler.cc
+++ b/ash/wm/gestures/long_press_affordance_handler.cc
@@ -261,7 +261,8 @@ void LongPressAffordanceHandler::ProcessEvent(aura::Window* target,
tap_down_location_ = event->root_location();
tap_down_touch_id_ = touch_id;
current_animation_type_ = GROW_ANIMATION;
- tap_down_display_id_ = gfx::Screen::GetDisplayNearestWindow(target).id();
+ tap_down_display_id_ =
+ Shell::GetAshScreen()->GetDisplayNearestWindow(target).id();
timer_.Start(FROM_HERE,
base::TimeDelta::FromMilliseconds(timer_start_time_ms),
this,

Powered by Google App Engine
This is Rietveld 408576698