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

Side by Side Diff: content/browser/renderer_host/render_widget_host_delegate.h

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Observing InputMethod Created 4 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "third_party/WebKit/public/platform/WebDisplayMode.h" 14 #include "third_party/WebKit/public/platform/WebDisplayMode.h"
15 #include "third_party/WebKit/public/web/WebInputEvent.h" 15 #include "third_party/WebKit/public/web/WebInputEvent.h"
16 #include "ui/base/ime/text_input_type.h"
16 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
17 18
18 namespace blink { 19 namespace blink {
19 class WebMouseWheelEvent; 20 class WebMouseWheelEvent;
20 class WebGestureEvent; 21 class WebGestureEvent;
21 } 22 }
22 23
23 namespace gfx { 24 namespace gfx {
24 class Point; 25 class Point;
25 class Rect; 26 class Rect;
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 virtual void SendScreenRects() {} 210 virtual void SendScreenRects() {}
210 211
211 // Notifies that the main frame in the renderer has performed the first paint 212 // Notifies that the main frame in the renderer has performed the first paint
212 // after a navigation. 213 // after a navigation.
213 virtual void OnFirstPaintAfterLoad(RenderWidgetHostImpl* render_widget_host) { 214 virtual void OnFirstPaintAfterLoad(RenderWidgetHostImpl* render_widget_host) {
214 } 215 }
215 216
216 // Returns the TextInputManager tracking text input state. 217 // Returns the TextInputManager tracking text input state.
217 virtual TextInputManager* GetTextInputManager(); 218 virtual TextInputManager* GetTextInputManager();
218 219
220 // Notifies a change in the text input state.
Charlie Reis 2016/10/05 21:19:33 nit: Notifies about a
221 virtual void OnUpdateTextInputState(RenderWidgetHostImpl* render_widget_host,
222 ui::TextInputType type,
223 const std::string& text,
224 const std::string& placeholder,
225 bool show_ime_if_needed) {}
226
219 // Returns true if this RenderWidgetHost should remain hidden. This is used by 227 // Returns true if this RenderWidgetHost should remain hidden. This is used by
220 // the RenderWidgetHost to ask the delegate if it can be shown in the event of 228 // the RenderWidgetHost to ask the delegate if it can be shown in the event of
221 // something other than the WebContents attempting to enable visibility of 229 // something other than the WebContents attempting to enable visibility of
222 // this RenderWidgetHost. 230 // this RenderWidgetHost.
223 virtual bool IsHidden(); 231 virtual bool IsHidden();
224 232
225 protected: 233 protected:
226 virtual ~RenderWidgetHostDelegate() {} 234 virtual ~RenderWidgetHostDelegate() {}
227 }; 235 };
228 236
229 } // namespace content 237 } // namespace content
230 238
231 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 239 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698