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

Side by Side Diff: content/renderer/input/render_widget_input_handler_delegate.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_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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 // Notifies that a key event was just handled. 52 // Notifies that a key event was just handled.
53 virtual void OnDidHandleKeyEvent() = 0; 53 virtual void OnDidHandleKeyEvent() = 0;
54 54
55 // Notifies that an overscroll was completed from Blink. 55 // Notifies that an overscroll was completed from Blink.
56 virtual void OnDidOverscroll(const DidOverscrollParams& params) = 0; 56 virtual void OnDidOverscroll(const DidOverscrollParams& params) = 0;
57 57
58 // Called when an ACK is ready to be sent to the input event provider. 58 // Called when an ACK is ready to be sent to the input event provider.
59 virtual void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) = 0; 59 virtual void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) = 0;
60 60
61 virtual void PassiveInputEventHandled(
62 blink::WebInputEvent::Type handled_type) = 0;
63
61 // Notifies the delegate of the |input_handler| managing it. 64 // Notifies the delegate of the |input_handler| managing it.
62 virtual void SetInputHandler(RenderWidgetInputHandler* input_handler) = 0; 65 virtual void SetInputHandler(RenderWidgetInputHandler* input_handler) = 0;
63 66
64 // |show_ime| should be ShowIme::IF_NEEDED iff the update may cause the ime to 67 // |show_ime| should be ShowIme::IF_NEEDED iff the update may cause the ime to
65 // be displayed, e.g. after a tap on an input field on mobile. 68 // be displayed, e.g. after a tap on an input field on mobile.
66 // |change_source| should be ChangeSource::FROM_NON_IME when the renderer has 69 // |change_source| should be ChangeSource::FROM_NON_IME when the renderer has
67 // to wait for the browser to acknowledge the change before the renderer 70 // to wait for the browser to acknowledge the change before the renderer
68 // handles any more IME events. This is when the text change did not originate 71 // handles any more IME events. This is when the text change did not originate
69 // from the IME in the browser side, such as changes by JavaScript or 72 // from the IME in the browser side, such as changes by JavaScript or
70 // autofill. 73 // autofill.
(...skipping 10 matching lines...) Expand all
81 // won't be sent to WebKit or trigger DidHandleMouseEvent(). 84 // won't be sent to WebKit or trigger DidHandleMouseEvent().
82 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; 85 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0;
83 86
84 protected: 87 protected:
85 virtual ~RenderWidgetInputHandlerDelegate() {} 88 virtual ~RenderWidgetInputHandlerDelegate() {}
86 }; 89 };
87 90
88 } // namespace content 91 } // namespace content
89 92
90 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ 93 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698