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

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

Issue 1749323002: Update WindowTree::OnWindowInputEventAck to include handled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missing Component Build DEPS Created 4 years, 9 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 16 matching lines...) Expand all
27 27
28 class RenderWidget; 28 class RenderWidget;
29 class RenderWidgetInputHandlerDelegate; 29 class RenderWidgetInputHandlerDelegate;
30 30
31 // RenderWidgetInputHandler is an IPC-agnostic input handling class. 31 // RenderWidgetInputHandler is an IPC-agnostic input handling class.
32 // IPC transport code should live in RenderWidget or RenderWidgetMusConnection. 32 // IPC transport code should live in RenderWidget or RenderWidgetMusConnection.
33 class CONTENT_EXPORT RenderWidgetInputHandler { 33 class CONTENT_EXPORT RenderWidgetInputHandler {
34 public: 34 public:
35 RenderWidgetInputHandler(RenderWidgetInputHandlerDelegate* delegate, 35 RenderWidgetInputHandler(RenderWidgetInputHandlerDelegate* delegate,
36 RenderWidget* widget); 36 RenderWidget* widget);
37 ~RenderWidgetInputHandler(); 37 virtual ~RenderWidgetInputHandler();
38 38
39 // Handle input events from the input event provider. 39 // Handle input events from the input event provider.
40 void HandleInputEvent(const blink::WebInputEvent& input_event, 40 virtual void HandleInputEvent(const blink::WebInputEvent& input_event,
41 const ui::LatencyInfo& latency_info, 41 const ui::LatencyInfo& latency_info,
42 InputEventDispatchType dispatch_type); 42 InputEventDispatchType dispatch_type);
43 43
44 // Handle overscroll from Blink. 44 // Handle overscroll from Blink.
45 void DidOverscrollFromBlink( 45 void DidOverscrollFromBlink(
46 const blink::WebFloatSize& unusedDelta, 46 const blink::WebFloatSize& unusedDelta,
47 const blink::WebFloatSize& accumulatedRootOverScroll, 47 const blink::WebFloatSize& accumulatedRootOverScroll,
48 const blink::WebFloatPoint& position, 48 const blink::WebFloatPoint& position,
49 const blink::WebFloatSize& velocity); 49 const blink::WebFloatSize& velocity);
50 50
51 // When paused in debugger, we send ack for mouse event early. This ensures 51 // When paused in debugger, we send ack for mouse event early. This ensures
52 // that we continue receiving mouse moves and pass them to debugger. Returns 52 // that we continue receiving mouse moves and pass them to debugger. Returns
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 bool ignore_ack_for_mouse_move_from_debugger_; 105 bool ignore_ack_for_mouse_move_from_debugger_;
106 106
107 scoped_ptr<InputEventAck> pending_input_event_ack_; 107 scoped_ptr<InputEventAck> pending_input_event_ack_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(RenderWidgetInputHandler); 109 DISALLOW_COPY_AND_ASSIGN(RenderWidgetInputHandler);
110 }; 110 };
111 111
112 } // namespace content 112 } // namespace content
113 113
114 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ 114 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « content/renderer/input/input_handler_manager.h ('k') | content/renderer/mus/compositor_mus_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698