| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_VIEWS_WIDGET_TOOLTIP_MANAGER_H_ | 5 #ifndef UI_VIEWS_WIDGET_TOOLTIP_MANAGER_H_ |
| 6 #define UI_VIEWS_WIDGET_TOOLTIP_MANAGER_H_ | 6 #define UI_VIEWS_WIDGET_TOOLTIP_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "ui/views/views_export.h" | 11 #include "ui/views/views_export.h" |
| 12 | 12 |
| 13 namespace gfx { | 13 namespace gfx { |
| 14 class Display; | |
| 15 class FontList; | 14 class FontList; |
| 16 class Point; | 15 class Point; |
| 17 } // namespace gfx | 16 } // namespace gfx |
| 18 | 17 |
| 19 namespace views { | 18 namespace views { |
| 20 | 19 |
| 21 class View; | 20 class View; |
| 22 | 21 |
| 23 // TooltipManager takes care of the wiring to support tooltips for Views. You | 22 // TooltipManager takes care of the wiring to support tooltips for Views. You |
| 24 // almost never need to interact directly with TooltipManager, rather look to | 23 // almost never need to interact directly with TooltipManager, rather look to |
| (...skipping 22 matching lines...) Expand all Loading... |
| 47 // Notification that the view hierarchy has changed in some way. | 46 // Notification that the view hierarchy has changed in some way. |
| 48 virtual void UpdateTooltip() = 0; | 47 virtual void UpdateTooltip() = 0; |
| 49 | 48 |
| 50 // Invoked when the tooltip text changes for the specified views. | 49 // Invoked when the tooltip text changes for the specified views. |
| 51 virtual void TooltipTextChanged(View* view) = 0; | 50 virtual void TooltipTextChanged(View* view) = 0; |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 } // namespace views | 53 } // namespace views |
| 55 | 54 |
| 56 #endif // UI_VIEWS_WIDGET_TOOLTIP_MANAGER_H_ | 55 #endif // UI_VIEWS_WIDGET_TOOLTIP_MANAGER_H_ |
| OLD | NEW |