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

Unified Diff: views/widget/tooltip_manager_gtk.h

Issue 114054: Splits TooltipManager so that it can be ported and stubs out the GTK... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months 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 | « views/widget/tooltip_manager.cc ('k') | views/widget/tooltip_manager_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/tooltip_manager_gtk.h
===================================================================
--- views/widget/tooltip_manager_gtk.h (revision 0)
+++ views/widget/tooltip_manager_gtk.h (revision 0)
@@ -0,0 +1,37 @@
+// Copyright (c) 2009 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 VIEWS_WIDGET_TOOLTIP_MANAGER_GTK_H_
+#define VIEWS_WIDGET_TOOLTIP_MANAGER_GTK_H_
+
+#include "views/widget/tooltip_manager.h"
+
+namespace views {
+
+class Widget;
+
+// TooltipManager takes care of the wiring to support tooltips for Views. You
+// almost never need to interact directly with TooltipManager, rather look to
+// the various tooltip methods on View.
+class TooltipManagerGtk : public TooltipManager {
+ public:
+ explicit TooltipManagerGtk(Widget* widget);
+ virtual ~TooltipManagerGtk() {}
+
+ // TooltipManager.
+ virtual void UpdateTooltip();
+ virtual void TooltipTextChanged(View* view);
+ virtual void ShowKeyboardTooltip(View* view);
+ virtual void HideKeyboardTooltip();
+
+ private:
+ // Our owner.
+ Widget* widget_;
+
+ DISALLOW_COPY_AND_ASSIGN(TooltipManagerGtk);
+};
+
+} // namespace views
+
+#endif // VIEWS_WIDGET_TOOLTIP_MANAGER_GTK_H_
Property changes on: views/widget/tooltip_manager_gtk.h
___________________________________________________________________
Name: svn:eol-style
+ LF
« no previous file with comments | « views/widget/tooltip_manager.cc ('k') | views/widget/tooltip_manager_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698