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

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

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

Powered by Google App Engine
This is Rietveld 408576698