| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| 11 #include "ui/base/gtk/tooltip_window_gtk.h" |
| 11 #include "views/widget/tooltip_manager.h" | 12 #include "views/widget/tooltip_manager.h" |
| 12 #include "views/widget/tooltip_window_gtk.h" | |
| 13 | 13 |
| 14 namespace views { | 14 namespace views { |
| 15 | 15 |
| 16 class NativeWidgetGtk; | 16 class NativeWidgetGtk; |
| 17 | 17 |
| 18 // TooltipManager implementation for Gtk. | 18 // TooltipManager implementation for Gtk. |
| 19 class TooltipManagerGtk : public TooltipManager { | 19 class TooltipManagerGtk : public TooltipManager { |
| 20 public: | 20 public: |
| 21 explicit TooltipManagerGtk(NativeWidgetGtk* widget); | 21 explicit TooltipManagerGtk(NativeWidgetGtk* widget); |
| 22 virtual ~TooltipManagerGtk() {} | 22 virtual ~TooltipManagerGtk() {} |
| (...skipping 13 matching lines...) Expand all Loading... |
| 36 // keyboard tooltip if it isn't showing, or hides it if it is showing. | 36 // keyboard tooltip if it isn't showing, or hides it if it is showing. |
| 37 bool SendShowHelpSignal(); | 37 bool SendShowHelpSignal(); |
| 38 | 38 |
| 39 // Our owner. | 39 // Our owner. |
| 40 NativeWidgetGtk* widget_; | 40 NativeWidgetGtk* widget_; |
| 41 | 41 |
| 42 // The view supplied to the last invocation of ShowKeyboardTooltip. | 42 // The view supplied to the last invocation of ShowKeyboardTooltip. |
| 43 View* keyboard_view_; | 43 View* keyboard_view_; |
| 44 | 44 |
| 45 // Customized tooltip window. | 45 // Customized tooltip window. |
| 46 TooltipWindowGtk tooltip_window_; | 46 ui::TooltipWindowGtk tooltip_window_; |
| 47 | 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(TooltipManagerGtk); | 48 DISALLOW_COPY_AND_ASSIGN(TooltipManagerGtk); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace views | 51 } // namespace views |
| 52 | 52 |
| 53 #endif // VIEWS_WIDGET_TOOLTIP_MANAGER_GTK_H_ | 53 #endif // VIEWS_WIDGET_TOOLTIP_MANAGER_GTK_H_ |
| OLD | NEW |