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

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

Issue 2740133003: Fix Windows compile error with cherry-pick. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 75 // Clear the text input state.
76 virtual void ClearTextInputState() = 0; 76 virtual void ClearTextInputState() {}
77 77
78 // Notifies that a gesture event is about to be handled. 78 // Notifies that a gesture event is about to be handled.
79 // Returns true if no further handling is needed. In that case, the event 79 // Returns true if no further handling is needed. In that case, the event
80 // won't be sent to WebKit. 80 // won't be sent to WebKit.
81 virtual bool WillHandleGestureEvent(const blink::WebGestureEvent& event) = 0; 81 virtual bool WillHandleGestureEvent(const blink::WebGestureEvent& event) = 0;
82 82
83 // Notifies that a mouse event is about to be handled. 83 // Notifies that a mouse event is about to be handled.
84 // Returns true if no further handling is needed. In that case, the event 84 // Returns true if no further handling is needed. In that case, the event
85 // won't be sent to WebKit or trigger DidHandleMouseEvent(). 85 // won't be sent to WebKit or trigger DidHandleMouseEvent().
86 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; 86 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0;
87 87
88 protected: 88 protected:
89 virtual ~RenderWidgetInputHandlerDelegate() {} 89 virtual ~RenderWidgetInputHandlerDelegate() {}
90 }; 90 };
91 91
92 } // namespace content 92 } // namespace content
93 93
94 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ 94 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698