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

Side by Side 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: Make limitations for input.ime.sendKeyEvents API. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 5 #ifndef CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
6 #define CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 6 #define CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 bool is_visible) override; 50 bool is_visible) override;
51 void CommitTextToInputContext(int context_id, 51 void CommitTextToInputContext(int context_id,
52 const std::string& text) override; 52 const std::string& text) override;
53 bool SendKeyEvent(ui::KeyEvent* ui_event, const std::string& code) override; 53 bool SendKeyEvent(ui::KeyEvent* ui_event, const std::string& code) override;
54 54
55 // ui::ImeWindowObserver: 55 // ui::ImeWindowObserver:
56 void OnWindowDestroyed(ui::ImeWindow* ime_window) override; 56 void OnWindowDestroyed(ui::ImeWindow* ime_window) override;
57 57
58 ui::ImeWindow* FindWindowById(int window_id) const; 58 ui::ImeWindow* FindWindowById(int window_id) const;
59 59
60 // Checks if the key events are allowed for some special pages.
61 bool IsValidKeyForSpecialPage(const std::string& url, ui::KeyEvent* ui_event);
62
60 // Holds the IME window instances for properly closing in the destructor. 63 // Holds the IME window instances for properly closing in the destructor.
61 // The follow-cursor window is singleton. 64 // The follow-cursor window is singleton.
62 // The normal windows cannot exceed the max count. 65 // The normal windows cannot exceed the max count.
63 ui::ImeWindow* follow_cursor_window_; // Weak. 66 ui::ImeWindow* follow_cursor_window_; // Weak.
64 std::vector<ui::ImeWindow*> normal_windows_; // Weak. 67 std::vector<ui::ImeWindow*> normal_windows_; // Weak.
65 68
66 // Tracks the current cursor bounds so that the new follow cursor window can 69 // Tracks the current cursor bounds so that the new follow cursor window can
67 // be aligned with cursor once it being created. 70 // be aligned with cursor once it being created.
68 gfx::Rect current_cursor_bounds_; 71 gfx::Rect current_cursor_bounds_;
69 72
70 DISALLOW_COPY_AND_ASSIGN(InputMethodEngine); 73 DISALLOW_COPY_AND_ASSIGN(InputMethodEngine);
71 }; 74 };
72 75
73 } // namespace input_method 76 } // namespace input_method
74 77
75 #endif // CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 78 #endif // CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698