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

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

Issue 2813683002: Allow MainThreadEventQueue to call the RenderWidget directly. (Closed)
Patch Set: Fix style nits Created 3 years, 8 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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // RenderWidgetInputHandler is an IPC-agnostic input handling class. 32 // RenderWidgetInputHandler is an IPC-agnostic input handling class.
33 // IPC transport code should live in RenderWidget or RenderWidgetMusConnection. 33 // IPC transport code should live in RenderWidget or RenderWidgetMusConnection.
34 class CONTENT_EXPORT RenderWidgetInputHandler { 34 class CONTENT_EXPORT RenderWidgetInputHandler {
35 public: 35 public:
36 RenderWidgetInputHandler(RenderWidgetInputHandlerDelegate* delegate, 36 RenderWidgetInputHandler(RenderWidgetInputHandlerDelegate* delegate,
37 RenderWidget* widget); 37 RenderWidget* widget);
38 virtual ~RenderWidgetInputHandler(); 38 virtual ~RenderWidgetInputHandler();
39 39
40 // Handle input events from the input event provider. 40 // Handle input events from the input event provider.
41 virtual void HandleInputEvent( 41 virtual InputEventAckState HandleInputEvent(
42 const blink::WebCoalescedInputEvent& coalesced_event, 42 const blink::WebCoalescedInputEvent& coalesced_event,
43 const ui::LatencyInfo& latency_info, 43 const ui::LatencyInfo& latency_info,
44 InputEventDispatchType dispatch_type); 44 InputEventDispatchType dispatch_type);
45 45
46 // Handle overscroll from Blink. 46 // Handle overscroll from Blink.
47 void DidOverscrollFromBlink( 47 void DidOverscrollFromBlink(
48 const blink::WebFloatSize& overscrollDelta, 48 const blink::WebFloatSize& overscrollDelta,
49 const blink::WebFloatSize& accumulatedOverscroll, 49 const blink::WebFloatSize& accumulatedOverscroll,
50 const blink::WebFloatPoint& position, 50 const blink::WebFloatPoint& position,
51 const blink::WebFloatSize& velocity); 51 const blink::WebFloatSize& velocity);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 // Indicates if the next sequence of Char events should be suppressed or not. 88 // Indicates if the next sequence of Char events should be suppressed or not.
89 bool suppress_next_char_events_; 89 bool suppress_next_char_events_;
90 90
91 DISALLOW_COPY_AND_ASSIGN(RenderWidgetInputHandler); 91 DISALLOW_COPY_AND_ASSIGN(RenderWidgetInputHandler);
92 }; 92 };
93 93
94 } // namespace content 94 } // namespace content
95 95
96 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ 96 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « content/renderer/input/main_thread_event_queue_unittest.cc ('k') | content/renderer/input/render_widget_input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698