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

Unified Diff: ash/wm/gestures/tray_gesture_handler.h

Issue 879653002: Remove --ash-enable-tray-dragging flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/wm/gestures/shelf_gesture_handler.cc ('k') | ash/wm/gestures/tray_gesture_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/gestures/tray_gesture_handler.h
diff --git a/ash/wm/gestures/tray_gesture_handler.h b/ash/wm/gestures/tray_gesture_handler.h
deleted file mode 100644
index 529349868c81c453cb754b37731bd2071794ef83..0000000000000000000000000000000000000000
--- a/ash/wm/gestures/tray_gesture_handler.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_WM_GESTURES_TRAY_GESTURE_HANDLER_H_
-#define ASH_WM_GESTURES_TRAY_GESTURE_HANDLER_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ui/views/widget/widget_observer.h"
-
-namespace ui {
-class GestureEvent;
-}
-
-namespace ash {
-
-// Handles gesture events on the shelf to show the system tray bubble.
-class TrayGestureHandler : public views::WidgetObserver {
- public:
- TrayGestureHandler();
- ~TrayGestureHandler() override;
-
- // Handles a gesture-update event and updates the dragging state of the tray
- // bubble. Returns true if the handler can continue to process gesture events
- // for the bubble. Returns false if it should no longer receive gesture
- // events.
- bool UpdateGestureDrag(const ui::GestureEvent& event);
-
- void CompleteGestureDrag(const ui::GestureEvent& event);
-
- private:
- void OnWidgetDestroying(views::Widget* widget) override;
-
- // The widget for the tray-bubble.
- views::Widget* widget_;
-
- // The amount that has been dragged.
- float gesture_drag_amount_;
-
- DISALLOW_COPY_AND_ASSIGN(TrayGestureHandler);
-};
-
-} // namespace ash
-
-#endif // ASH_WM_GESTURES_TRAY_GESTURE_HANDLER_H_
« no previous file with comments | « ash/wm/gestures/shelf_gesture_handler.cc ('k') | ash/wm/gestures/tray_gesture_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698