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

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

Issue 6012002: Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi and put... (Closed) Base URL: svn://chrome-svn/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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/plugins/npapi/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"
30 #include "webkit/glue/webkit_glue.h" 23 #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
39 WebPluginDelegateImpl::WebPluginDelegateImpl( 42 WebPluginDelegateImpl::WebPluginDelegateImpl(
40 gfx::PluginWindowHandle containing_view, 43 gfx::PluginWindowHandle containing_view,
41 NPAPI::PluginInstance *instance) 44 PluginInstance *instance)
42 : windowed_handle_(0), 45 : windowed_handle_(0),
43 windowed_did_set_window_(false), 46 windowed_did_set_window_(false),
44 windowless_(false), 47 windowless_(false),
45 plugin_(NULL), 48 plugin_(NULL),
46 instance_(instance), 49 instance_(instance),
47 windowless_shm_pixmap_(None), 50 windowless_shm_pixmap_(None),
48 pixmap_(NULL), 51 pixmap_(NULL),
49 first_event_time_(-1.0), 52 first_event_time_(-1.0),
50 plug_(NULL), 53 plug_(NULL),
51 socket_(NULL), 54 socket_(NULL),
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 if (event->event == WM_MOUSEMOVE) { 761 if (event->event == WM_MOUSEMOVE) {
759 // Snag a reference to the current cursor ASAP in case the plugin modified 762 // Snag a reference to the current cursor ASAP in case the plugin modified
760 // it. There is a nasty race condition here with the multiprocess browser 763 // it. There is a nasty race condition here with the multiprocess browser
761 // as someone might be setting the cursor in the main process as well. 764 // as someone might be setting the cursor in the main process as well.
762 *cursor = current_windowless_cursor_; 765 *cursor = current_windowless_cursor_;
763 } 766 }
764 #endif 767 #endif
765 768
766 return ret; 769 return ret;
767 } 770 }
771
772 } // namespace npapi
773 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/webplugin_delegate_impl.cc ('k') | webkit/plugins/npapi/webplugin_delegate_impl_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698