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

Side by Side Diff: ui/views/widget/tooltip_manager.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/widget/native_widget_aura.cc ('k') | ui/views/widget/tooltip_manager_aura.h » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_WIDGET_TOOLTIP_MANAGER_H_ 5 #ifndef UI_VIEWS_WIDGET_TOOLTIP_MANAGER_H_
6 #define UI_VIEWS_WIDGET_TOOLTIP_MANAGER_H_ 6 #define UI_VIEWS_WIDGET_TOOLTIP_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "ui/gfx/native_widget_types.h"
12 #include "ui/views/views_export.h" 11 #include "ui/views/views_export.h"
13 12
14 namespace gfx { 13 namespace gfx {
15 class Display; 14 class Display;
16 class FontList; 15 class FontList;
17 class Point; 16 class Point;
18 } // namespace gfx 17 } // namespace gfx
19 18
20 namespace views { 19 namespace views {
21 20
(...skipping 10 matching lines...) Expand all
32 // has capture (with menus the first menu shown has capture). To enable this 31 // has capture (with menus the first menu shown has capture). To enable this
33 // if the NativeView that has capture has the same value for the property 32 // if the NativeView that has capture has the same value for the property
34 // |kGroupingPropertyKey| as the NativeView the mouse is over the tooltip is 33 // |kGroupingPropertyKey| as the NativeView the mouse is over the tooltip is
35 // shown. 34 // shown.
36 static const char kGroupingPropertyKey[]; 35 static const char kGroupingPropertyKey[];
37 36
38 TooltipManager() {} 37 TooltipManager() {}
39 virtual ~TooltipManager() {} 38 virtual ~TooltipManager() {}
40 39
41 // Returns the maximum width of the tooltip. |point| gives the location 40 // Returns the maximum width of the tooltip. |point| gives the location
42 // the tooltip is to be displayed on in screen coordinates. |context| is 41 // the tooltip is to be displayed on in screen coordinates.
43 // used to determine which gfx::Screen should be used. 42 virtual int GetMaxWidth(const gfx::Point& location) const = 0;
44 virtual int GetMaxWidth(const gfx::Point& location,
45 gfx::NativeView context) const = 0;
46 43
47 // Returns the font list used for tooltips. 44 // Returns the font list used for tooltips.
48 virtual const gfx::FontList& GetFontList() const = 0; 45 virtual const gfx::FontList& GetFontList() const = 0;
49 46
50 // Notification that the view hierarchy has changed in some way. 47 // Notification that the view hierarchy has changed in some way.
51 virtual void UpdateTooltip() = 0; 48 virtual void UpdateTooltip() = 0;
52 49
53 // Invoked when the tooltip text changes for the specified views. 50 // Invoked when the tooltip text changes for the specified views.
54 virtual void TooltipTextChanged(View* view) = 0; 51 virtual void TooltipTextChanged(View* view) = 0;
55 }; 52 };
56 53
57 } // namespace views 54 } // namespace views
58 55
59 #endif // UI_VIEWS_WIDGET_TOOLTIP_MANAGER_H_ 56 #endif // UI_VIEWS_WIDGET_TOOLTIP_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/tooltip_manager_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698