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

Unified 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, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/client/aura_constants.cc ('k') | ui/aura_shell/aura_shell.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/client/tooltip_client.h
diff --git a/ui/aura/client/tooltip_client.h b/ui/aura/client/tooltip_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..eb6db2cb86093516758b73f95f485a3c7c2c3fb3
--- /dev/null
+++ b/ui/aura/client/tooltip_client.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_AURA_CLIENT_TOOLTIP_CLIENT_H_
+#define UI_AURA_CLIENT_TOOLTIP_CLIENT_H_
+#pragma once
+
+#include "ui/aura/aura_export.h"
+#include "ui/aura/event.h"
+#include "ui/gfx/font.h"
+
+namespace aura {
+
+class Window;
+
+class AURA_EXPORT TooltipClient {
+ public:
+ // Returns the default font used by tooltips.
+ static gfx::Font GetDefaultFont();
+
+ // Returns the maximum width of the tooltip. |x| and |y| give the location
+ // the tooltip is to be displayed on in screen coordinates.
+ static int GetMaxWidth(int x, int y);
+
+ // Informs the shell tooltip manager of change in tooltip for window |target|.
+ virtual void UpdateTooltip(Window* target) = 0;
+};
+
+} // namespace aura
+
+#endif // UI_AURA_CLIENT_TOOLTIP_CLIENT_H_
« 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