OLD | NEW |
1 // Copyright (c) 2010 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/plugins/npapi/gtk_plugin_container_manager.h" | 5 #include "webkit/plugins/npapi/gtk_plugin_container_manager.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "gfx/gtk_util.h" | 10 #include "ui/gfx/gtk_util.h" |
11 #include "webkit/plugins/npapi/gtk_plugin_container.h" | 11 #include "webkit/plugins/npapi/gtk_plugin_container.h" |
12 #include "webkit/plugins/npapi/webplugin.h" | 12 #include "webkit/plugins/npapi/webplugin.h" |
13 | 13 |
14 namespace webkit { | 14 namespace webkit { |
15 namespace npapi { | 15 namespace npapi { |
16 | 16 |
17 GtkPluginContainerManager::GtkPluginContainerManager() : host_widget_(NULL) {} | 17 GtkPluginContainerManager::GtkPluginContainerManager() : host_widget_(NULL) {} |
18 | 18 |
19 GtkPluginContainerManager::~GtkPluginContainerManager() {} | 19 GtkPluginContainerManager::~GtkPluginContainerManager() {} |
20 | 20 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 GtkPluginContainerManager* plugin_container_manager = | 152 GtkPluginContainerManager* plugin_container_manager = |
153 static_cast<GtkPluginContainerManager*>(user_data); | 153 static_cast<GtkPluginContainerManager*>(user_data); |
154 | 154 |
155 gfx::PluginWindowHandle id = plugin_container_manager->MapWidgetToID(widget); | 155 gfx::PluginWindowHandle id = plugin_container_manager->MapWidgetToID(widget); |
156 if (id) | 156 if (id) |
157 gtk_socket_add_id(GTK_SOCKET(widget), id); | 157 gtk_socket_add_id(GTK_SOCKET(widget), id); |
158 } | 158 } |
159 | 159 |
160 } // namespace npapi | 160 } // namespace npapi |
161 } // namespace webkit | 161 } // namespace webkit |
OLD | NEW |