Index: content/renderer/render_widget.h |
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h |
index 8cb0010653d6e928733c5a46917e6a718de092ba..443df874ba34ab66e1c2a3056879b56bdc9064e7 100644 |
--- a/content/renderer/render_widget.h |
+++ b/content/renderer/render_widget.h |
@@ -351,8 +351,10 @@ class CONTENT_EXPORT RenderWidget |
// Checks if the composition range or composition character bounds have been |
// changed. If they are changed, the new value will be sent to the browser |
// process. This method does nothing when the browser process is not able to |
- // handle composition range and composition character bounds. |
- void UpdateCompositionInfo(bool should_update_range); |
+ // handle composition range and composition character bounds. If force_update |
+ // is true, render sends the latest composition info to the browser even if |
+ // the composition info is not changed. |
+ void UpdateCompositionInfo(bool should_update_range, bool force_update); |
// Change the device ICC color profile while running a layout test. |
void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile); |
@@ -481,6 +483,10 @@ class CONTENT_EXPORT RenderWidget |
// Called by the browser process to update text input state. |
void OnRequestTextInputStateUpdate(); |
+ |
+ // Called by the browser process to update the cursor and composition |
+ // information. |
+ void OnRequestCompositionUpdate(bool immediate_request, bool monitor_request); |
#endif |
// Notify the compositor about a change in viewport size. This should be |
@@ -725,6 +731,9 @@ class CONTENT_EXPORT RenderWidget |
// intentionally keep the last ack'd value to know what the browser is |
// currently aware of. |
std::deque<blink::WebTextInputInfo> text_input_info_history_; |
+ |
+ // True if the IME requests updated composition info. |
+ bool monitor_composition_info_; |
#endif |
std::unique_ptr<RenderWidgetScreenMetricsEmulator> screen_metrics_emulator_; |