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

Side by Side Diff: ui/base/ime/win/tsf_bridge.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/imm32_manager.h ('k') | ui/base/ime/win/tsf_event_router.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_BRIDGE_H_ 5 #ifndef UI_BASE_IME_WIN_TSF_BRIDGE_H_
6 #define UI_BASE_IME_WIN_TSF_BRIDGE_H_ 6 #define UI_BASE_IME_WIN_TSF_BRIDGE_H_
7 7
8 #include <Windows.h>
9 #include <msctf.h> 8 #include <msctf.h>
9 #include <windows.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/win/scoped_comptr.h" 12 #include "base/win/scoped_comptr.h"
13 #include "ui/base/ui_export.h" 13 #include "ui/base/ui_base_export.h"
14 14
15 namespace ui { 15 namespace ui {
16 class TextInputClient; 16 class TextInputClient;
17 17
18 // TSFBridge provides high level IME related operations on top of Text Services 18 // TSFBridge provides high level IME related operations on top of Text Services
19 // Framework (TSF). TSFBridge is managed by TLS because TSF related stuff is 19 // Framework (TSF). TSFBridge is managed by TLS because TSF related stuff is
20 // associated with each thread and not allowed to access across thread boundary. 20 // associated with each thread and not allowed to access across thread boundary.
21 // To be consistent with IMM32 behavior, TSFBridge is shared in the same thread. 21 // To be consistent with IMM32 behavior, TSFBridge is shared in the same thread.
22 // TSFBridge is used by the web content text inputting field, for example 22 // TSFBridge is used by the web content text inputting field, for example
23 // DisableIME() should be called if a password field is focused. 23 // DisableIME() should be called if a password field is focused.
24 // 24 //
25 // TSFBridge also manages connectivity between TSFTextStore which is the backend 25 // TSFBridge also manages connectivity between TSFTextStore which is the backend
26 // of text inputting and current focused TextInputClient. 26 // of text inputting and current focused TextInputClient.
27 // 27 //
28 // All methods in this class must be used in UI thread. 28 // All methods in this class must be used in UI thread.
29 class UI_EXPORT TSFBridge { 29 class UI_BASE_EXPORT TSFBridge {
30 public: 30 public:
31 virtual ~TSFBridge(); 31 virtual ~TSFBridge();
32 32
33 // Returns the thread local TSFBridge instance. Initialize() must be called 33 // Returns the thread local TSFBridge instance. Initialize() must be called
34 // first. Do not cache this pointer and use it after TSFBridge Shutdown(). 34 // first. Do not cache this pointer and use it after TSFBridge Shutdown().
35 static TSFBridge* GetInstance(); 35 static TSFBridge* GetInstance();
36 36
37 // Sets the thread local instance. Must be called before any calls to 37 // Sets the thread local instance. Must be called before any calls to
38 // GetInstance(). 38 // GetInstance().
39 static bool Initialize(); 39 static bool Initialize();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 private: 88 private:
89 // Releases TLS instance. 89 // Releases TLS instance.
90 static void Finalize(void* data); 90 static void Finalize(void* data);
91 91
92 DISALLOW_COPY_AND_ASSIGN(TSFBridge); 92 DISALLOW_COPY_AND_ASSIGN(TSFBridge);
93 }; 93 };
94 94
95 } // namespace ui 95 } // namespace ui
96 96
97 #endif // UI_BASE_IME_WIN_TSF_BRIDGE_H_ 97 #endif // UI_BASE_IME_WIN_TSF_BRIDGE_H_
OLDNEW
« no previous file with comments | « ui/base/ime/win/imm32_manager.h ('k') | ui/base/ime/win/tsf_event_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698