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

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

Issue 8747022: Aura: Tooltips (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved test_tooltip_client to ui/views/test 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
« no previous file with comments | « ui/aura/client/aura_constants.cc ('k') | ui/aura_shell/aura_shell.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ui/aura/client/aura_constants.cc ('k') | ui/aura_shell/aura_shell.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698