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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_gtk.h

Issue 146078: linux: OOP windowed plugins (Closed)
Patch Set: new version Created 11 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/render_widget_host_view_gtk.h
diff --git a/chrome/browser/renderer_host/render_widget_host_view_gtk.h b/chrome/browser/renderer_host/render_widget_host_view_gtk.h
index 3df3006b3177628a574d552558cac432545b37fe..dd8e58da799f72bfc3a684c55c8d60611a3f0013 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_gtk.h
+++ b/chrome/browser/renderer_host/render_widget_host_view_gtk.h
@@ -12,13 +12,16 @@
#include "chrome/browser/renderer_host/render_widget_host_view.h"
#include "chrome/common/owned_widget_gtk.h"
#include "chrome/common/render_messages.h"
+#include "webkit/glue/plugins/gtk_plugin_container_host.h"
#include "webkit/glue/webcursor.h"
class RenderWidgetHost;
+class GtkPluginContainerHost;
typedef struct _GtkClipboard GtkClipboard;
typedef struct _GtkSelectionData GtkSelectionData;
typedef struct _GtkIMContext GtkIMContext;
+typedef struct _GtkSocket GtkSocket;
// -----------------------------------------------------------------------------
// See comments in render_widget_host_view.h about this class and its members.
@@ -59,6 +62,8 @@ class RenderWidgetHostViewGtk : public RenderWidgetHostView {
virtual void PasteFromSelectionClipboard();
virtual void ShowingContextMenu(bool showing);
virtual BackingStore* AllocBackingStore(const gfx::Size& size);
+ virtual gfx::PluginWindowHandle CreatePluginContainer();
+ virtual void DestroyPluginContainer(gfx::PluginWindowHandle container);
gfx::NativeView native_view() const { return view_.get(); }
@@ -137,6 +142,9 @@ class RenderWidgetHostViewGtk : public RenderWidgetHostView {
// This state is used when GtkIMContext signal handlers create Char events
// because they don't use the GdkEventKey objects and cannot get the state.
int im_modifier_state_;
+
+ // Helper class that lets us allocate plugin containers and move them.
+ GtkPluginContainerHost plugin_container_host_;
};
#endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view.h ('k') | chrome/browser/renderer_host/render_widget_host_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698