diff options
author | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-14 08:31:51 +0000 |
---|---|---|
committer | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-14 08:31:51 +0000 |
commit | 5dc0cc7bf9cb2f5e6b050933d1ebe7852b10baa0 (patch) | |
tree | 07f0620ffd0821ef0718d576edf5b415225ff76b /base | |
parent | 67039c734e08c5c1b04f8bc1a98c81dc675bd7ab (diff) | |
download | chromium_src-5dc0cc7bf9cb2f5e6b050933d1ebe7852b10baa0.zip chromium_src-5dc0cc7bf9cb2f5e6b050933d1ebe7852b10baa0.tar.gz chromium_src-5dc0cc7bf9cb2f5e6b050933d1ebe7852b10baa0.tar.bz2 |
Reverting 15832 since this test is finished.
BUG=11046 "Need to back out hbono's test fix"
Review URL: http://codereview.chromium.org/112021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16047 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/win_util.cc | 20 | ||||
-rw-r--r-- | base/win_util.h | 6 |
2 files changed, 0 insertions, 26 deletions
diff --git a/base/win_util.cc b/base/win_util.cc index b71ac30..2f1ceb9 100644 --- a/base/win_util.cc +++ b/base/win_util.cc @@ -436,26 +436,6 @@ void NotifyHWNDDestruction(const tracked_objects::Location& from_here, from_here)); } -bool IMEAttach(HWND window, bool attach) { - // To prevent a crash when calling ImmAssociateContextEx() function on a PC - // which has a valid "imm32.dll" installed, we manually load "imm32.dll" and - // call its "ImmAssociateContextEx() function. - bool result = false; - HMODULE imm32_module = LoadLibrary(L"imm32.dll"); - if (imm32_module) { - typedef BOOL (WINAPI* Imm32_ImmAssociateContextEx)(HWND, HIMC, DWORD); - Imm32_ImmAssociateContextEx imm_associate_context_ex = - reinterpret_cast<Imm32_ImmAssociateContextEx>( - GetProcAddress(imm32_module, "ImmAssociateContextEx")); - if (imm_associate_context_ex) { - result = !!imm_associate_context_ex(window, NULL, - attach ? IACE_DEFAULT : 0); - } - FreeLibrary(imm32_module); - } - return result; -} - } // namespace win_util #ifdef _MSC_VER diff --git a/base/win_util.h b/base/win_util.h index b801e56..284b9bd 100644 --- a/base/win_util.h +++ b/base/win_util.h @@ -117,12 +117,6 @@ void NotifyHWNDDestruction(const tracked_objects::Location& from_here, #define TRACK_HWND_DESTRUCTION(hwnd) \ win_util::NotifyHWNDDestruction(FROM_HERE, hwnd) -// Attach the default IME to the window or detach it from the window. -// This functions is a wrapper function for the ImmAssociateContextEx() -// function to prevent a crash when calling the function on a PC which doesn't -// have a valid "imm32.dll" installed. -bool IMEAttach(HWND window, bool attach); - } // namespace win_util #endif // BASE_WIN_UTIL_H__ |