| Index: content/renderer/render_view_impl.h
|
| diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
|
| index 7df6c99bf639bc6c54d6f69c4a27c73df8bdde64..d4d4e32407e437236bcb09cbefbc7565414aa25b 100644
|
| --- a/content/renderer/render_view_impl.h
|
| +++ b/content/renderer/render_view_impl.h
|
| @@ -293,6 +293,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);
|
|
|