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

Unified Diff: content/renderer/ime_event_guard.h

Issue 1388283002: Fix OSK flickering issue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed a nit and updated comment Created 5 years, 2 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/ime_event_guard.h
diff --git a/content/renderer/ime_event_guard.h b/content/renderer/ime_event_guard.h
index 811540e988b5c0397baafd6de1d3d3d849406fd9..c3854b175393dc7d214f62d2352eeac84bd5464e 100644
--- a/content/renderer/ime_event_guard.h
+++ b/content/renderer/ime_event_guard.h
@@ -8,14 +8,23 @@
namespace content {
class RenderWidget;
-// Simple RAII object for handling IME events. Calls StartHandlingImeEvent on
-// construction and FinishHandlingImeEvent on destruction.
+// Simple RAII object for guarding IME updates. Calls OnImeGuardStart on
+// construction and OnImeGuardFinish on destruction.
class ImeEventGuard {
public:
explicit ImeEventGuard(RenderWidget* widget);
+ ImeEventGuard(RenderWidget* widget, bool show_ime, bool from_ime);
~ImeEventGuard();
+
+ bool show_ime() const { return show_ime_; }
+ bool from_ime() const { return from_ime_; }
+ void set_show_ime(bool show_ime) { show_ime_ = show_ime; }
+ void set_from_ime(bool from_ime) { from_ime_ = from_ime; }
+
private:
RenderWidget* widget_;
+ bool show_ime_;
+ bool from_ime_;
};
}

Powered by Google App Engine
This is Rietveld 408576698