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

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: Force ack in renderer to be solely based on the DispatchEventType 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // Notifies that a key event was just handled. 59 // Notifies that a key event was just handled.
60 virtual void OnDidHandleKeyEvent() = 0; 60 virtual void OnDidHandleKeyEvent() = 0;
61 61
62 // Notifies that an overscroll was completed from Blink. 62 // Notifies that an overscroll was completed from Blink.
63 virtual void OnDidOverscroll(const DidOverscrollParams& params) = 0; 63 virtual void OnDidOverscroll(const DidOverscrollParams& params) = 0;
64 64
65 // Called when an ACK is ready to be sent to the input event provider. 65 // Called when an ACK is ready to be sent to the input event provider.
66 virtual void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) = 0; 66 virtual void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) = 0;
67 67
68 // Called when a non-blocking event (DISPATCH_TYPE_NON_BLOCKING) of 68 // Called when an event with a notify dispatch type
69 // |handled_type| has been processed by the main thread. 69 // (DISPATCH_TYPE_*_NOTIFY_MAIN) of |handled_type| has been processed
70 virtual void NonBlockingInputEventHandled( 70 // by the main thread.
71 virtual void NotifyInputEventHandled(
71 blink::WebInputEvent::Type handled_type) = 0; 72 blink::WebInputEvent::Type handled_type) = 0;
72 73
73 // Notifies the delegate of the |input_handler| managing it. 74 // Notifies the delegate of the |input_handler| managing it.
74 virtual void SetInputHandler(RenderWidgetInputHandler* input_handler) = 0; 75 virtual void SetInputHandler(RenderWidgetInputHandler* input_handler) = 0;
75 76
76 // |show_ime| should be ShowIme::IF_NEEDED iff the update may cause the ime to 77 // |show_ime| should be ShowIme::IF_NEEDED iff the update may cause the ime to
77 // be displayed, e.g. after a tap on an input field on mobile. 78 // be displayed, e.g. after a tap on an input field on mobile.
78 // |change_source| should be ChangeSource::FROM_NON_IME when the renderer has 79 // |change_source| should be ChangeSource::FROM_NON_IME when the renderer has
79 // to wait for the browser to acknowledge the change before the renderer 80 // to wait for the browser to acknowledge the change before the renderer
80 // handles any more IME events. This is when the text change did not originate 81 // handles any more IME events. This is when the text change did not originate
(...skipping 12 matching lines...) Expand all
93 // won't be sent to WebKit or trigger DidHandleMouseEvent(). 94 // won't be sent to WebKit or trigger DidHandleMouseEvent().
94 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; 95 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0;
95 96
96 protected: 97 protected:
97 virtual ~RenderWidgetInputHandlerDelegate() {} 98 virtual ~RenderWidgetInputHandlerDelegate() {}
98 }; 99 };
99 100
100 } // namespace content 101 } // namespace content
101 102
102 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ 103 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698