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

Side by Side Diff: ash/wm/gestures/shelf_gesture_handler.h

Issue 2109193002: mash: Convert StatusAreaWidgetDelegate to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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/system/status_area_widget_delegate.cc ('k') | no next file » | 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/macros.h" 8 #include "base/macros.h"
9 9
10 namespace aura { 10 namespace aura {
11 class Window; 11 class Window;
12 } // namespace aura 12 } // namespace aura
13 13
14 namespace ui { 14 namespace ui {
15 class GestureEvent; 15 class GestureEvent;
16 } // namespace ui 16 } // namespace ui
17 17
18 namespace ash { 18 namespace ash {
19 19
20 // This manages gestures on the shelf (e.g. launcher, status tray) that affects 20 // This manages gestures on the shelf (e.g. launcher, status tray) that affects
21 // the shelf visibility. 21 // the shelf visibility.
22 // TODO(jamescook): Consolidate this with ShelfLayoutManager and its notion of
23 // drag status.
22 class ShelfGestureHandler { 24 class ShelfGestureHandler {
23 public: 25 public:
24 ShelfGestureHandler(); 26 ShelfGestureHandler();
25 virtual ~ShelfGestureHandler(); 27 virtual ~ShelfGestureHandler();
26 28
27 // Processes a gesture event and updates the status of the shelf when 29 // Processes a gesture event and updates the status of the shelf when
28 // appropriate. Returns true of the gesture has been handled and it should not 30 // appropriate. Returns true of the gesture has been handled and it should not
29 // be processed any farther, false otherwise. 31 // be processed any farther, false otherwise.
30 // The caller must provide the |event_target_window| because the caller has 32 // The caller must provide the |event_target_window| because the caller has
31 // knowledge of the type of the |event.target()| whether it's a |views::View| 33 // knowledge of the type of the |event.target()| whether it's a |views::View|
32 // or an |aura::Window|. 34 // or an |aura::Window|.
33 bool ProcessGestureEvent(const ui::GestureEvent& event, 35 bool ProcessGestureEvent(const ui::GestureEvent& event,
34 const aura::Window* event_target_window); 36 const aura::Window* event_target_window);
35 37
36 private: 38 private:
37 bool drag_in_progress_; 39 bool drag_in_progress_;
38 40
39 DISALLOW_COPY_AND_ASSIGN(ShelfGestureHandler); 41 DISALLOW_COPY_AND_ASSIGN(ShelfGestureHandler);
40 }; 42 };
41 43
42 } // namespace ash 44 } // namespace ash
43 45
44 #endif // ASH_WM_GESTURES_SHELF_GESTURE_HANDLER_H_ 46 #endif // ASH_WM_GESTURES_SHELF_GESTURE_HANDLER_H_
OLDNEW
« no previous file with comments | « ash/system/status_area_widget_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698