Index: content/renderer/render_view_impl.h |
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h |
index b64f698e5cdad83f4c88e6121b818fa45338746e..cbc8966cb410d5ac8a0a55e3855e9b583c10f9be 100644 |
--- a/content/renderer/render_view_impl.h |
+++ b/content/renderer/render_view_impl.h |
@@ -296,6 +296,15 @@ class RenderViewImpl : public RenderWidget, |
// Retrieves the current caret position if a PPAPI plugin has focus. |
bool GetPpapiPluginCaretBounds(gfx::Rect* rect); |
+ // Simulates IME events for testing purpose. |
+ void SimulateImeSetComposition( |
+ const string16& text, |
+ const std::vector<WebKit::WebCompositionUnderline>& underlines, |
+ int selection_start, |
+ int selection_end); |
+ void SimulateImeConfirmComposition(const string16& text, |
+ const ui::Range& replacement_range); |
+ |
#if defined(OS_MACOSX) || defined(OS_WIN) |
// Informs the render view that the given plugin has gained or lost focus. |
void PluginFocusChanged(bool focused, int plugin_id); |