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