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

Side by Side Diff: ui/aura/client/tooltip_client.h

Issue 8780001: aura: Make aura::TooltipClient completely static? (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged with upstream Created 9 years 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 | Annotate | Revision Log
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_AURA_CLIENT_TOOLTIP_CLIENT_H_ 5 #ifndef UI_AURA_CLIENT_TOOLTIP_CLIENT_H_
6 #define UI_AURA_CLIENT_TOOLTIP_CLIENT_H_ 6 #define UI_AURA_CLIENT_TOOLTIP_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/aura/aura_export.h" 9 #include "ui/aura/aura_export.h"
10 #include "ui/aura/event.h" 10 #include "ui/aura/event.h"
11 #include "ui/gfx/font.h" 11 #include "ui/gfx/font.h"
12 12
13 namespace aura { 13 namespace aura {
14 14
15 class Window; 15 class Window;
16 16
17 class AURA_EXPORT TooltipClient { 17 class AURA_EXPORT TooltipClient {
18 public: 18 public:
19 // Returns the default font used by tooltips. 19 // Returns the default font used by tooltips.
20 static gfx::Font GetDefaultFont(); 20 static gfx::Font GetDefaultFont();
21 21
22 // Returns the maximum width of the tooltip. |x| and |y| give the location 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. 23 // the tooltip is to be displayed on in screen coordinates.
24 static int GetMaxWidth(int x, int y); 24 static int GetMaxWidth(int x, int y);
25 25
26 // Informs the shell tooltip manager of change in tooltip for window |target|. 26 // Informs the shell tooltip manager of change in tooltip for window |target|.
27 virtual void UpdateTooltip(Window* target) = 0; 27 static void UpdateTooltip(Window* target);
28 }; 28 };
29 29
30 } // namespace aura 30 } // namespace aura
31 31
32 #endif // UI_AURA_CLIENT_TOOLTIP_CLIENT_H_ 32 #endif // UI_AURA_CLIENT_TOOLTIP_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698