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

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

Issue 2615993002: Remove unnecessary spin in ToolTipController (Closed)
Patch Set: Address comments. 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"
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
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_
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