Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: ui/wm/public/tooltip_client.h

Issue 2643973002: Revert of Remove unnecessary spin in ToolTipController (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/corewm/tooltip_controller_unittest.cc ('k') | ui/wm/public/tooltip_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
10 #include "ui/gfx/font.h" 9 #include "ui/gfx/font.h"
11 10
12 namespace gfx { 11 namespace gfx {
13 class Point; 12 class Point;
14 } 13 }
15 14
16 namespace aura { 15 namespace aura {
17 class Window; 16 class Window;
18 namespace client { 17 namespace client {
19 18
(...skipping 26 matching lines...) Expand all
46 45
47 // Sets the text for the tooltip. The id is used to determine uniqueness when 46 // Sets the text for the tooltip. The id is used to determine uniqueness when
48 // the text does not change. For example, if the tooltip text does not change, 47 // the text does not change. For example, if the tooltip text does not change,
49 // but the id does then the position of the tooltip is updated. 48 // but the id does then the position of the tooltip is updated.
50 AURA_EXPORT void SetTooltipText(Window* window, 49 AURA_EXPORT void SetTooltipText(Window* window,
51 base::string16* tooltip_text); 50 base::string16* tooltip_text);
52 AURA_EXPORT void SetTooltipId(Window* window, void* id); 51 AURA_EXPORT void SetTooltipId(Window* window, void* id);
53 AURA_EXPORT const base::string16 GetTooltipText(Window* window); 52 AURA_EXPORT const base::string16 GetTooltipText(Window* window);
54 AURA_EXPORT const void* GetTooltipId(Window* window); 53 AURA_EXPORT const void* GetTooltipId(Window* window);
55 54
56 AURA_EXPORT extern const aura::WindowProperty<void*>* const kTooltipIdKey;
57 AURA_EXPORT extern const aura::WindowProperty<base::string16*>* const
58 kTooltipTextKey;
59
60 } // namespace client 55 } // namespace client
61 } // namespace aura 56 } // namespace aura
62 57
63 #endif // UI_WM_PUBLIC_TOOLTIP_CLIENT_H_ 58 #endif // UI_WM_PUBLIC_TOOLTIP_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/views/corewm/tooltip_controller_unittest.cc ('k') | ui/wm/public/tooltip_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698