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

Unified Diff: content/child/npapi/webplugin_ime_win.cc

Issue 1815593002: Remove windowed NPAPI code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make_test_plugin_windowless
Patch Set: rebase Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl_win.cc ('k') | content/child/plugin_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npapi/webplugin_ime_win.cc
diff --git a/content/child/npapi/webplugin_ime_win.cc b/content/child/npapi/webplugin_ime_win.cc
index 94d1a921cddb1a425fa39e8625b8a2f17122f191..752349598028d745d68474830c9ccf62d978b252 100644
--- a/content/child/npapi/webplugin_ime_win.cc
+++ b/content/child/npapi/webplugin_ime_win.cc
@@ -267,19 +267,6 @@ LONG WINAPI WebPluginIMEWin::ImmGetCompositionStringW(HIMC context,
// static
HIMC WINAPI WebPluginIMEWin::ImmGetContext(HWND window) {
- // Call the original ImmGetContext() function if the given window is the one
- // created in WebPluginDelegateImpl::WindowedCreatePlugin(). (We attached IME
- // context only with the windows created in this function.) On the other hand,
- // some windowless plugins (such as Flash) call this function with a dummy
- // window handle. We return our dummy IME context for these plugins so they
- // can use our IME emulator.
- if (IsWindow(window)) {
- wchar_t name[128];
- GetClassName(window, &name[0], arraysize(name));
- if (!wcscmp(&name[0], kNativeWindowClassName))
- return ::ImmGetContext(window);
- }
-
WebPluginIMEWin* instance = instance_;
if (instance)
instance->support_ime_messages_ = true;
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl_win.cc ('k') | content/child/plugin_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698