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); |
}; |