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

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

Issue 78633002: Support InputMethodObserver in RemoteInputMethodWin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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 | « no previous file | ui/base/ime/remote_input_method_win.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_REMOTE_INPUT_METHOD_WIN_H_ 5 #ifndef UI_BASE_IME_REMOTE_INPUT_METHOD_WIN_H_
6 #define UI_BASE_IME_REMOTE_INPUT_METHOD_WIN_H_ 6 #define UI_BASE_IME_REMOTE_INPUT_METHOD_WIN_H_
7 7
8 #include <Windows.h> 8 #include <Windows.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 15 matching lines...) Expand all
26 // works as a proxy of an IME handler running in the metro_driver process. 26 // works as a proxy of an IME handler running in the metro_driver process.
27 // RemoteInputMethodWin works as follows. 27 // RemoteInputMethodWin works as follows.
28 // - Any action to RemoteInputMethodPrivateWin should be delegated to the 28 // - Any action to RemoteInputMethodPrivateWin should be delegated to the
29 // metro_driver process via RemoteInputMethodDelegateWin. 29 // metro_driver process via RemoteInputMethodDelegateWin.
30 // - Data retrieval from RemoteInputMethodPrivateWin is implemented with 30 // - Data retrieval from RemoteInputMethodPrivateWin is implemented with
31 // data cache. Whenever the IME state in the metro_driver process is changed, 31 // data cache. Whenever the IME state in the metro_driver process is changed,
32 // RemoteRootWindowHostWin, which receives IPCs from metro_driver process, 32 // RemoteRootWindowHostWin, which receives IPCs from metro_driver process,
33 // will call RemoteInputMethodPrivateWin::OnCandidatePopupChanged and/or 33 // will call RemoteInputMethodPrivateWin::OnCandidatePopupChanged and/or
34 // RemoteInputMethodPrivateWin::OnInputSourceChanged accordingly so that 34 // RemoteInputMethodPrivateWin::OnInputSourceChanged accordingly so that
35 // the state cache should be updated. 35 // the state cache should be updated.
36 // Caveats: RemoteInputMethodWin does not support InputMethodObserver yet.
37 36
38 // Returns the public interface of RemoteInputMethodWin. 37 // Returns the public interface of RemoteInputMethodWin.
39 // Caveats: Currently only one instance of RemoteInputMethodWin is able to run 38 // Caveats: Currently only one instance of RemoteInputMethodWin is able to run
40 // at the same time. 39 // at the same time.
41 UI_EXPORT scoped_ptr<InputMethod> CreateRemoteInputMethodWin( 40 UI_EXPORT scoped_ptr<InputMethod> CreateRemoteInputMethodWin(
42 internal::InputMethodDelegate* delegate); 41 internal::InputMethodDelegate* delegate);
43 42
44 // Private interface of RemoteInputMethodWin. 43 // Private interface of RemoteInputMethodWin.
45 class UI_EXPORT RemoteInputMethodPrivateWin { 44 class UI_EXPORT RemoteInputMethodPrivateWin {
46 public: 45 public:
(...skipping 22 matching lines...) Expand all
69 // values based on remote IME activities in the metro_driver process. 68 // values based on remote IME activities in the metro_driver process.
70 virtual void OnInputSourceChanged(LANGID langid, bool is_ime) = 0; 69 virtual void OnInputSourceChanged(LANGID langid, bool is_ime) = 0;
71 70
72 private: 71 private:
73 DISALLOW_COPY_AND_ASSIGN(RemoteInputMethodPrivateWin); 72 DISALLOW_COPY_AND_ASSIGN(RemoteInputMethodPrivateWin);
74 }; 73 };
75 74
76 } // namespace ui 75 } // namespace ui
77 76
78 #endif // UI_BASE_IME_REMOTE_INPUT_METHOD_WIN_H_ 77 #endif // UI_BASE_IME_REMOTE_INPUT_METHOD_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | ui/base/ime/remote_input_method_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698