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

Unified Diff: views/widget/tooltip_manager_views.h

Issue 8417025: aura: Update how the tooltip manager works. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile fixes Created 9 years, 2 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
Index: views/widget/tooltip_manager_views.h
diff --git a/views/widget/tooltip_manager_views.h b/views/widget/tooltip_manager_views.h
index 3d22662fce6ca6dee3ec656fd422b0f37aeb331d..d3c7e9b1331d4c1111087cf5b4dbb07734821a7e 100644
--- a/views/widget/tooltip_manager_views.h
+++ b/views/widget/tooltip_manager_views.h
@@ -23,31 +23,23 @@ union WaylandEvent;
namespace views {
+class MouseEvent;
class Widget;
// TooltipManager implementation for Views.
-class TooltipManagerViews : public TooltipManager,
- public MessageLoopForUI::Observer {
+class TooltipManagerViews : public TooltipManager {
public:
explicit TooltipManagerViews(views::View* root_view);
virtual ~TooltipManagerViews();
+ void UpdateForMouseEvent(const MouseEvent& event);
sky 2011/10/28 17:47:27 Describe this, including where the MouseEvent come
sadrul 2011/10/28 21:42:52 Done.
+
// TooltipManager.
virtual void UpdateTooltip() OVERRIDE;
virtual void TooltipTextChanged(View* view) OVERRIDE;
virtual void ShowKeyboardTooltip(View* view) OVERRIDE;
virtual void HideKeyboardTooltip() OVERRIDE;
-#if defined(USE_WAYLAND)
- virtual base::MessagePumpObserver::EventStatus WillProcessEvent(
- ui::WaylandEvent* event) OVERRIDE;
-#else
- // MessageLoopForUI::Observer
- virtual base::EventStatus WillProcessEvent(
- const base::NativeEvent& event) OVERRIDE;
- virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE;
-#endif
-
private:
void TooltipTimerFired();
View* GetViewForTooltip(int x, int y, bool for_keyboard);

Powered by Google App Engine
This is Rietveld 408576698