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

Unified Diff: ash/wm/gestures/two_finger_drag_handler.cc

Issue 12441010: Attach panel while dragging to bring it in front of other panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments, etc. Created 7 years, 9 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/two_finger_drag_handler.cc
diff --git a/ash/wm/gestures/two_finger_drag_handler.cc b/ash/wm/gestures/two_finger_drag_handler.cc
index 9decd47176b54725d20060d7e5fa72e86bbfb70d..6b0c457e2d1283076ec24a9ec419edbfce2d1cef 100644
--- a/ash/wm/gestures/two_finger_drag_handler.cc
+++ b/ash/wm/gestures/two_finger_drag_handler.cc
@@ -98,7 +98,9 @@ bool TwoFingerDragHandler::ProcessGestureEvent(aura::Window* target,
if (WindowComponentsAllowMoving(first_finger_hittest_,
target->delegate()->GetNonClientComponent(event.location()))) {
target->AddObserver(this);
- window_resizer_ = CreateWindowResizer(target,
+ // Pass NULL as the WindowResizerOwner as only this class knows how to
+ // handle drags with two finger gestures.
+ window_resizer_ = CreateWindowResizer(/* owner */ NULL, target,
stevenjb 2013/03/13 19:31:39 NULL /* owner */
event.details().bounding_box().CenterPoint(), HTCAPTION);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698