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

Side by Side Diff: ash/common/shelf/wm_shelf.h

Issue 2227143003: mash: Move AutoHideEventHandler to WmShelfAura. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 4 years, 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_COMMON_SHELF_WM_SHELF_H_ 5 #ifndef ASH_COMMON_SHELF_WM_SHELF_H_
6 #define ASH_COMMON_SHELF_WM_SHELF_H_ 6 #define ASH_COMMON_SHELF_WM_SHELF_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/shelf/shelf_types.h" 9 #include "ash/common/shelf/shelf_types.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class Rect; 12 class Rect;
13 } 13 }
14 14
15 namespace ui { 15 namespace ui {
16 class GestureEvent; 16 class GestureEvent;
17 class MouseEvent;
James Cook 2016/08/09 19:47:58 You're so good about cleaning up stuff like this.
msw 2016/08/09 19:52:58 Acknowledged.
18 } 17 }
19 18
20 namespace ash { 19 namespace ash {
21 20
22 class ShelfLockingManager; 21 class ShelfLockingManager;
23 class ShelfView; 22 class ShelfView;
24 class WmShelfObserver; 23 class WmShelfObserver;
25 class WmWindow; 24 class WmWindow;
26 25
27 // Used for accessing global state. 26 // Used for accessing global state.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // Returns the screen bounds of the item for the specified window. If there is 83 // Returns the screen bounds of the item for the specified window. If there is
85 // no item for the specified window an empty rect is returned. 84 // no item for the specified window an empty rect is returned.
86 virtual gfx::Rect GetScreenBoundsOfItemIconForWindow(WmWindow* window) = 0; 85 virtual gfx::Rect GetScreenBoundsOfItemIconForWindow(WmWindow* window) = 0;
87 86
88 // Handles a gesture |event| coming from a source outside the shelf widget 87 // Handles a gesture |event| coming from a source outside the shelf widget
89 // (e.g. the status area widget). Allows support for behaviors like toggling 88 // (e.g. the status area widget). Allows support for behaviors like toggling
90 // auto-hide with a swipe, even if that gesture event hits another window. 89 // auto-hide with a swipe, even if that gesture event hits another window.
91 // Returns true if the event was handled. 90 // Returns true if the event was handled.
92 virtual bool ProcessGestureEvent(const ui::GestureEvent& event) = 0; 91 virtual bool ProcessGestureEvent(const ui::GestureEvent& event) = 0;
93 92
94 // TODO(jamescook): Nuke when ash_sysui is removed. http://crbug.com/621112
95 virtual void UpdateAutoHideForMouseEvent(ui::MouseEvent* event) = 0;
96 virtual void UpdateAutoHideForGestureEvent(ui::GestureEvent* event) = 0;
97
98 virtual void AddObserver(WmShelfObserver* observer) = 0; 93 virtual void AddObserver(WmShelfObserver* observer) = 0;
99 virtual void RemoveObserver(WmShelfObserver* observer) = 0; 94 virtual void RemoveObserver(WmShelfObserver* observer) = 0;
100 95
101 // Simulates a virtual keyboard bounds update. 96 // Simulates a virtual keyboard bounds update.
102 virtual void SetKeyboardBoundsForTesting(const gfx::Rect& bounds) = 0; 97 virtual void SetKeyboardBoundsForTesting(const gfx::Rect& bounds) = 0;
103 98
104 virtual ShelfLockingManager* GetShelfLockingManagerForTesting() = 0; 99 virtual ShelfLockingManager* GetShelfLockingManagerForTesting() = 0;
105 virtual ShelfView* GetShelfViewForTesting() = 0; 100 virtual ShelfView* GetShelfViewForTesting() = 0;
106 101
107 protected: 102 protected:
108 virtual ~WmShelf() {} 103 virtual ~WmShelf() {}
109 }; 104 };
110 105
111 } // namespace ash 106 } // namespace ash
112 107
113 #endif // ASH_COMMON_SHELF_WM_SHELF_H_ 108 #endif // ASH_COMMON_SHELF_WM_SHELF_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698