| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WIN_TSF_TEXT_STORE_H_ | 5 #ifndef UI_BASE_IME_WIN_TSF_TEXT_STORE_H_ |
| 6 #define UI_BASE_IME_WIN_TSF_TEXT_STORE_H_ | 6 #define UI_BASE_IME_WIN_TSF_TEXT_STORE_H_ |
| 7 | 7 |
| 8 #include <msctf.h> | 8 #include <msctf.h> |
| 9 #include <deque> | 9 #include <deque> |
| 10 | 10 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 // ITfTextEditSink: | 195 // ITfTextEditSink: |
| 196 STDMETHOD(OnEndEdit)(ITfContext* context, TfEditCookie read_only_edit_cookie, | 196 STDMETHOD(OnEndEdit)(ITfContext* context, TfEditCookie read_only_edit_cookie, |
| 197 ITfEditRecord* edit_record) OVERRIDE; | 197 ITfEditRecord* edit_record) OVERRIDE; |
| 198 | 198 |
| 199 // Sets currently focused TextInputClient. | 199 // Sets currently focused TextInputClient. |
| 200 void SetFocusedTextInputClient(HWND focused_window, | 200 void SetFocusedTextInputClient(HWND focused_window, |
| 201 TextInputClient* text_input_client); | 201 TextInputClient* text_input_client); |
| 202 // Removes currently focused TextInputClient. | 202 // Removes currently focused TextInputClient. |
| 203 void RemoveFocusedTextInputClient(TextInputClient* text_input_client); | 203 void RemoveFocusedTextInputClient(TextInputClient* text_input_client); |
| 204 | 204 |
| 205 // Cancels the ongoing composition if exists. |
| 206 bool CancelComposition(); |
| 207 |
| 208 // Confirms the ongoing composition if exists. |
| 209 bool ConfirmComposition(); |
| 210 |
| 205 // Sends OnLayoutChange() via |text_store_acp_sink_|. | 211 // Sends OnLayoutChange() via |text_store_acp_sink_|. |
| 206 void SendOnLayoutChange(); | 212 void SendOnLayoutChange(); |
| 207 | 213 |
| 208 private: | 214 private: |
| 209 friend class TSFTextStoreTest; | 215 friend class TSFTextStoreTest; |
| 210 friend class TSFTextStoreTestCallback; | 216 friend class TSFTextStoreTestCallback; |
| 211 | 217 |
| 212 // Checks if the document has a read-only lock. | 218 // Checks if the document has a read-only lock. |
| 213 bool HasReadLock() const; | 219 bool HasReadLock() const; |
| 214 | 220 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 // attributes of the composition string. | 288 // attributes of the composition string. |
| 283 base::win::ScopedComPtr<ITfCategoryMgr> category_manager_; | 289 base::win::ScopedComPtr<ITfCategoryMgr> category_manager_; |
| 284 base::win::ScopedComPtr<ITfDisplayAttributeMgr> display_attribute_manager_; | 290 base::win::ScopedComPtr<ITfDisplayAttributeMgr> display_attribute_manager_; |
| 285 | 291 |
| 286 DISALLOW_COPY_AND_ASSIGN(TSFTextStore); | 292 DISALLOW_COPY_AND_ASSIGN(TSFTextStore); |
| 287 }; | 293 }; |
| 288 | 294 |
| 289 } // namespace ui | 295 } // namespace ui |
| 290 | 296 |
| 291 #endif // UI_BASE_IME_WIN_TSF_TEXT_STORE_H_ | 297 #endif // UI_BASE_IME_WIN_TSF_TEXT_STORE_H_ |
| OLD | NEW |