OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_VIEWS_WIDGET_TOOLTIP_MANAGER_AURA_H_ |
| 6 #define UI_VIEWS_WIDGET_TOOLTIP_MANAGER_AURA_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/compiler_specific.h" |
| 10 #include "base/string16.h" |
| 11 #include "ui/gfx/point.h" |
| 12 #include "ui/views/widget/tooltip_manager.h" |
| 13 |
| 14 namespace views { |
| 15 |
| 16 class NativeWidgetAura; |
| 17 class View; |
| 18 |
| 19 // TooltipManager implementation for Aura. |
| 20 class TooltipManagerAura : public TooltipManager { |
| 21 public: |
| 22 explicit TooltipManagerAura(NativeWidgetAura* native_widget_aura); |
| 23 virtual ~TooltipManagerAura(); |
| 24 |
| 25 // TooltipManager. |
| 26 virtual void UpdateTooltip() OVERRIDE; |
| 27 virtual void TooltipTextChanged(View* view) OVERRIDE; |
| 28 virtual void ShowKeyboardTooltip(View* view) OVERRIDE; |
| 29 virtual void HideKeyboardTooltip() OVERRIDE; |
| 30 |
| 31 private: |
| 32 View* GetViewUnderPoint(const gfx::Point& point); |
| 33 |
| 34 NativeWidgetAura* native_widget_aura_; |
| 35 string16 tooltip_text_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(TooltipManagerAura); |
| 38 }; |
| 39 |
| 40 } // namespace views |
| 41 |
| 42 #endif // UI_VIEWS_WIDGET_TOOLTIP_MANAGER_AURA_H_ |
OLD | NEW |