| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 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 | 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 VIEWS_WIDGET_TOOLTIP_MANAGER_GTK_H_ | 5 #ifndef VIEWS_WIDGET_TOOLTIP_MANAGER_GTK_H_ |
| 6 #define VIEWS_WIDGET_TOOLTIP_MANAGER_GTK_H_ | 6 #define VIEWS_WIDGET_TOOLTIP_MANAGER_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> |
| 9 |
| 8 #include "views/widget/tooltip_manager.h" | 10 #include "views/widget/tooltip_manager.h" |
| 9 | 11 #include "views/widget/tooltip_window_gtk.h" |
| 10 #include <gtk/gtk.h> | |
| 11 | 12 |
| 12 namespace views { | 13 namespace views { |
| 13 | 14 |
| 14 class WidgetGtk; | 15 class WidgetGtk; |
| 15 | 16 |
| 16 // TooltipManager implementation for Gtk. | 17 // TooltipManager implementation for Gtk. |
| 17 class TooltipManagerGtk : public TooltipManager { | 18 class TooltipManagerGtk : public TooltipManager { |
| 18 public: | 19 public: |
| 19 explicit TooltipManagerGtk(WidgetGtk* widget); | 20 explicit TooltipManagerGtk(WidgetGtk* widget); |
| 20 virtual ~TooltipManagerGtk() {} | 21 virtual ~TooltipManagerGtk() {} |
| (...skipping 12 matching lines...) Expand all Loading... |
| 33 // Sends the show_help signal to widget_. This signal triggers showing the | 34 // Sends the show_help signal to widget_. This signal triggers showing the |
| 34 // keyboard tooltip if it isn't showing, or hides it if it is showing. | 35 // keyboard tooltip if it isn't showing, or hides it if it is showing. |
| 35 bool SendShowHelpSignal(); | 36 bool SendShowHelpSignal(); |
| 36 | 37 |
| 37 // Our owner. | 38 // Our owner. |
| 38 WidgetGtk* widget_; | 39 WidgetGtk* widget_; |
| 39 | 40 |
| 40 // The view supplied to the last invocation of ShowKeyboardTooltip. | 41 // The view supplied to the last invocation of ShowKeyboardTooltip. |
| 41 View* keyboard_view_; | 42 View* keyboard_view_; |
| 42 | 43 |
| 44 // Custimized tooltip window. |
| 45 TooltipWindowGtk tooltip_window_; |
| 46 |
| 43 DISALLOW_COPY_AND_ASSIGN(TooltipManagerGtk); | 47 DISALLOW_COPY_AND_ASSIGN(TooltipManagerGtk); |
| 44 }; | 48 }; |
| 45 | 49 |
| 46 } // namespace views | 50 } // namespace views |
| 47 | 51 |
| 48 #endif // VIEWS_WIDGET_TOOLTIP_MANAGER_GTK_H_ | 52 #endif // VIEWS_WIDGET_TOOLTIP_MANAGER_GTK_H_ |
| OLD | NEW |