Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host_view_event_handler.h |
| diff --git a/content/browser/renderer_host/render_widget_host_view_event_handler.h b/content/browser/renderer_host/render_widget_host_view_event_handler.h |
| index c0bdfce4df3d7ada7472893144c3180bf0fe650f..0553f2dafe51885c67fbf7efa17c47b540409e0d 100644 |
| --- a/content/browser/renderer_host/render_widget_host_view_event_handler.h |
| +++ b/content/browser/renderer_host/render_widget_host_view_event_handler.h |
| @@ -8,7 +8,7 @@ |
| #include <memory> |
| #include "base/macros.h" |
| -#include "base/timer/timer.h" |
| +#include "content/browser/renderer_host/mouse_wheel_phase_handler.h" |
| #include "content/common/content_export.h" |
| #include "content/public/browser/native_web_keyboard_event.h" |
| #include "ui/aura/window_tracker.h" |
| @@ -189,11 +189,6 @@ class CONTENT_EXPORT RenderWidgetHostViewEventHandler |
| const ui::LatencyInfo& latency); |
| void ProcessTouchEvent(const blink::WebTouchEvent& event, |
| const ui::LatencyInfo& latency); |
| - void SendSyntheticWheelEventWithPhaseEnded( |
| - blink::WebMouseWheelEvent last_mouse_wheel_event, |
| - bool should_route_event); |
| - void AddPhaseAndScheduleEndEvent(blink::WebMouseWheelEvent& mouse_wheel_event, |
| - bool should_route_event); |
| // Whether return characters should be passed on to the RenderWidgetHostImpl. |
| bool accept_return_character_; |
| @@ -255,8 +250,7 @@ class CONTENT_EXPORT RenderWidgetHostViewEventHandler |
| ui::EventHandler* popup_child_event_handler_; |
| Delegate* const delegate_; |
| aura::Window* window_; |
| - |
| - base::OneShotTimer mouse_wheel_end_dispatch_timer_; |
| + std::unique_ptr<MouseWheelPhaseHandler> mouse_wheel_phase_handler_; |
|
tdresser
2017/06/05 15:19:08
Why use a unique_ptr here? Why not just stack allo
sahel
2017/06/05 19:05:43
Done.
|
| DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewEventHandler); |
| }; |