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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 2323983003: DO NOT SUBMIT: Bundle IME-related messages into one for batch edit (Closed)
Patch Set: fixed nits and fixed blimp test Created 4 years, 3 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/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);
« no previous file with comments | « content/browser/renderer_host/ime_adapter_android.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698