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

Unified Diff: content/renderer/render_widget.h

Issue 18750003: Require ACK for editor-related changes not originating from browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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/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);

Powered by Google App Engine
This is Rietveld 408576698