Index: content/renderer/render_widget.h |
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h |
index e7f704e4eca30871596fe5b797b064b792bbed39..ee76ae98120b31aff6a48b4f23e216665a542441 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,11 @@ 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 void GetTextInputType(WebKit::WebTextInputType* type, |
+ WebKit::WebRect* caret_bounds); |
James Su
2011/05/26 01:29:56
How about just return the text input type? We don'
kinaba
2011/05/30 03:07:11
Done.
|
+ |
// 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(); |