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

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

Issue 12220026: ash: Do not allow minimizing windows in login screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add-test Created 7 years, 10 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
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/wm/property_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d042a2fe9830bc681f8bb226e4f6728d45fb914e..a94c236356298583ac0e0932d3155ad392ccfa18 100644
--- a/ash/wm/gestures/two_finger_drag_handler.cc
+++ b/ash/wm/gestures/two_finger_drag_handler.cc
@@ -134,7 +134,8 @@ bool TwoFingerDragHandler::ProcessGestureEvent(aura::Window* target,
if (event.details().swipe_up()) {
if (wm::CanMaximizeWindow(target))
wm::MaximizeWindow(target);
- } else if (event.details().swipe_down()) {
+ } else if (event.details().swipe_down() &&
+ wm::CanMinimizeWindow(target)) {
wm::MinimizeWindow(target);
} else if (wm::CanSnapWindow(target)) {
ui::ScopedLayerAnimationSettings scoped_setter(
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/wm/property_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698