| 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_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_TOOLTIP_MANAGER_AURA_H_ |
| 6 #define UI_VIEWS_WIDGET_TOOLTIP_MANAGER_AURA_H_ | 6 #define UI_VIEWS_WIDGET_TOOLTIP_MANAGER_AURA_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "ui/gfx/point.h" | 10 #include "ui/gfx/point.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 // TooltipManager implementation for Aura. | 22 // TooltipManager implementation for Aura. |
| 23 class TooltipManagerAura : public TooltipManager { | 23 class TooltipManagerAura : public TooltipManager { |
| 24 public: | 24 public: |
| 25 TooltipManagerAura(aura::Window* window, Widget* widget); | 25 TooltipManagerAura(aura::Window* window, Widget* widget); |
| 26 virtual ~TooltipManagerAura(); | 26 virtual ~TooltipManagerAura(); |
| 27 | 27 |
| 28 // TooltipManager. | 28 // TooltipManager. |
| 29 virtual void UpdateTooltip() OVERRIDE; | 29 virtual void UpdateTooltip() OVERRIDE; |
| 30 virtual void TooltipTextChanged(View* view) OVERRIDE; | 30 virtual void TooltipTextChanged(View* view) OVERRIDE; |
| 31 virtual void ShowKeyboardTooltip(View* view) OVERRIDE; | |
| 32 virtual void HideKeyboardTooltip() OVERRIDE; | |
| 33 | 31 |
| 34 private: | 32 private: |
| 35 View* GetViewUnderPoint(const gfx::Point& point); | 33 View* GetViewUnderPoint(const gfx::Point& point); |
| 36 void UpdateTooltipForTarget(View* target, | 34 void UpdateTooltipForTarget(View* target, |
| 37 const gfx::Point& point, | 35 const gfx::Point& point, |
| 38 aura::RootWindow* root_window); | 36 aura::RootWindow* root_window); |
| 39 | 37 |
| 40 aura::Window* window_; | 38 aura::Window* window_; |
| 41 Widget* widget_; | 39 Widget* widget_; |
| 42 string16 tooltip_text_; | 40 string16 tooltip_text_; |
| 43 | 41 |
| 44 DISALLOW_COPY_AND_ASSIGN(TooltipManagerAura); | 42 DISALLOW_COPY_AND_ASSIGN(TooltipManagerAura); |
| 45 }; | 43 }; |
| 46 | 44 |
| 47 } // namespace views | 45 } // namespace views |
| 48 | 46 |
| 49 #endif // UI_VIEWS_WIDGET_TOOLTIP_MANAGER_AURA_H_ | 47 #endif // UI_VIEWS_WIDGET_TOOLTIP_MANAGER_AURA_H_ |
| OLD | NEW |