OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_AURA_CLIENT_TOOLTIP_CLIENT_H_ |
| 6 #define UI_AURA_CLIENT_TOOLTIP_CLIENT_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ui/aura/aura_export.h" |
| 10 #include "ui/aura/event.h" |
| 11 #include "ui/gfx/font.h" |
| 12 |
| 13 namespace aura { |
| 14 |
| 15 class Window; |
| 16 |
| 17 class AURA_EXPORT TooltipClient { |
| 18 public: |
| 19 // Returns the default font used by tooltips. |
| 20 static gfx::Font GetDefaultFont(); |
| 21 |
| 22 // Returns the maximum width of the tooltip. |x| and |y| give the location |
| 23 // the tooltip is to be displayed on in screen coordinates. |
| 24 static int GetMaxWidth(int x, int y); |
| 25 |
| 26 // Informs the shell tooltip manager of change in tooltip for window |target|. |
| 27 virtual void UpdateTooltip(Window* target) = 0; |
| 28 }; |
| 29 |
| 30 } // namespace aura |
| 31 |
| 32 #endif // UI_AURA_CLIENT_TOOLTIP_CLIENT_H_ |
OLD | NEW |