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

Unified Diff: content/renderer/input/render_widget_input_handler.h

Issue 2903833002: Reland: Update TextSelection for non-user initiated events
Patch Set: Add test for JS cursor movement Created 3 years, 5 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/input/render_widget_input_handler.h
diff --git a/content/renderer/input/render_widget_input_handler.h b/content/renderer/input/render_widget_input_handler.h
index 611ff3a19832829770e242ff0045b11ef440e13e..fb9d7919b0fcefdce7c1e52d073b8809a4357285 100644
--- a/content/renderer/input/render_widget_input_handler.h
+++ b/content/renderer/input/render_widget_input_handler.h
@@ -60,6 +60,13 @@ class CONTENT_EXPORT RenderWidgetInputHandler {
return handling_event_type_;
}
+ bool ime_composition_replacement() const {
+ return ime_composition_replacement_;
+ }
+ void set_ime_composition_replacement(bool ime_composition_replacement) {
+ ime_composition_replacement_ = ime_composition_replacement;
+ }
+
private:
RenderWidgetInputHandlerDelegate* const delegate_;
@@ -80,6 +87,10 @@ class CONTENT_EXPORT RenderWidgetInputHandler {
// Indicates if the next sequence of Char events should be suppressed or not.
bool suppress_next_char_events_;
+ // Used to suppress notification about text selection changes triggered by
+ // IME composition when it replaces text.
+ bool ime_composition_replacement_;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidgetInputHandler);
};
« no previous file with comments | « content/renderer/input/frame_input_handler_impl.cc ('k') | content/renderer/input/render_widget_input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698