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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 // HWND of the current view window which is set in SetFocusedTextInputClient. | 243 // HWND of the current view window which is set in SetFocusedTextInputClient. |
244 HWND window_handle_; | 244 HWND window_handle_; |
245 | 245 |
246 // Current TextInputClient which is set in SetFocusedTextInputClient. | 246 // Current TextInputClient which is set in SetFocusedTextInputClient. |
247 TextInputClient* text_input_client_; | 247 TextInputClient* text_input_client_; |
248 | 248 |
249 // |string_buffer_| contains committed string and composition string. | 249 // |string_buffer_| contains committed string and composition string. |
250 // Example: "aoi" is committed, and "umi" is under composition. | 250 // Example: "aoi" is committed, and "umi" is under composition. |
251 // |string_buffer_|: "aoiumi" | 251 // |string_buffer_|: "aoiumi" |
252 // |committed_size_|: 3 | 252 // |committed_size_|: 3 |
253 string16 string_buffer_; | 253 base::string16 string_buffer_; |
254 size_t committed_size_; | 254 size_t committed_size_; |
255 | 255 |
256 // |selection_start_| and |selection_end_| indicates the selection range. | 256 // |selection_start_| and |selection_end_| indicates the selection range. |
257 // Example: "iue" is selected | 257 // Example: "iue" is selected |
258 // |string_buffer_|: "aiueo" | 258 // |string_buffer_|: "aiueo" |
259 // |selection_.start()|: 1 | 259 // |selection_.start()|: 1 |
260 // |selection_.end()|: 4 | 260 // |selection_.end()|: 4 |
261 gfx::Range selection_; | 261 gfx::Range selection_; |
262 | 262 |
263 // |start_offset| and |end_offset| of |composition_undelines_| indicates | 263 // |start_offset| and |end_offset| of |composition_undelines_| indicates |
(...skipping 24 matching lines...) Expand all Loading... |
288 // attributes of the composition string. | 288 // attributes of the composition string. |
289 base::win::ScopedComPtr<ITfCategoryMgr> category_manager_; | 289 base::win::ScopedComPtr<ITfCategoryMgr> category_manager_; |
290 base::win::ScopedComPtr<ITfDisplayAttributeMgr> display_attribute_manager_; | 290 base::win::ScopedComPtr<ITfDisplayAttributeMgr> display_attribute_manager_; |
291 | 291 |
292 DISALLOW_COPY_AND_ASSIGN(TSFTextStore); | 292 DISALLOW_COPY_AND_ASSIGN(TSFTextStore); |
293 }; | 293 }; |
294 | 294 |
295 } // namespace ui | 295 } // namespace ui |
296 | 296 |
297 #endif // UI_BASE_IME_WIN_TSF_TEXT_STORE_H_ | 297 #endif // UI_BASE_IME_WIN_TSF_TEXT_STORE_H_ |
OLD | NEW |