| Index: content/browser/renderer_host/render_widget_host_delegate.h
|
| diff --git a/content/browser/renderer_host/render_widget_host_delegate.h b/content/browser/renderer_host/render_widget_host_delegate.h
|
| index aa38066ec28b62ea9488ab6ddb2759cfa7d6bdbb..a842cb38ca420a8e6942dfe865201cf6d92f4b35 100644
|
| --- a/content/browser/renderer_host/render_widget_host_delegate.h
|
| +++ b/content/browser/renderer_host/render_widget_host_delegate.h
|
| @@ -11,6 +11,7 @@
|
|
|
| #include "build/build_config.h"
|
| #include "content/common/content_export.h"
|
| +#include "content/common/text_input_state.h"
|
| #include "third_party/WebKit/public/platform/WebDisplayMode.h"
|
| #include "third_party/WebKit/public/web/WebInputEvent.h"
|
| #include "ui/gfx/native_widget_types.h"
|
| @@ -31,6 +32,7 @@ namespace content {
|
| class BrowserAccessibilityManager;
|
| class RenderWidgetHostImpl;
|
| class RenderWidgetHostInputEventRouter;
|
| +class RenderWidgetHostViewBase;
|
| struct NativeWebKeyboardEvent;
|
|
|
| //
|
| @@ -132,6 +134,16 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
|
| virtual RenderWidgetHostImpl* GetFocusedRenderWidgetHost(
|
| RenderWidgetHostImpl* receiving_widget);
|
|
|
| + // Returns the current value of text input state. This should be the value
|
| + // obtained from the focused RWHV.
|
| + virtual TextInputState GetTextInputState();
|
| +
|
| + // This method is called by any RWHV which receives an IPC regarding a change
|
| + // in the text input state. The IPC might or might not have lead to a change
|
| + // in state but this method must be called for IME related logic.
|
| + virtual void UpdateTextInputState(RenderWidgetHostViewBase* rwhv,
|
| + bool text_input_state_changed);
|
| +
|
| // Notification that the renderer has become unresponsive. The
|
| // delegate can use this notification to show a warning to the user.
|
| virtual void RendererUnresponsive(RenderWidgetHostImpl* render_widget_host) {}
|
| @@ -167,12 +179,12 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
|
| // Notification that the widget has lost the mouse lock.
|
| virtual void LostMouseLock(RenderWidgetHostImpl* render_widget_host) {}
|
|
|
| - // Called when the widget has sent a compositor proto. This is used in Btlimp
|
| + // Called when the widget has sent a compositor proto. This is used in Blimp
|
| // mode with the RemoteChannel compositor.
|
| virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host,
|
| const std::vector<uint8_t>& proto) {}
|
|
|
| - // Called when the visibility of the RenderFrameProxyHost in outter
|
| + // Called when the visibility of the RenderFrameProxyHost in outer
|
| // WebContents changes. This method is only called on an inner WebContents and
|
| // will eventually notify all the RenderWidgetHostViews belonging to that
|
| // WebContents.
|
|
|