diff options
author | oshima <oshima@chromium.org> | 2015-02-19 10:41:32 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-19 18:42:37 +0000 |
commit | ebbe63774233a330d0ccabb2fd129bdf41b036ac (patch) | |
tree | b5f145b4ecad58af64dd57744db80d716b431147 /ui/wm/public | |
parent | b71febc45698e4cae48c92c7a99d235da41adb55 (diff) | |
download | chromium_src-ebbe63774233a330d0ccabb2fd129bdf41b036ac.zip chromium_src-ebbe63774233a330d0ccabb2fd129bdf41b036ac.tar.gz chromium_src-ebbe63774233a330d0ccabb2fd129bdf41b036ac.tar.bz2 |
Tooltip Cleanup
This is prep for tooltip improvement: https://codereview.chromium.org/924433002/ (WIP)
* Consolidated GetMaxWidth
* Eliminate screen type argument. This can be obtained from tooltip window.
* Move tooltip truncate code from TooltipManager to TooltipController
BUG=None
TEST=no functional change. all test should pass.
Review URL: https://codereview.chromium.org/916423002
Cr-Commit-Position: refs/heads/master@{#317081}
Diffstat (limited to 'ui/wm/public')
-rw-r--r-- | ui/wm/public/tooltip_client.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/wm/public/tooltip_client.h b/ui/wm/public/tooltip_client.h index f2b97cd..f58a63e 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; |