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

Side by Side Diff: ash/wm/gestures/shelf_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 unified diff | Download patch
« no previous file with comments | « ash/shelf/shelf_layout_manager_unittest.cc ('k') | ash/wm/gestures/shelf_gesture_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_WM_GESTURES_SHELF_GESTURE_HANDLER_H_ 5 #ifndef ASH_WM_GESTURES_SHELF_GESTURE_HANDLER_H_
6 #define ASH_WM_GESTURES_SHELF_GESTURE_HANDLER_H_ 6 #define ASH_WM_GESTURES_SHELF_GESTURE_HANDLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 10
11 namespace ui { 11 namespace ui {
12 class GestureEvent; 12 class GestureEvent;
13 } 13 }
14 14
15 namespace ash { 15 namespace ash {
16 class TrayGestureHandler;
17 16
18 // This manages gestures on the shelf (e.g. launcher, status tray) that affects 17 // This manages gestures on the shelf (e.g. launcher, status tray) that affects
19 // the shelf visibility. 18 // the shelf visibility.
20 class ShelfGestureHandler { 19 class ShelfGestureHandler {
21 public: 20 public:
22 ShelfGestureHandler(); 21 ShelfGestureHandler();
23 virtual ~ShelfGestureHandler(); 22 virtual ~ShelfGestureHandler();
24 23
25 // Processes a gesture event and updates the status of the shelf when 24 // Processes a gesture event and updates the status of the shelf when
26 // appropriate. Returns true of the gesture has been handled and it should not 25 // appropriate. Returns true of the gesture has been handled and it should not
27 // be processed any farther, false otherwise. 26 // be processed any farther, false otherwise.
28 bool ProcessGestureEvent(const ui::GestureEvent& event); 27 bool ProcessGestureEvent(const ui::GestureEvent& event);
29 28
30 private: 29 private:
31 bool drag_in_progress_; 30 bool drag_in_progress_;
32 31
33 scoped_ptr<TrayGestureHandler> tray_handler_;
34
35 DISALLOW_COPY_AND_ASSIGN(ShelfGestureHandler); 32 DISALLOW_COPY_AND_ASSIGN(ShelfGestureHandler);
36 }; 33 };
37 34
38 } // namespace ash 35 } // namespace ash
39 36
40 #endif // ASH_WM_GESTURES_SHELF_GESTURE_HANDLER_H_ 37 #endif // ASH_WM_GESTURES_SHELF_GESTURE_HANDLER_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_layout_manager_unittest.cc ('k') | ash/wm/gestures/shelf_gesture_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698