Add ICU message format support
[chromium-blink-merge.git] / ui / views / cocoa / tooltip_manager_mac.h
bloba7977a9aa2fc6c11172efd18481bba39b275eff4
1 // Copyright 2015 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_VIEWS_COCOA_TOOLTOP_MANAGER_MAC_H_
6 #define UI_VIEWS_COCOA_TOOLTOP_MANAGER_MAC_H_
8 #include "base/macros.h"
9 #include "ui/views/widget/tooltip_manager.h"
11 namespace views {
12 class BridgedNativeWidget;
14 // Manages native Cocoa tooltips for the given BridgedNativeWidget.
15 class TooltipManagerMac : public TooltipManager {
16 public:
17 explicit TooltipManagerMac(BridgedNativeWidget* widget);
18 ~TooltipManagerMac() override;
20 // TooltipManager:
21 int GetMaxWidth(const gfx::Point& location,
22 gfx::NativeView context) const override;
23 const gfx::FontList& GetFontList() const override;
24 void UpdateTooltip() override;
25 void TooltipTextChanged(View* view) override;
27 private:
28 BridgedNativeWidget* widget_; // Weak. Owns this.
30 DISALLOW_COPY_AND_ASSIGN(TooltipManagerMac);
33 } // namespace views
35 #endif // UI_VIEWS_COCOA_TOOLTOP_MANAGER_MAC_H_