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

Side by Side Diff: ui/base/ime/win/tsf_text_store.h

Issue 16901011: Support CancelCompositionText/ComfirmCompositionText in TSF (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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 (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
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.
Seigo Nonaka 2013/06/21 08:09:53 nit: please describe the returned value. true on s
Yohei Yukawa 2013/06/21 08:26:55 Done.
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698