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

Side by Side Diff: webkit/default_plugin/plugin_main.cc

Issue 200031: Take out the activex control. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « webkit/default_plugin/plugin_impl_win.cc ('k') | webkit/glue/plugins/plugin_constants_win.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include "webkit/default_plugin/plugin_main.h" 5 #include "webkit/default_plugin/plugin_main.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "webkit/activex_shim/npp_impl.h"
10 #include "webkit/default_plugin/plugin_impl.h" 9 #include "webkit/default_plugin/plugin_impl.h"
11 #include "webkit/glue/webkit_glue.h" 10 #include "webkit/glue/webkit_glue.h"
12 11
13 namespace default_plugin { 12 namespace default_plugin {
14 // 13 //
15 // Forward declare the linker-provided pseudo variable for the 14 // Forward declare the linker-provided pseudo variable for the
16 // current module handle. 15 // current module handle.
17 // 16 //
18 extern "C" IMAGE_DOS_HEADER __ImageBase; 17 extern "C" IMAGE_DOS_HEADER __ImageBase;
19 18
(...skipping 19 matching lines...) Expand all
39 funcs->print = NULL; 38 funcs->print = NULL;
40 funcs->event = NPP_HandleEvent; 39 funcs->event = NPP_HandleEvent;
41 funcs->urlnotify = NPP_URLNotify; 40 funcs->urlnotify = NPP_URLNotify;
42 funcs->getvalue = NULL; 41 funcs->getvalue = NULL;
43 funcs->setvalue = NULL; 42 funcs->setvalue = NULL;
44 return NPERR_NO_ERROR; 43 return NPERR_NO_ERROR;
45 } 44 }
46 45
47 NPError API_CALL NP_Initialize(NPNetscapeFuncs* funcs) { 46 NPError API_CALL NP_Initialize(NPNetscapeFuncs* funcs) {
48 g_browser = funcs; 47 g_browser = funcs;
49 activex_shim::g_browser = funcs;
50 return 0; 48 return 0;
51 } 49 }
52 50
53 NPError API_CALL NP_Shutdown(void) { 51 NPError API_CALL NP_Shutdown(void) {
54 g_browser = NULL; 52 g_browser = NULL;
55 return 0; 53 return 0;
56 } 54 }
57 55
58 namespace { 56 namespace {
59 // This function is only invoked when the default plugin is invoked 57 // This function is only invoked when the default plugin is invoked
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 if (instance == NULL) 233 if (instance == NULL)
236 return 0; 234 return 0;
237 235
238 PluginInstallerImpl* plugin_impl = 236 PluginInstallerImpl* plugin_impl =
239 reinterpret_cast<PluginInstallerImpl*>(instance->pdata); 237 reinterpret_cast<PluginInstallerImpl*>(instance->pdata);
240 238
241 return plugin_impl->NPP_HandleEvent(event); 239 return plugin_impl->NPP_HandleEvent(event);
242 } 240 }
243 241
244 } // default_plugin 242 } // default_plugin
OLDNEW
« no previous file with comments | « webkit/default_plugin/plugin_impl_win.cc ('k') | webkit/glue/plugins/plugin_constants_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698