summaryrefslogtreecommitdiffstats
path: root/ui/aura/client/tooltip_client.h
blob: ca1afb31c783d49ab52ee7383e52010ccd4950b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_AURA_CLIENT_TOOLTIP_CLIENT_H_
#define UI_AURA_CLIENT_TOOLTIP_CLIENT_H_
#pragma once

#include "ui/aura/aura_export.h"
#include "ui/aura/event.h"
#include "ui/gfx/font.h"

namespace aura {
class Window;
namespace client {

class AURA_EXPORT TooltipClient {
 public:
  // Informs the shell tooltip manager of change in tooltip for window |target|.
  virtual void UpdateTooltip(Window* target) = 0;
};

AURA_EXPORT void SetTooltipClient(TooltipClient* client);
AURA_EXPORT TooltipClient* GetTooltipClient();
AURA_EXPORT void SetTooltipText(Window* window, string16* tooltip_text);
AURA_EXPORT string16* GetTooltipText(Window* window);

}  // namespace client
}  // namespace aura

#endif  // UI_AURA_CLIENT_TOOLTIP_CLIENT_H_