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

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

Issue 93863005: ui: Rename ui_export.h to ui_base_export.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: UI_BASE_IMPLEMENTATION Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/ime/win/tsf_event_router.h ('k') | ui/base/ime/win/tsf_text_store.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_INPUT_SCOPE_H_ 5 #ifndef UI_BASE_IME_WIN_TSF_INPUT_SCOPE_H_
6 #define UI_BASE_IME_WIN_TSF_INPUT_SCOPE_H_ 6 #define UI_BASE_IME_WIN_TSF_INPUT_SCOPE_H_
7 7
8 #include <InputScope.h> 8 #include <InputScope.h>
9 #include <Windows.h> 9 #include <Windows.h>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "ui/base/ime/text_input_mode.h" 13 #include "ui/base/ime/text_input_mode.h"
14 #include "ui/base/ime/text_input_type.h" 14 #include "ui/base/ime/text_input_type.h"
15 #include "ui/base/ui_export.h" 15 #include "ui/base/ui_base_export.h"
16 16
17 namespace ui { 17 namespace ui {
18 namespace tsf_inputscope { 18 namespace tsf_inputscope {
19 19
20 // Returns InputScope list corresoponding to ui::TextInputType and 20 // Returns InputScope list corresoponding to ui::TextInputType and
21 // ui::TextInputMode. 21 // ui::TextInputMode.
22 // This function is only used from following functions but declared for test. 22 // This function is only used from following functions but declared for test.
23 UI_EXPORT std::vector<InputScope> GetInputScopes(TextInputType text_input_type, 23 UI_BASE_EXPORT std::vector<InputScope> GetInputScopes(
24 TextInputMode text_input_mode); 24 TextInputType text_input_type,
25 TextInputMode text_input_mode);
25 26
26 // Returns an instance of ITfInputScope, which is the Windows-specific 27 // Returns an instance of ITfInputScope, which is the Windows-specific
27 // category representation corresponding to ui::TextInputType and 28 // category representation corresponding to ui::TextInputType and
28 // ui::TextInputMode that we are using to specify the expected text type 29 // ui::TextInputMode that we are using to specify the expected text type
29 // in the target field. 30 // in the target field.
30 // The returned instance has 0 reference count. The caller must maintain its 31 // The returned instance has 0 reference count. The caller must maintain its
31 // reference count. 32 // reference count.
32 UI_EXPORT ITfInputScope* CreateInputScope(TextInputType text_input_type, 33 UI_BASE_EXPORT ITfInputScope* CreateInputScope(TextInputType text_input_type,
33 TextInputMode text_input_mode); 34 TextInputMode text_input_mode);
34 35
35 // A wrapper of the SetInputScopes API exported by msctf.dll. 36 // A wrapper of the SetInputScopes API exported by msctf.dll.
36 // http://msdn.microsoft.com/en-us/library/windows/desktop/ms629026.aspx 37 // http://msdn.microsoft.com/en-us/library/windows/desktop/ms629026.aspx
37 // Does nothing on Windows XP in case TSF is disabled. 38 // Does nothing on Windows XP in case TSF is disabled.
38 // NOTE: For TSF-aware window, you should use ITfInputScope instead. 39 // NOTE: For TSF-aware window, you should use ITfInputScope instead.
39 UI_EXPORT void SetInputScopeForTsfUnawareWindow( 40 UI_BASE_EXPORT void SetInputScopeForTsfUnawareWindow(
40 HWND window_handle, 41 HWND window_handle,
41 TextInputType text_input_type, 42 TextInputType text_input_type,
42 TextInputMode text_input_mode); 43 TextInputMode text_input_mode);
43 44
44 } // namespace tsf_inputscope 45 } // namespace tsf_inputscope
45 } // namespace ui 46 } // namespace ui
46 47
47 #endif // UI_BASE_IME_WIN_TSF_INPUT_SCOPE_H_ 48 #endif // UI_BASE_IME_WIN_TSF_INPUT_SCOPE_H_
OLDNEW
« no previous file with comments | « ui/base/ime/win/tsf_event_router.h ('k') | ui/base/ime/win/tsf_text_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698