Chromium Code Reviews| Index: content/renderer/render_widget.h |
| diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h |
| index e5ab98921e34ca0945ec5f34f3900c3bdc96b64c..a87f272ed6fb32426adb02636f8c5fe49ef9a491 100644 |
| --- a/content/renderer/render_widget.h |
| +++ b/content/renderer/render_widget.h |
| @@ -332,6 +332,19 @@ class CONTENT_EXPORT RenderWidget |
| void OnImeBatchStateChanged(bool is_begin); |
| void OnShowImeIfNeeded(); |
| #endif |
| + // Returns whether strict IME processing has been enabled. |
| + bool has_strict_ime_processing() { return strict_ime_processing_; } |
| + // Whenever an IME event that needs an acknowledgement is sent to the browser, |
| + // the number of outstanding IME events that needs acknowledgement should be |
| + // incremented. |
| + void IncrementOutstandingImeEventAcknowledgements(); |
| + // If there are outstanding IME events that needs to be acknowledged, all |
| + // new IME events should be discarded. This only returns true if strict IME |
| + // processing is enabled. |
| + bool HasOutstandingImeEventAcknowledgements(); |
| + // Called by the browser process for every required IME acknowledgement. |
| + void OnImeAcknowledgeImeEvent(); |
| + |
| void OnSnapshot(const gfx::Rect& src_subrect); |
| void OnSetBrowserRenderingStats(const BrowserRenderingStats& stats); |
| @@ -715,6 +728,14 @@ class CONTENT_EXPORT RenderWidget |
| // frame. |
| ui::LatencyInfo latency_info_; |
| + // Specifies if the strict IME processing has been enabled. |
| + bool strict_ime_processing_; |
|
kochi
2013/07/08 04:28:43
Same here. rename the member as has_strict_ime_pro
nyquist
2013/07/09 07:47:36
Done.
|
| + |
| + // A counter for number of outstanding messages from the renderer to the |
| + // browser regarding IME-type events that have not been acknowledged by the |
| + // browser. |
| + int outstanding_ime_acknowledgements_; |
| + |
| base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
| DISALLOW_COPY_AND_ASSIGN(RenderWidget); |