| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WM_PUBLIC_TOOLTIP_CLIENT_H_ | 5 #ifndef UI_WM_PUBLIC_TOOLTIP_CLIENT_H_ |
| 6 #define UI_WM_PUBLIC_TOOLTIP_CLIENT_H_ | 6 #define UI_WM_PUBLIC_TOOLTIP_CLIENT_H_ |
| 7 | 7 |
| 8 #include "ui/aura/aura_export.h" | 8 #include "ui/aura/aura_export.h" |
| 9 #include "ui/aura/window.h" |
| 9 #include "ui/gfx/font.h" | 10 #include "ui/gfx/font.h" |
| 10 | 11 |
| 11 namespace gfx { | 12 namespace gfx { |
| 12 class Point; | 13 class Point; |
| 13 } | 14 } |
| 14 | 15 |
| 15 namespace aura { | 16 namespace aura { |
| 16 class Window; | 17 class Window; |
| 17 namespace client { | 18 namespace client { |
| 18 | 19 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 45 | 46 |
| 46 // Sets the text for the tooltip. The id is used to determine uniqueness when | 47 // Sets the text for the tooltip. The id is used to determine uniqueness when |
| 47 // the text does not change. For example, if the tooltip text does not change, | 48 // the text does not change. For example, if the tooltip text does not change, |
| 48 // but the id does then the position of the tooltip is updated. | 49 // but the id does then the position of the tooltip is updated. |
| 49 AURA_EXPORT void SetTooltipText(Window* window, | 50 AURA_EXPORT void SetTooltipText(Window* window, |
| 50 base::string16* tooltip_text); | 51 base::string16* tooltip_text); |
| 51 AURA_EXPORT void SetTooltipId(Window* window, void* id); | 52 AURA_EXPORT void SetTooltipId(Window* window, void* id); |
| 52 AURA_EXPORT const base::string16 GetTooltipText(Window* window); | 53 AURA_EXPORT const base::string16 GetTooltipText(Window* window); |
| 53 AURA_EXPORT const void* GetTooltipId(Window* window); | 54 AURA_EXPORT const void* GetTooltipId(Window* window); |
| 54 | 55 |
| 56 AURA_EXPORT extern const aura::WindowProperty<void*>* const kTooltipIdKey; |
| 57 AURA_EXPORT extern const aura::WindowProperty<base::string16*>* const |
| 58 kTooltipTextKey; |
| 59 |
| 55 } // namespace client | 60 } // namespace client |
| 56 } // namespace aura | 61 } // namespace aura |
| 57 | 62 |
| 58 #endif // UI_WM_PUBLIC_TOOLTIP_CLIENT_H_ | 63 #endif // UI_WM_PUBLIC_TOOLTIP_CLIENT_H_ |
| OLD | NEW |