OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/child/npapi/webplugin_delegate_impl.h" | 5 #include "content/child/npapi/webplugin_delegate_impl.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 #include <gdk/gdkx.h> | 8 #include <gdk/gdkx.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/metrics/stats_counters.h" | 13 #include "base/metrics/stats_counters.h" |
14 #include "content/child/npapi/plugin_instance.h" | 14 #include "content/child/npapi/plugin_instance.h" |
15 #include "content/child/npapi/webplugin.h" | 15 #include "content/child/npapi/webplugin.h" |
16 #include "content/public/common/content_constants.h" | 16 #include "content/public/common/content_constants.h" |
17 #include "skia/ext/platform_canvas.h" | 17 #include "skia/ext/platform_canvas.h" |
18 #include "third_party/WebKit/public/web/WebInputEvent.h" | 18 #include "third_party/WebKit/public/web/WebInputEvent.h" |
19 #include "ui/gfx/blit.h" | 19 #include "ui/gfx/blit.h" |
20 #include "ui/gfx/gtk_compat.h" | 20 #include "ui/gfx/gtk_compat.h" |
21 #include "webkit/common/cursors/webcursor.h" | 21 #include "webkit/common/cursors/webcursor.h" |
22 | 22 |
23 #include "third_party/npapi/bindings/npapi_x11.h" | 23 #include "third_party/npapi/bindings/npapi_x11.h" |
24 | 24 |
25 using WebKit::WebKeyboardEvent; | 25 using blink::WebKeyboardEvent; |
26 using WebKit::WebInputEvent; | 26 using blink::WebInputEvent; |
27 using WebKit::WebMouseEvent; | 27 using blink::WebMouseEvent; |
28 | 28 |
29 namespace content { | 29 namespace content { |
30 | 30 |
31 WebPluginDelegateImpl::WebPluginDelegateImpl( | 31 WebPluginDelegateImpl::WebPluginDelegateImpl( |
32 WebPlugin* plugin, | 32 WebPlugin* plugin, |
33 PluginInstance* instance) | 33 PluginInstance* instance) |
34 : windowed_handle_(0), | 34 : windowed_handle_(0), |
35 windowed_did_set_window_(false), | 35 windowed_did_set_window_(false), |
36 windowless_(false), | 36 windowless_(false), |
37 plugin_(plugin), | 37 plugin_(plugin), |
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 // it. There is a nasty race condition here with the multiprocess browser | 742 // it. There is a nasty race condition here with the multiprocess browser |
743 // as someone might be setting the cursor in the main process as well. | 743 // as someone might be setting the cursor in the main process as well. |
744 *cursor = current_windowless_cursor_; | 744 *cursor = current_windowless_cursor_; |
745 } | 745 } |
746 #endif | 746 #endif |
747 | 747 |
748 return ret; | 748 return ret; |
749 } | 749 } |
750 | 750 |
751 } // namespace content | 751 } // namespace content |
OLD | NEW |