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"
16 class AURA_EXPORT TooltipClient
{
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
);
34 #endif // UI_AURA_CLIENT_TOOLTIP_CLIENT_H_