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

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

Issue 5998002: Revert "Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
OLDNEW
1 // Copyright (c) 2010 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/plugins/npapi/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 <gtk/gtk.h> 10 #include <gtk/gtk.h>
11 #include <gdk/gdkx.h> 11 #include <gdk/gdkx.h>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/file_util.h" 14 #include "base/file_util.h"
15 #include "base/message_loop.h" 15 #include "base/message_loop.h"
16 #include "base/process_util.h" 16 #include "base/process_util.h"
17 #include "base/metrics/stats_counters.h" 17 #include "base/metrics/stats_counters.h"
18 #include "base/string_util.h" 18 #include "base/string_util.h"
19 #include "gfx/blit.h" 19 #include "gfx/blit.h"
20 #include "skia/ext/platform_canvas.h" 20 #include "skia/ext/platform_canvas.h"
21 #include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h" 21 #include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h"
22 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" 22 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h"
23 #include "webkit/glue/plugins/gtk_plugin_container.h"
24 #include "webkit/glue/plugins/plugin_constants_win.h"
25 #include "webkit/glue/plugins/plugin_instance.h"
26 #include "webkit/glue/plugins/plugin_lib.h"
27 #include "webkit/glue/plugins/plugin_list.h"
28 #include "webkit/glue/plugins/plugin_stream_url.h"
29 #include "webkit/glue/plugins/webplugin.h"
23 #include "webkit/glue/webkit_glue.h" 30 #include "webkit/glue/webkit_glue.h"
24 #include "webkit/plugins/npapi/gtk_plugin_container.h"
25 #include "webkit/plugins/npapi/plugin_constants_win.h"
26 #include "webkit/plugins/npapi/plugin_instance.h"
27 #include "webkit/plugins/npapi/plugin_lib.h"
28 #include "webkit/plugins/npapi/plugin_list.h"
29 #include "webkit/plugins/npapi/plugin_stream_url.h"
30 #include "webkit/plugins/npapi/webplugin.h"
31 31
32 #include "third_party/npapi/bindings/npapi_x11.h" 32 #include "third_party/npapi/bindings/npapi_x11.h"
33 33
34 using WebKit::WebCursorInfo; 34 using WebKit::WebCursorInfo;
35 using WebKit::WebKeyboardEvent; 35 using WebKit::WebKeyboardEvent;
36 using WebKit::WebInputEvent; 36 using WebKit::WebInputEvent;
37 using WebKit::WebMouseEvent; 37 using WebKit::WebMouseEvent;
38 38
39 namespace webkit {
40 namespace npapi {
41
42 WebPluginDelegateImpl::WebPluginDelegateImpl( 39 WebPluginDelegateImpl::WebPluginDelegateImpl(
43 gfx::PluginWindowHandle containing_view, 40 gfx::PluginWindowHandle containing_view,
44 PluginInstance *instance) 41 NPAPI::PluginInstance *instance)
45 : windowed_handle_(0), 42 : windowed_handle_(0),
46 windowed_did_set_window_(false), 43 windowed_did_set_window_(false),
47 windowless_(false), 44 windowless_(false),
48 plugin_(NULL), 45 plugin_(NULL),
49 instance_(instance), 46 instance_(instance),
50 windowless_shm_pixmap_(None), 47 windowless_shm_pixmap_(None),
51 pixmap_(NULL), 48 pixmap_(NULL),
52 first_event_time_(-1.0), 49 first_event_time_(-1.0),
53 plug_(NULL), 50 plug_(NULL),
54 socket_(NULL), 51 socket_(NULL),
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 if (event->event == WM_MOUSEMOVE) { 758 if (event->event == WM_MOUSEMOVE) {
762 // Snag a reference to the current cursor ASAP in case the plugin modified 759 // Snag a reference to the current cursor ASAP in case the plugin modified
763 // it. There is a nasty race condition here with the multiprocess browser 760 // it. There is a nasty race condition here with the multiprocess browser
764 // as someone might be setting the cursor in the main process as well. 761 // as someone might be setting the cursor in the main process as well.
765 *cursor = current_windowless_cursor_; 762 *cursor = current_windowless_cursor_;
766 } 763 }
767 #endif 764 #endif
768 765
769 return ret; 766 return ret;
770 } 767 }
771
772 } // namespace npapi
773 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/glue/plugins/webplugin_delegate_impl.cc ('k') | webkit/glue/plugins/webplugin_delegate_impl_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698