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

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: . 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
« no previous file with comments | « views/widget/native_widget_views.cc ('k') | views/widget/tooltip_manager_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fe3593e9f35a1ec68338f83f77aa896ab1156969 100644
--- a/views/widget/tooltip_manager_views.h
+++ b/views/widget/tooltip_manager_views.h
@@ -23,31 +23,26 @@ 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();
+ // Updates the state of the tooltip based on the mouse event. The mouse event
+ // is the same event that goes to a Widget (i.e. it is in the Widget's
+ // coordinate system).
+ void UpdateForMouseEvent(const MouseEvent& event);
+
// 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);
« no previous file with comments | « views/widget/native_widget_views.cc ('k') | views/widget/tooltip_manager_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698