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

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

Issue 2741993003: Revert restartInput change off the M57 release branch. (Closed)
Patch Set: Rebase Created 3 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 <memory> 8 #include <memory>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // 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
67 // 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
68 // 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
69 // be up to date when showing virtual keyboard. 69 // be up to date when showing virtual keyboard.
70 virtual void ShowVirtualKeyboard() = 0; 70 virtual void ShowVirtualKeyboard() = 0;
71 71
72 // Send an update of text input state to the browser process. 72 // Send an update of text input state to the browser process.
73 virtual void UpdateTextInputState() = 0; 73 virtual void UpdateTextInputState() = 0;
74 74
75 // Clear the text input state.
76 virtual void ClearTextInputState() {}
77
78 // Notifies that a gesture event is about to be handled. 75 // Notifies that a gesture event is about to be handled.
79 // Returns true if no further handling is needed. In that case, the event 76 // Returns true if no further handling is needed. In that case, the event
80 // won't be sent to WebKit. 77 // won't be sent to WebKit.
81 virtual bool WillHandleGestureEvent(const blink::WebGestureEvent& event) = 0; 78 virtual bool WillHandleGestureEvent(const blink::WebGestureEvent& event) = 0;
82 79
83 // Notifies that a mouse event is about to be handled. 80 // Notifies that a mouse event is about to be handled.
84 // Returns true if no further handling is needed. In that case, the event 81 // Returns true if no further handling is needed. In that case, the event
85 // won't be sent to WebKit or trigger DidHandleMouseEvent(). 82 // won't be sent to WebKit or trigger DidHandleMouseEvent().
86 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; 83 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0;
87 84
88 protected: 85 protected:
89 virtual ~RenderWidgetInputHandlerDelegate() {} 86 virtual ~RenderWidgetInputHandlerDelegate() {}
90 }; 87 };
91 88
92 } // namespace content 89 } // namespace content
93 90
94 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ 91 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698