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

Side by Side Diff: ui/views/cocoa/tooltip_manager_mac.h

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: and another rebase Created 4 years, 11 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
« no previous file with comments | « ui/views/cocoa/bridged_native_widget.mm ('k') | ui/views/cocoa/tooltip_manager_mac.mm » ('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 2015 The Chromium Authors. All rights reserved. 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 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_VIEWS_COCOA_TOOLTOP_MANAGER_MAC_H_ 5 #ifndef UI_VIEWS_COCOA_TOOLTOP_MANAGER_MAC_H_
6 #define UI_VIEWS_COCOA_TOOLTOP_MANAGER_MAC_H_ 6 #define UI_VIEWS_COCOA_TOOLTOP_MANAGER_MAC_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/views/widget/tooltip_manager.h" 9 #include "ui/views/widget/tooltip_manager.h"
10 10
11 namespace views { 11 namespace views {
12 class BridgedNativeWidget; 12 class BridgedNativeWidget;
13 13
14 // Manages native Cocoa tooltips for the given BridgedNativeWidget. 14 // Manages native Cocoa tooltips for the given BridgedNativeWidget.
15 class TooltipManagerMac : public TooltipManager { 15 class TooltipManagerMac : public TooltipManager {
16 public: 16 public:
17 explicit TooltipManagerMac(BridgedNativeWidget* widget); 17 explicit TooltipManagerMac(BridgedNativeWidget* widget);
18 ~TooltipManagerMac() override; 18 ~TooltipManagerMac() override;
19 19
20 // TooltipManager: 20 // TooltipManager:
21 int GetMaxWidth(const gfx::Point& location, 21 int GetMaxWidth(const gfx::Point& location) const override;
22 gfx::NativeView context) const override;
23 const gfx::FontList& GetFontList() const override; 22 const gfx::FontList& GetFontList() const override;
24 void UpdateTooltip() override; 23 void UpdateTooltip() override;
25 void TooltipTextChanged(View* view) override; 24 void TooltipTextChanged(View* view) override;
26 25
27 private: 26 private:
28 BridgedNativeWidget* widget_; // Weak. Owns this. 27 BridgedNativeWidget* widget_; // Weak. Owns this.
29 28
30 DISALLOW_COPY_AND_ASSIGN(TooltipManagerMac); 29 DISALLOW_COPY_AND_ASSIGN(TooltipManagerMac);
31 }; 30 };
32 31
33 } // namespace views 32 } // namespace views
34 33
35 #endif // UI_VIEWS_COCOA_TOOLTOP_MANAGER_MAC_H_ 34 #endif // UI_VIEWS_COCOA_TOOLTOP_MANAGER_MAC_H_
OLDNEW
« no previous file with comments | « ui/views/cocoa/bridged_native_widget.mm ('k') | ui/views/cocoa/tooltip_manager_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698