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

Side by Side Diff: ui/base/ime/ime_engine_handler_interface.h

Issue 2597413002: Makes the InputMethodEngine can be switched per profile when the top-level browser window is switch… (Closed)
Patch Set: . Created 3 years, 12 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
« no previous file with comments | « ui/base/ime/chromeos/mock_ime_engine_handler.cc ('k') | ui/base/ime/input_method_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_ 5 #ifndef UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_
6 #define UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_ 6 #define UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // Called when the IME is enabled. 65 // Called when the IME is enabled.
66 virtual void Enable(const std::string& component_id) = 0; 66 virtual void Enable(const std::string& component_id) = 0;
67 67
68 // Called when the IME is disabled. 68 // Called when the IME is disabled.
69 virtual void Disable() = 0; 69 virtual void Disable() = 0;
70 70
71 // Called when the IME is reset. 71 // Called when the IME is reset.
72 virtual void Reset() = 0; 72 virtual void Reset() = 0;
73 73
74 // Called when the top-level-window is changed, which could switch the engine
75 // handler.
76 virtual void MaybeSwitchEngine() = 0;
77
74 // Called when the key event is received. 78 // Called when the key event is received.
75 // Actual implementation must call |callback| after key event handling. 79 // Actual implementation must call |callback| after key event handling.
76 virtual void ProcessKeyEvent(const KeyEvent& key_event, 80 virtual void ProcessKeyEvent(const KeyEvent& key_event,
77 KeyEventDoneCallback& callback) = 0; 81 KeyEventDoneCallback& callback) = 0;
78 82
79 // Called when a new surrounding text is set. The |text| is surrounding text 83 // Called when a new surrounding text is set. The |text| is surrounding text
80 // and |cursor_pos| is 0 based index of cursor position in |text|. If there is 84 // and |cursor_pos| is 0 based index of cursor position in |text|. If there is
81 // selection range, |anchor_pos| represents opposite index from |cursor_pos|. 85 // selection range, |anchor_pos| represents opposite index from |cursor_pos|.
82 // Otherwise |anchor_pos| is equal to |cursor_pos|. If not all surrounding 86 // Otherwise |anchor_pos| is equal to |cursor_pos|. If not all surrounding
83 // text is given |offset_pos| indicates the starting offset of |text|. 87 // text is given |offset_pos| indicates the starting offset of |text|.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Get the id of the IME extension. 147 // Get the id of the IME extension.
144 virtual std::string GetExtensionId() const = 0; 148 virtual std::string GetExtensionId() const = 0;
145 #endif // defined(OS_CHROMEOS) 149 #endif // defined(OS_CHROMEOS)
146 protected: 150 protected:
147 IMEEngineHandlerInterface() {} 151 IMEEngineHandlerInterface() {}
148 }; 152 };
149 153
150 } // namespace ui 154 } // namespace ui
151 155
152 #endif // UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_ 156 #endif // UI_BASE_IME_IME_ENGINE_HANDLER_INTERFACE_H_
OLDNEW
« no previous file with comments | « ui/base/ime/chromeos/mock_ime_engine_handler.cc ('k') | ui/base/ime/input_method_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698