Index: content/renderer/render_widget.h |
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h |
index e7f704e4eca30871596fe5b797b064b792bbed39..73a7b939c4ba6924e8660fd2eeafa6a50c4d1830 100644 |
--- a/content/renderer/render_widget.h |
+++ b/content/renderer/render_widget.h |
@@ -199,12 +199,12 @@ class RenderWidget : public IPC::Channel::Listener, |
void OnMouseCaptureLost(); |
virtual void OnSetFocus(bool enable); |
void OnSetInputMethodActive(bool is_active); |
- void OnImeSetComposition( |
+ virtual void OnImeSetComposition( |
const string16& text, |
const std::vector<WebKit::WebCompositionUnderline>& underlines, |
int selection_start, |
int selection_end); |
- void OnImeConfirmComposition(const string16& text); |
+ virtual void OnImeConfirmComposition(const string16& text); |
void OnMsgPaintAtSize(const TransportDIB::Handle& dib_id, |
int tag, |
const gfx::Size& page_size, |
@@ -272,6 +272,10 @@ class RenderWidget : public IPC::Channel::Listener, |
// If they are changed, the new value will be sent to the browser process. |
void UpdateInputMethod(); |
+ // Override point to obtain that the current input method state and caret |
+ // position. |
+ virtual WebKit::WebTextInputType GetTextInputType(); |
+ |
// Tells the renderer it does not have focus. Used to prevent us from getting |
// the focus on our own when the browser did not focus us. |
void ClearFocus(); |