Index: content/browser/renderer_host/render_widget_host_impl.h |
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h |
index 1013175301a5e7f43c09e9a1479318ea72fde531..75d19de8e46c0a0225f8657a0b70fd7e4c9b47ea 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -181,6 +181,15 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, |
RenderWidgetHost::InputEventObserver* observer) override; |
void GetScreenInfo(content::ScreenInfo* result) override; |
void HandleCompositorProto(const std::vector<uint8_t>& proto) override; |
+ void SendOrBatch(IPC::Message* message) override; |
+ |
+ // Begin batch edit mode. |
+ void BeginBatchEdit(); |
+ // End batch edit mode. |
+ void EndBatchEdit(); |
+ // Deletes the current selection plus the specified number of characters |
+ // before and after the selection or caret. |
+ void ExtendSelectionAndDelete(size_t before, size_t after); |
// Notification that the screen info has changed. |
void NotifyScreenInfoChanged(); |
@@ -840,6 +849,11 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, |
std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_; |
#endif |
+ // Messages that will be sent at once in a batch edit. |
+ std::vector<IPC::Message> batch_edit_messages_; |
+ // Whether or not we are in the batch edit mode. |
+ bool in_ime_batch_edit_; |
+ |
base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |