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

Unified Diff: chrome/browser/ui/input_method/input_method_engine.h

Issue 2077783002: Make limitations for input.ime.sendKeyEvents API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: chrome/browser/ui/input_method/input_method_engine.h
diff --git a/chrome/browser/ui/input_method/input_method_engine.h b/chrome/browser/ui/input_method/input_method_engine.h
index 3ed4c8c1d452dbe456e1f0a2af795642286c2763..8b26f3c863c8ec87fc5357d7da75d79a12553a9d 100644
--- a/chrome/browser/ui/input_method/input_method_engine.h
+++ b/chrome/browser/ui/input_method/input_method_engine.h
@@ -11,6 +11,7 @@
#include "chrome/browser/ui/ime/ime_window.h"
#include "chrome/browser/ui/ime/ime_window_observer.h"
#include "chrome/browser/ui/input_method/input_method_engine_base.h"
+#include "url/gurl.h"
Shu Chen 2016/06/29 13:18:19 move this to .cc file.
Azure Wei 2016/06/30 07:46:20 Done.
namespace content {
class RenderFrameHost;
@@ -57,6 +58,9 @@ class InputMethodEngine : public InputMethodEngineBase,
ui::ImeWindow* FindWindowById(int window_id) const;
+ // Checks if the key event is allowed for some special pages.
+ bool IsValidKeyForSpecialPage(ui::KeyEvent* ui_event);
+
// Holds the IME window instances for properly closing in the destructor.
// The follow-cursor window is singleton.
// The normal windows cannot exceed the max count.

Powered by Google App Engine
This is Rietveld 408576698