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

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

Issue 38423002: Make aura::clients take Window instead of RootWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month 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/screen_position_client.cc ('k') | ui/aura/client/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_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/gfx/font.h" 9 #include "ui/gfx/font.h"
10 10
11 namespace aura { 11 namespace aura {
12 class RootWindow;
13 class Window; 12 class Window;
14
15 namespace client { 13 namespace client {
16 14
17 class AURA_EXPORT TooltipClient { 15 class AURA_EXPORT TooltipClient {
18 public: 16 public:
19 // Informs the shell tooltip manager of change in tooltip for window |target|. 17 // Informs the shell tooltip manager of change in tooltip for window |target|.
20 virtual void UpdateTooltip(Window* target) = 0; 18 virtual void UpdateTooltip(Window* target) = 0;
21 19
22 // Sets the time after which the tooltip is hidden for Window |target|. If 20 // Sets the time after which the tooltip is hidden for Window |target|. If
23 // |timeout_in_ms| is <= 0, the tooltip is shown indefinitely. 21 // |timeout_in_ms| is <= 0, the tooltip is shown indefinitely.
24 virtual void SetTooltipShownTimeout(Window* target, int timeout_in_ms) = 0; 22 virtual void SetTooltipShownTimeout(Window* target, int timeout_in_ms) = 0;
25 23
26 // Enables/Disables tooltips. 24 // Enables/Disables tooltips.
27 virtual void SetTooltipsEnabled(bool enable) = 0; 25 virtual void SetTooltipsEnabled(bool enable) = 0;
28 }; 26 };
29 27
30 AURA_EXPORT void SetTooltipClient(RootWindow* root_window, 28 AURA_EXPORT void SetTooltipClient(Window* root_window,
31 TooltipClient* client); 29 TooltipClient* client);
32 AURA_EXPORT TooltipClient* GetTooltipClient(RootWindow* root_window); 30 AURA_EXPORT TooltipClient* GetTooltipClient(Window* root_window);
33 31
34 AURA_EXPORT void SetTooltipText(Window* window, base::string16* tooltip_text); 32 AURA_EXPORT void SetTooltipText(Window* window, base::string16* tooltip_text);
35 AURA_EXPORT const base::string16 GetTooltipText(Window* window); 33 AURA_EXPORT const base::string16 GetTooltipText(Window* window);
36 34
37 } // namespace client 35 } // namespace client
38 } // namespace aura 36 } // namespace aura
39 37
40 #endif // UI_AURA_CLIENT_TOOLTIP_CLIENT_H_ 38 #endif // UI_AURA_CLIENT_TOOLTIP_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/aura/client/screen_position_client.cc ('k') | ui/aura/client/tooltip_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698