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 WIN8_METRO_DRIVER_IME_TEXT_STORE_H_ | 5 #ifndef WIN8_METRO_DRIVER_IME_TEXT_STORE_H_ |
6 #define WIN8_METRO_DRIVER_IME_TEXT_STORE_H_ | 6 #define WIN8_METRO_DRIVER_IME_TEXT_STORE_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlcom.h> | 9 #include <atlcom.h> |
10 #include <initguid.h> | 10 #include <initguid.h> |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 // The current mask of |text_store_acp_sink_|. | 254 // The current mask of |text_store_acp_sink_|. |
255 DWORD text_store_acp_sink_mask_; | 255 DWORD text_store_acp_sink_mask_; |
256 | 256 |
257 // HWND of the attached window. | 257 // HWND of the attached window. |
258 HWND window_handle_; | 258 HWND window_handle_; |
259 | 259 |
260 // |string_buffer_| contains committed string and composition string. | 260 // |string_buffer_| contains committed string and composition string. |
261 // Example: "aoi" is committed, and "umi" is under composition. | 261 // Example: "aoi" is committed, and "umi" is under composition. |
262 // |string_buffer_|: "aoiumi" | 262 // |string_buffer_|: "aoiumi" |
263 // |committed_size_|: 3 | 263 // |committed_size_|: 3 |
264 string16 string_buffer_; | 264 base::string16 string_buffer_; |
265 uint32 committed_size_; | 265 uint32 committed_size_; |
266 | 266 |
267 // |selection_start_| and |selection_end_| indicates the selection range. | 267 // |selection_start_| and |selection_end_| indicates the selection range. |
268 // Example: "iue" is selected | 268 // Example: "iue" is selected |
269 // |string_buffer_|: "aiueo" | 269 // |string_buffer_|: "aiueo" |
270 // |selection_start_|: 1 | 270 // |selection_start_|: 1 |
271 // |selection_end_|: 4 | 271 // |selection_end_|: 4 |
272 uint32 selection_start_; | 272 uint32 selection_start_; |
273 uint32 selection_end_; | 273 uint32 selection_end_; |
274 | 274 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 | 306 |
307 // The delegate attached to this text store. | 307 // The delegate attached to this text store. |
308 TextStoreDelegate* delegate_; | 308 TextStoreDelegate* delegate_; |
309 | 309 |
310 DISALLOW_COPY_AND_ASSIGN(TextStore); | 310 DISALLOW_COPY_AND_ASSIGN(TextStore); |
311 }; | 311 }; |
312 | 312 |
313 } // namespace metro_driver | 313 } // namespace metro_driver |
314 | 314 |
315 #endif // WIN8_METRO_DRIVER_IME_TEXT_STORE_H_ | 315 #endif // WIN8_METRO_DRIVER_IME_TEXT_STORE_H_ |
OLD | NEW |