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

Side by Side Diff: webkit/glue/plugins/webplugin_delegate_impl_win.cc

Issue 2813047: Move default_plugin from webkit/ to chrome/ (Closed)
Patch Set: fix windows? Created 10 years, 5 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
« no previous file with comments | « webkit/glue/plugins/webplugin_delegate_impl_mac.mm ('k') | webkit/glue/webkit_glue.gypi » ('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/glue/plugins/webplugin_delegate_impl.h" 5 #include "webkit/glue/plugins/webplugin_delegate_impl.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/iat_patch.h" 11 #include "base/iat_patch.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/registry.h" 14 #include "base/registry.h"
15 #include "base/scoped_ptr.h" 15 #include "base/scoped_ptr.h"
16 #include "base/stats_counters.h" 16 #include "base/stats_counters.h"
17 #include "base/string_util.h" 17 #include "base/string_util.h"
18 #include "base/win_util.h" 18 #include "base/win_util.h"
19 #include "skia/ext/platform_canvas.h" 19 #include "skia/ext/platform_canvas.h"
20 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" 20 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h"
21 #include "webkit/default_plugin/plugin_impl.h" 21 #include "webkit/glue/plugins/default_plugin_shared.h"
22 #include "webkit/glue/plugins/plugin_constants_win.h" 22 #include "webkit/glue/plugins/plugin_constants_win.h"
23 #include "webkit/glue/plugins/plugin_instance.h" 23 #include "webkit/glue/plugins/plugin_instance.h"
24 #include "webkit/glue/plugins/plugin_lib.h" 24 #include "webkit/glue/plugins/plugin_lib.h"
25 #include "webkit/glue/plugins/plugin_list.h" 25 #include "webkit/glue/plugins/plugin_list.h"
26 #include "webkit/glue/plugins/plugin_stream_url.h" 26 #include "webkit/glue/plugins/plugin_stream_url.h"
27 #include "webkit/glue/plugins/webplugin.h" 27 #include "webkit/glue/plugins/webplugin.h"
28 #include "webkit/glue/webkit_glue.h" 28 #include "webkit/glue/webkit_glue.h"
29 29
30 using WebKit::WebCursorInfo; 30 using WebKit::WebCursorInfo;
31 using WebKit::WebKeyboardEvent; 31 using WebKit::WebKeyboardEvent;
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 NPPrint npprint; 459 NPPrint npprint;
460 npprint.mode = NP_EMBED; 460 npprint.mode = NP_EMBED;
461 npprint.print.embedPrint.platformPrint = reinterpret_cast<void*>(hdc); 461 npprint.print.embedPrint.platformPrint = reinterpret_cast<void*>(hdc);
462 npprint.print.embedPrint.window = window_; 462 npprint.print.embedPrint.window = window_;
463 instance()->NPP_Print(&npprint); 463 instance()->NPP_Print(&npprint);
464 #endif 464 #endif
465 } 465 }
466 466
467 void WebPluginDelegateImpl::InstallMissingPlugin() { 467 void WebPluginDelegateImpl::InstallMissingPlugin() {
468 NPEvent evt; 468 NPEvent evt;
469 evt.event = PluginInstallerImpl::kInstallMissingPluginMessage; 469 evt.event = default_plugin::kInstallMissingPluginMessage;
470 evt.lParam = 0; 470 evt.lParam = 0;
471 evt.wParam = 0; 471 evt.wParam = 0;
472 instance()->NPP_HandleEvent(&evt); 472 instance()->NPP_HandleEvent(&evt);
473 } 473 }
474 474
475 bool WebPluginDelegateImpl::WindowedCreatePlugin() { 475 bool WebPluginDelegateImpl::WindowedCreatePlugin() {
476 DCHECK(!windowed_handle_); 476 DCHECK(!windowed_handle_);
477 477
478 RegisterNativeWindowClass(); 478 RegisterNativeWindowClass();
479 479
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 case WM_LBUTTONUP: 1387 case WM_LBUTTONUP:
1388 case WM_MBUTTONUP: 1388 case WM_MBUTTONUP:
1389 case WM_RBUTTONUP: 1389 case WM_RBUTTONUP:
1390 ::ReleaseCapture(); 1390 ::ReleaseCapture();
1391 break; 1391 break;
1392 1392
1393 default: 1393 default:
1394 break; 1394 break;
1395 } 1395 }
1396 } 1396 }
OLDNEW
« no previous file with comments | « webkit/glue/plugins/webplugin_delegate_impl_mac.mm ('k') | webkit/glue/webkit_glue.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698