| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |