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

Side by Side Diff: webkit/glue/plugins/gtk_plugin_container_manager.h

Issue 3814013: FBTF: Monster ctor patch after changing heuristics in clang plugin. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: More add file fail Created 10 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef WEBKIT_GLUE_PLUGINS_GTK_PLUGIN_CONTAINER_MANAGER_H_ 5 #ifndef WEBKIT_GLUE_PLUGINS_GTK_PLUGIN_CONTAINER_MANAGER_H_
6 #define WEBKIT_GLUE_PLUGINS_GTK_PLUGIN_CONTAINER_MANAGER_H_ 6 #define WEBKIT_GLUE_PLUGINS_GTK_PLUGIN_CONTAINER_MANAGER_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <map> 9 #include <map>
10 10
11 #include "gfx/native_widget_types.h" 11 #include "gfx/native_widget_types.h"
12 12
13 typedef struct _GtkWidget GtkWidget; 13 typedef struct _GtkWidget GtkWidget;
14 14
15 namespace webkit_glue { 15 namespace webkit_glue {
16 struct WebPluginGeometry; 16 struct WebPluginGeometry;
17 } 17 }
18 18
19 // Helper class that creates and manages plugin containers (GtkSocket). 19 // Helper class that creates and manages plugin containers (GtkSocket).
20 class GtkPluginContainerManager { 20 class GtkPluginContainerManager {
21 public: 21 public:
22 GtkPluginContainerManager() : host_widget_(NULL) { } 22 GtkPluginContainerManager();
23 ~GtkPluginContainerManager();
23 24
24 // Sets the widget that will host the plugin containers. Must be a GtkFixed. 25 // Sets the widget that will host the plugin containers. Must be a GtkFixed.
25 void set_host_widget(GtkWidget *widget) { host_widget_ = widget; } 26 void set_host_widget(GtkWidget *widget) { host_widget_ = widget; }
26 27
27 // Creates a new plugin container, for a given plugin XID. 28 // Creates a new plugin container, for a given plugin XID.
28 GtkWidget* CreatePluginContainer(gfx::PluginWindowHandle id); 29 GtkWidget* CreatePluginContainer(gfx::PluginWindowHandle id);
29 30
30 // Destroys a plugin container, given the plugin XID. 31 // Destroys a plugin container, given the plugin XID.
31 void DestroyPluginContainer(gfx::PluginWindowHandle id); 32 void DestroyPluginContainer(gfx::PluginWindowHandle id);
32 33
(...skipping 14 matching lines...) Expand all
47 48
48 // Parent of the plugin containers. 49 // Parent of the plugin containers.
49 GtkWidget* host_widget_; 50 GtkWidget* host_widget_;
50 51
51 // A map that associates plugin containers to the plugin XID. 52 // A map that associates plugin containers to the plugin XID.
52 typedef std::map<gfx::PluginWindowHandle, GtkWidget*> PluginWindowToWidgetMap; 53 typedef std::map<gfx::PluginWindowHandle, GtkWidget*> PluginWindowToWidgetMap;
53 PluginWindowToWidgetMap plugin_window_to_widget_map_; 54 PluginWindowToWidgetMap plugin_window_to_widget_map_;
54 }; 55 };
55 56
56 #endif // WEBKIT_GLUE_PLUGINS_GTK_PLUGIN_CONTAINER_MANAGER_H_ 57 #endif // WEBKIT_GLUE_PLUGINS_GTK_PLUGIN_CONTAINER_MANAGER_H_
OLDNEW
« no previous file with comments | « webkit/glue/media/media_resource_loader_bridge_factory.cc ('k') | webkit/glue/plugins/gtk_plugin_container_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698