Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / ui / aura / client / tooltip_client.h
blob416547ba2010436296c315a6f48afa72ab9a625a
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
3 // found in the LICENSE file.
5 #ifndef UI_AURA_CLIENT_TOOLTIP_CLIENT_H_
6 #define UI_AURA_CLIENT_TOOLTIP_CLIENT_H_
8 #include "ui/aura/aura_export.h"
9 #include "ui/gfx/font.h"
11 namespace aura {
12 class RootWindow;
13 class Window;
14 namespace client {
16 class AURA_EXPORT TooltipClient {
17 public:
18 // Informs the shell tooltip manager of change in tooltip for window |target|.
19 virtual void UpdateTooltip(Window* target) = 0;
21 // Enables/Disables tooltips.
22 virtual void SetTooltipsEnabled(bool enable) = 0;
25 AURA_EXPORT void SetTooltipClient(RootWindow* root_window,
26 TooltipClient* client);
27 AURA_EXPORT TooltipClient* GetTooltipClient(RootWindow* root_window);
28 AURA_EXPORT void SetTooltipText(Window* window, string16* tooltip_text);
29 AURA_EXPORT const string16 GetTooltipText(Window* window);
31 } // namespace client
32 } // namespace aura
34 #endif // UI_AURA_CLIENT_TOOLTIP_CLIENT_H_