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

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

Issue 2662173005: Revert of scheduler: Detect single event gestures correctly (Closed)
Patch Set: Created 3 years, 10 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 <memory> 8 #include <memory>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/common/input/input_event_ack.h" 11 #include "content/common/input/input_event_ack.h"
12 #include "third_party/WebKit/public/platform/WebInputEventResult.h"
13 12
14 namespace blink { 13 namespace blink {
15 class WebGestureEvent; 14 class WebGestureEvent;
16 class WebMouseEvent; 15 class WebMouseEvent;
17 } 16 }
18 17
19 namespace gfx { 18 namespace gfx {
20 class Point; 19 class Point;
21 class Vector2dF; 20 class Vector2dF;
22 } 21 }
(...skipping 27 matching lines...) Expand all
50 virtual void OnDidOverscroll(const ui::DidOverscrollParams& params) = 0; 49 virtual void OnDidOverscroll(const ui::DidOverscrollParams& params) = 0;
51 50
52 // Called when an ACK is ready to be sent to the input event provider. 51 // Called when an ACK is ready to be sent to the input event provider.
53 virtual void OnInputEventAck( 52 virtual void OnInputEventAck(
54 std::unique_ptr<InputEventAck> input_event_ack) = 0; 53 std::unique_ptr<InputEventAck> input_event_ack) = 0;
55 54
56 // Called when an event with a notify dispatch type 55 // Called when an event with a notify dispatch type
57 // (DISPATCH_TYPE_*_NOTIFY_MAIN) of |handled_type| has been processed 56 // (DISPATCH_TYPE_*_NOTIFY_MAIN) of |handled_type| has been processed
58 // by the main thread. 57 // by the main thread.
59 virtual void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type, 58 virtual void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type,
60 blink::WebInputEventResult result,
61 InputEventAckState ack_result) = 0; 59 InputEventAckState ack_result) = 0;
62 60
63 // Notifies the delegate of the |input_handler| managing it. 61 // Notifies the delegate of the |input_handler| managing it.
64 virtual void SetInputHandler(RenderWidgetInputHandler* input_handler) = 0; 62 virtual void SetInputHandler(RenderWidgetInputHandler* input_handler) = 0;
65 63
66 // Call this if virtual keyboard should be displayed, e.g. after a tap on an 64 // Call this if virtual keyboard should be displayed, e.g. after a tap on an
67 // input field on mobile. Note that we do this just by setting a bit in 65 // input field on mobile. Note that we do this just by setting a bit in
68 // text input state and update it to the browser such that browser process can 66 // text input state and update it to the browser such that browser process can
69 // be up to date when showing virtual keyboard. 67 // be up to date when showing virtual keyboard.
70 virtual void ShowVirtualKeyboard() = 0; 68 virtual void ShowVirtualKeyboard() = 0;
(...skipping 11 matching lines...) Expand all
82 // won't be sent to WebKit or trigger DidHandleMouseEvent(). 80 // won't be sent to WebKit or trigger DidHandleMouseEvent().
83 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; 81 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0;
84 82
85 protected: 83 protected:
86 virtual ~RenderWidgetInputHandlerDelegate() {} 84 virtual ~RenderWidgetInputHandlerDelegate() {}
87 }; 85 };
88 86
89 } // namespace content 87 } // namespace content
90 88
91 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ 89 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/renderer/input/render_widget_input_handler.cc ('k') | content/renderer/mus/render_widget_mus_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698