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

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

Issue 209383003: Move wm/public into wm target (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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/wm/public/scoped_tooltip_disabler.h ('k') | ui/wm/public/transient_window_client.h » ('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"
9 #include "ui/gfx/font.h" 8 #include "ui/gfx/font.h"
9 #include "ui/wm/wm_export.h"
10 10
11 namespace aura { 11 namespace aura {
12 class Window; 12 class Window;
13 namespace client { 13 namespace client {
14 14
15 class ScopedTooltipDisabler; 15 class ScopedTooltipDisabler;
16 16
17 class AURA_EXPORT TooltipClient { 17 class WM_EXPORT TooltipClient {
18 public: 18 public:
19 // Informs the shell tooltip manager of change in tooltip for window |target|. 19 // Informs the shell tooltip manager of change in tooltip for window |target|.
20 virtual void UpdateTooltip(Window* target) = 0; 20 virtual void UpdateTooltip(Window* target) = 0;
21 21
22 // Sets the time after which the tooltip is hidden for Window |target|. If 22 // Sets the time after which the tooltip is hidden for Window |target|. If
23 // |timeout_in_ms| is <= 0, the tooltip is shown indefinitely. 23 // |timeout_in_ms| is <= 0, the tooltip is shown indefinitely.
24 virtual void SetTooltipShownTimeout(Window* target, int timeout_in_ms) = 0; 24 virtual void SetTooltipShownTimeout(Window* target, int timeout_in_ms) = 0;
25 25
26 protected: 26 protected:
27 // Enables/Disables tooltips. This is treated as a reference count. Consumers 27 // Enables/Disables tooltips. This is treated as a reference count. Consumers
28 // must use ScopedTooltipDisabler to enable/disabled tooltips. 28 // must use ScopedTooltipDisabler to enable/disabled tooltips.
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 WM_EXPORT void SetTooltipClient(Window* root_window, TooltipClient* client);
36 TooltipClient* client); 36 WM_EXPORT TooltipClient* GetTooltipClient(Window* root_window);
37 AURA_EXPORT TooltipClient* GetTooltipClient(Window* root_window);
38 37
39 AURA_EXPORT void SetTooltipText(Window* window, base::string16* tooltip_text); 38 WM_EXPORT void SetTooltipText(Window* window, base::string16* tooltip_text);
40 AURA_EXPORT const base::string16 GetTooltipText(Window* window); 39 WM_EXPORT const base::string16 GetTooltipText(Window* window);
41 40
42 } // namespace client 41 } // namespace client
43 } // namespace aura 42 } // namespace aura
44 43
45 #endif // UI_WM_PUBLIC_TOOLTIP_CLIENT_H_ 44 #endif // UI_WM_PUBLIC_TOOLTIP_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/wm/public/scoped_tooltip_disabler.h ('k') | ui/wm/public/transient_window_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698