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

Side by Side Diff: content/renderer/input/render_widget_input_handler.h

Issue 1631963002: Plumb firing passive event listeners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners_2a
Patch Set: Set dependency correctly Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ 5 #ifndef CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_
6 #define CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ 6 #define CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 19 matching lines...) Expand all
30 // RenderWidgetInputHandler is an IPC-agnostic input handling class. 30 // RenderWidgetInputHandler is an IPC-agnostic input handling class.
31 // IPC transport code should live in RenderWidget or RenderWidgetMusConnection. 31 // IPC transport code should live in RenderWidget or RenderWidgetMusConnection.
32 class CONTENT_EXPORT RenderWidgetInputHandler { 32 class CONTENT_EXPORT RenderWidgetInputHandler {
33 public: 33 public:
34 RenderWidgetInputHandler(RenderWidgetInputHandlerDelegate* delegate, 34 RenderWidgetInputHandler(RenderWidgetInputHandlerDelegate* delegate,
35 RenderWidget* widget); 35 RenderWidget* widget);
36 ~RenderWidgetInputHandler(); 36 ~RenderWidgetInputHandler();
37 37
38 // Handle input events from the input event provider. 38 // Handle input events from the input event provider.
39 void HandleInputEvent(const blink::WebInputEvent& input_event, 39 void HandleInputEvent(const blink::WebInputEvent& input_event,
40 const ui::LatencyInfo& latency_info); 40 const ui::LatencyInfo& latency_info,
41 bool passive);
41 42
42 // Handle overscroll from Blink. 43 // Handle overscroll from Blink.
43 void DidOverscrollFromBlink( 44 void DidOverscrollFromBlink(
44 const blink::WebFloatSize& unusedDelta, 45 const blink::WebFloatSize& unusedDelta,
45 const blink::WebFloatSize& accumulatedRootOverScroll, 46 const blink::WebFloatSize& accumulatedRootOverScroll,
46 const blink::WebFloatPoint& position, 47 const blink::WebFloatPoint& position,
47 const blink::WebFloatSize& velocity); 48 const blink::WebFloatSize& velocity);
48 49
49 // When paused in debugger, we send ack for mouse event early. This ensures 50 // When paused in debugger, we send ack for mouse event early. This ensures
50 // that we continue receiving mouse moves and pass them to debugger. Returns 51 // that we continue receiving mouse moves and pass them to debugger. Returns
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 bool ignore_ack_for_mouse_move_from_debugger_; 104 bool ignore_ack_for_mouse_move_from_debugger_;
104 105
105 scoped_ptr<InputEventAck> pending_input_event_ack_; 106 scoped_ptr<InputEventAck> pending_input_event_ack_;
106 107
107 DISALLOW_COPY_AND_ASSIGN(RenderWidgetInputHandler); 108 DISALLOW_COPY_AND_ASSIGN(RenderWidgetInputHandler);
108 }; 109 };
109 110
110 } // namespace content 111 } // namespace content
111 112
112 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ 113 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698