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

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

Issue 1780953003: Change the non-blocking event queue to the main thread event queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_regression_5
Patch Set: 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_DELEGATE_H_ 5 #ifndef CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_
6 #define CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ 6 #define CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/common/input/input_event_ack.h" 10 #include "content/common/input/input_event_ack.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 // Notifies that a key event was just handled. 57 // Notifies that a key event was just handled.
58 virtual void OnDidHandleKeyEvent() = 0; 58 virtual void OnDidHandleKeyEvent() = 0;
59 59
60 // Notifies that an overscroll was completed from Blink. 60 // Notifies that an overscroll was completed from Blink.
61 virtual void OnDidOverscroll(const DidOverscrollParams& params) = 0; 61 virtual void OnDidOverscroll(const DidOverscrollParams& params) = 0;
62 62
63 // Called when an ACK is ready to be sent to the input event provider. 63 // Called when an ACK is ready to be sent to the input event provider.
64 virtual void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) = 0; 64 virtual void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) = 0;
65 65
66 // Called when a non-blocking event (DISPATCH_TYPE_NON_BLOCKING) of 66 // Called when an event with a notify dispatch type
67 // |handled_type| has been processed by the main thread. 67 // (DISPATCH_TYPE_*_NOTIFY_MAIN) of |handled_type| has been processed
68 virtual void NonBlockingInputEventHandled( 68 // by the main thread.
69 virtual void NotifyInputEventHandled(
69 blink::WebInputEvent::Type handled_type) = 0; 70 blink::WebInputEvent::Type handled_type) = 0;
70 71
71 // Notifies the delegate of the |input_handler| managing it. 72 // Notifies the delegate of the |input_handler| managing it.
72 virtual void SetInputHandler(RenderWidgetInputHandler* input_handler) = 0; 73 virtual void SetInputHandler(RenderWidgetInputHandler* input_handler) = 0;
73 74
74 // |show_ime| should be ShowIme::IF_NEEDED iff the update may cause the ime to 75 // |show_ime| should be ShowIme::IF_NEEDED iff the update may cause the ime to
75 // be displayed, e.g. after a tap on an input field on mobile. 76 // be displayed, e.g. after a tap on an input field on mobile.
76 // |change_source| should be ChangeSource::FROM_NON_IME when the renderer has 77 // |change_source| should be ChangeSource::FROM_NON_IME when the renderer has
77 // to wait for the browser to acknowledge the change before the renderer 78 // to wait for the browser to acknowledge the change before the renderer
78 // handles any more IME events. This is when the text change did not originate 79 // handles any more IME events. This is when the text change did not originate
(...skipping 12 matching lines...) Expand all
91 // won't be sent to WebKit or trigger DidHandleMouseEvent(). 92 // won't be sent to WebKit or trigger DidHandleMouseEvent().
92 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; 93 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0;
93 94
94 protected: 95 protected:
95 virtual ~RenderWidgetInputHandlerDelegate() {} 96 virtual ~RenderWidgetInputHandlerDelegate() {}
96 }; 97 };
97 98
98 } // namespace content 99 } // namespace content
99 100
100 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ 101 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698