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/gfx/font.h" | 9 #include "ui/gfx/font.h" |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... | |
29 virtual void SetTooltipsEnabled(bool enable) = 0; | 29 virtual void SetTooltipsEnabled(bool enable) = 0; |
30 | 30 |
31 private: | 31 private: |
32 friend class ScopedTooltipDisabler; | 32 friend class ScopedTooltipDisabler; |
33 }; | 33 }; |
34 | 34 |
35 AURA_EXPORT void SetTooltipClient(Window* root_window, | 35 AURA_EXPORT void SetTooltipClient(Window* root_window, |
36 TooltipClient* client); | 36 TooltipClient* client); |
37 AURA_EXPORT TooltipClient* GetTooltipClient(Window* root_window); | 37 AURA_EXPORT TooltipClient* GetTooltipClient(Window* root_window); |
38 | 38 |
39 AURA_EXPORT void SetTooltipText(Window* window, base::string16* tooltip_text); | 39 AURA_EXPORT void SetTooltipText(Window* window, |
40 base::string16* tooltip_text, | |
41 void** tooltip_unique); | |
sky
2014/04/23 20:08:46
Why does this need to be a void**? Why not void*?
Mikus
2014/04/24 08:39:56
I want to reference a void* field of tooltip_manag
sky
2014/04/24 16:19:44
Just like you invoke SetTooltipText with a string*
| |
40 AURA_EXPORT const base::string16 GetTooltipText(Window* window); | 42 AURA_EXPORT const base::string16 GetTooltipText(Window* window); |
43 AURA_EXPORT const void* GetTooltipUnique(Window* window); | |
sky
2014/04/23 20:08:46
GetTooltipId?
Mikus
2014/04/24 08:39:56
Done.
| |
41 | 44 |
42 } // namespace client | 45 } // namespace client |
43 } // namespace aura | 46 } // namespace aura |
44 | 47 |
45 #endif // UI_WM_PUBLIC_TOOLTIP_CLIENT_H_ | 48 #endif // UI_WM_PUBLIC_TOOLTIP_CLIENT_H_ |
OLD | NEW |