diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-28 16:38:07 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-28 16:38:07 +0000 |
commit | 2d82a8160b726349984aa7756304a30b8b0f348d (patch) | |
tree | 2dcd71741555c0d61edeaf2047efb046128d55f1 /views/widget/tooltip_manager_gtk.h | |
parent | 68b0b5c1fab5460850b3d48ba356b244c4239258 (diff) | |
download | chromium_src-2d82a8160b726349984aa7756304a30b8b0f348d.zip chromium_src-2d82a8160b726349984aa7756304a30b8b0f348d.tar.gz chromium_src-2d82a8160b726349984aa7756304a30b8b0f348d.tar.bz2 |
Splits TooltipManager so that it can be ported and stubs out the GTK
side.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/114054
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17076 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/tooltip_manager_gtk.h')
-rw-r--r-- | views/widget/tooltip_manager_gtk.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/views/widget/tooltip_manager_gtk.h b/views/widget/tooltip_manager_gtk.h new file mode 100644 index 0000000..447f6ce --- /dev/null +++ b/views/widget/tooltip_manager_gtk.h @@ -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_ |