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

Unified Diff: content/renderer/render_widget.h

Issue 6990072: The first step for enabling off-the-spot IME on Pepper on ChromeOS/Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved most changes into renderer, and several fixes on style. Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698