OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_TOOLTIP_MANAGER_H_ | 5 #ifndef CHROME_VIEWS_TOOLTIP_MANAGER_H_ |
6 #define CHROME_VIEWS_TOOLTIP_MANAGER_H_ | 6 #define CHROME_VIEWS_TOOLTIP_MANAGER_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <string> | 9 #include <string> |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // Invoked when toolbar icon gets focus. | 70 // Invoked when toolbar icon gets focus. |
71 void ShowKeyboardTooltip(View* view); | 71 void ShowKeyboardTooltip(View* view); |
72 | 72 |
73 // Invoked when toolbar loses focus. | 73 // Invoked when toolbar loses focus. |
74 void HideKeyboardTooltip(); | 74 void HideKeyboardTooltip(); |
75 | 75 |
76 // Message handlers. These forward to the tooltip control. | 76 // Message handlers. These forward to the tooltip control. |
77 virtual void OnMouse(UINT u_msg, WPARAM w_param, LPARAM l_param); | 77 virtual void OnMouse(UINT u_msg, WPARAM w_param, LPARAM l_param); |
78 LRESULT OnNotify(int w_param, NMHDR* l_param, bool* handled); | 78 LRESULT OnNotify(int w_param, NMHDR* l_param, bool* handled); |
| 79 // Not used directly by TooltipManager, but provided for AeroTooltipManager. |
| 80 virtual void OnMouseLeave() {} |
79 | 81 |
80 protected: | 82 protected: |
81 virtual void Init(); | 83 virtual void Init(); |
82 | 84 |
83 // Updates the tooltip for the specified location. | 85 // Updates the tooltip for the specified location. |
84 void UpdateTooltip(int x, int y); | 86 void UpdateTooltip(int x, int y); |
85 | 87 |
86 // Parent window the tooltip is added to. | 88 // Parent window the tooltip is added to. |
87 HWND parent_; | 89 HWND parent_; |
88 | 90 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // Used to register DestroyTooltipWindow function with postdelayedtask | 156 // Used to register DestroyTooltipWindow function with postdelayedtask |
155 // function. | 157 // function. |
156 ScopedRunnableMethodFactory<TooltipManager> keyboard_tooltip_factory_; | 158 ScopedRunnableMethodFactory<TooltipManager> keyboard_tooltip_factory_; |
157 | 159 |
158 DISALLOW_EVIL_CONSTRUCTORS(TooltipManager); | 160 DISALLOW_EVIL_CONSTRUCTORS(TooltipManager); |
159 }; | 161 }; |
160 | 162 |
161 } // namespace views | 163 } // namespace views |
162 | 164 |
163 #endif // CHROME_VIEWS_TOOLTIP_MANAGER_H_ | 165 #endif // CHROME_VIEWS_TOOLTIP_MANAGER_H_ |
OLD | NEW |