OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef VIEWS_WIDGET_TOOLTIP_MANAGER_GTK_H_ |
| 6 #define VIEWS_WIDGET_TOOLTIP_MANAGER_GTK_H_ |
| 7 |
| 8 #include "views/widget/tooltip_manager.h" |
| 9 |
| 10 namespace views { |
| 11 |
| 12 class Widget; |
| 13 |
| 14 // TooltipManager takes care of the wiring to support tooltips for Views. You |
| 15 // almost never need to interact directly with TooltipManager, rather look to |
| 16 // the various tooltip methods on View. |
| 17 class TooltipManagerGtk : public TooltipManager { |
| 18 public: |
| 19 explicit TooltipManagerGtk(Widget* widget); |
| 20 virtual ~TooltipManagerGtk() {} |
| 21 |
| 22 // TooltipManager. |
| 23 virtual void UpdateTooltip(); |
| 24 virtual void TooltipTextChanged(View* view); |
| 25 virtual void ShowKeyboardTooltip(View* view); |
| 26 virtual void HideKeyboardTooltip(); |
| 27 |
| 28 private: |
| 29 // Our owner. |
| 30 Widget* widget_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(TooltipManagerGtk); |
| 33 }; |
| 34 |
| 35 } // namespace views |
| 36 |
| 37 #endif // VIEWS_WIDGET_TOOLTIP_MANAGER_GTK_H_ |
OLD | NEW |