OLD | NEW |
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_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_ | 5 #ifndef ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_ |
6 #define ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_ | 6 #define ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/wm/session_state_observer.h" | 9 #include "ash/wm/session_state_observer.h" |
10 #include "ash/wm/shelf_layout_manager.h" | 10 #include "ash/wm/shelf_layout_manager.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // Stops the timer for the delayed showing |view_|. | 68 // Stops the timer for the delayed showing |view_|. |
69 void StopTimer(); | 69 void StopTimer(); |
70 | 70 |
71 // Returns true if the tooltip is currently visible. | 71 // Returns true if the tooltip is currently visible. |
72 bool IsVisible(); | 72 bool IsVisible(); |
73 | 73 |
74 protected: | 74 protected: |
75 // ui::EventHandler overrides: | 75 // ui::EventHandler overrides: |
76 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 76 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
77 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 77 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
78 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 78 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
79 | 79 |
80 // SessionStateObserver override: | 80 // SessionStateObserver override: |
81 virtual void OnSessionStateEvent(SessionStateObserver::EventType event) | 81 virtual void OnSessionStateEvent(SessionStateObserver::EventType event) |
82 OVERRIDE; | 82 OVERRIDE; |
83 | 83 |
84 // ShelfLayoutManager::Observer overrides: | 84 // ShelfLayoutManager::Observer overrides: |
85 virtual void WillDeleteShelf() OVERRIDE; | 85 virtual void WillDeleteShelf() OVERRIDE; |
86 virtual void WillChangeVisibilityState( | 86 virtual void WillChangeVisibilityState( |
87 ShelfLayoutManager::VisibilityState new_state) OVERRIDE; | 87 ShelfLayoutManager::VisibilityState new_state) OVERRIDE; |
88 virtual void OnAutoHideStateChanged( | 88 virtual void OnAutoHideStateChanged( |
(...skipping 19 matching lines...) Expand all Loading... |
108 ShelfLayoutManager* shelf_layout_manager_; | 108 ShelfLayoutManager* shelf_layout_manager_; |
109 LauncherView* launcher_view_; | 109 LauncherView* launcher_view_; |
110 | 110 |
111 DISALLOW_COPY_AND_ASSIGN(LauncherTooltipManager); | 111 DISALLOW_COPY_AND_ASSIGN(LauncherTooltipManager); |
112 }; | 112 }; |
113 | 113 |
114 } // namespace internal | 114 } // namespace internal |
115 } // namespace ash | 115 } // namespace ash |
116 | 116 |
117 #endif // ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_ | 117 #endif // ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_ |
OLD | NEW |