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

Side by Side Diff: ui/aura/client/tooltip_client.h

Issue 10827145: Convert Aura to use ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura/client/drag_drop_delegate.h ('k') | ui/aura/demo/demo_main.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_AURA_CLIENT_TOOLTIP_CLIENT_H_ 5 #ifndef UI_AURA_CLIENT_TOOLTIP_CLIENT_H_
6 #define UI_AURA_CLIENT_TOOLTIP_CLIENT_H_ 6 #define UI_AURA_CLIENT_TOOLTIP_CLIENT_H_
7 7
8 #include "ui/aura/aura_export.h" 8 #include "ui/aura/aura_export.h"
9 #include "ui/aura/event.h"
10 #include "ui/gfx/font.h" 9 #include "ui/gfx/font.h"
11 10
12 namespace aura { 11 namespace aura {
13 class RootWindow; 12 class RootWindow;
14 class Window; 13 class Window;
15 namespace client { 14 namespace client {
16 15
17 class AURA_EXPORT TooltipClient { 16 class AURA_EXPORT TooltipClient {
18 public: 17 public:
19 // Informs the shell tooltip manager of change in tooltip for window |target|. 18 // Informs the shell tooltip manager of change in tooltip for window |target|.
20 virtual void UpdateTooltip(Window* target) = 0; 19 virtual void UpdateTooltip(Window* target) = 0;
21 20
22 // Enables/Disables tooltips. 21 // Enables/Disables tooltips.
23 virtual void SetTooltipsEnabled(bool enable) = 0; 22 virtual void SetTooltipsEnabled(bool enable) = 0;
24 }; 23 };
25 24
26 AURA_EXPORT void SetTooltipClient(RootWindow* root_window, 25 AURA_EXPORT void SetTooltipClient(RootWindow* root_window,
27 TooltipClient* client); 26 TooltipClient* client);
28 AURA_EXPORT TooltipClient* GetTooltipClient(RootWindow* root_window); 27 AURA_EXPORT TooltipClient* GetTooltipClient(RootWindow* root_window);
29 AURA_EXPORT void SetTooltipText(Window* window, string16* tooltip_text); 28 AURA_EXPORT void SetTooltipText(Window* window, string16* tooltip_text);
30 AURA_EXPORT const string16 GetTooltipText(Window* window); 29 AURA_EXPORT const string16 GetTooltipText(Window* window);
31 30
32 } // namespace client 31 } // namespace client
33 } // namespace aura 32 } // namespace aura
34 33
35 #endif // UI_AURA_CLIENT_TOOLTIP_CLIENT_H_ 34 #endif // UI_AURA_CLIENT_TOOLTIP_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/aura/client/drag_drop_delegate.h ('k') | ui/aura/demo/demo_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698