Index: ui/wm/public/tooltip_client.h |
diff --git a/ui/wm/public/tooltip_client.h b/ui/wm/public/tooltip_client.h |
index f2b97cdd0f4e70acccdaf8065503ae746dafec46..f58a63e12a6b8ecd164c3011c67425fb2c289c68 100644 |
--- a/ui/wm/public/tooltip_client.h |
+++ b/ui/wm/public/tooltip_client.h |
@@ -8,6 +8,10 @@ |
#include "ui/aura/aura_export.h" |
#include "ui/gfx/font.h" |
+namespace gfx { |
+class Point; |
+} |
+ |
namespace aura { |
class Window; |
namespace client { |
@@ -16,6 +20,10 @@ class ScopedTooltipDisabler; |
class AURA_EXPORT TooltipClient { |
public: |
+ // Returns the max width of the tooltip when shown at the specified location. |
+ virtual int GetMaxWidth(const gfx::Point& point, |
+ aura::Window* context) const = 0; |
+ |
// Informs the shell tooltip manager of change in tooltip for window |target|. |
virtual void UpdateTooltip(Window* target) = 0; |