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

Side by Side Diff: webkit/plugins/npapi/gtk_plugin_container.h

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) 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_H_ 5 #ifndef WEBKIT_PLUGINS_NPAPI_GTK_PLUGIN_CONTAINER_H_
6 #define WEBKIT_GLUE_PLUGINS_GTK_PLUGIN_CONTAINER_H_ 6 #define WEBKIT_PLUGINS_NPAPI_GTK_PLUGIN_CONTAINER_H_
7 7
8 // Windowed plugins are embedded via XEmbed, which is implemented by 8 // Windowed plugins are embedded via XEmbed, which is implemented by
9 // GtkPlug/GtkSocket. But we want to control sizing and positioning 9 // GtkPlug/GtkSocket. But we want to control sizing and positioning
10 // directly, so we need a subclass of GtkSocket that sidesteps the 10 // directly, so we need a subclass of GtkSocket that sidesteps the
11 // size_request handler. 11 // size_request handler.
12 // 12 //
13 // The custom size_request handler just reports the size set by 13 // The custom size_request handler just reports the size set by
14 // gtk_plugin_container_set_size. 14 // gtk_plugin_container_set_size.
15 15
16 typedef struct _GtkWidget GtkWidget; 16 typedef struct _GtkWidget GtkWidget;
17 17
18 namespace webkit {
19 namespace npapi {
20
18 // Return a new GtkPluginContainer. 21 // Return a new GtkPluginContainer.
19 // Intentionally GTK-style here since we're creating a custom GTK widget. 22 // Intentionally GTK-style here since we're creating a custom GTK widget.
20 // This is a GtkSocket subclass; see its documentation for available methods. 23 // This is a GtkSocket subclass; see its documentation for available methods.
21 GtkWidget* gtk_plugin_container_new(); 24 GtkWidget* gtk_plugin_container_new();
22 25
23 // Sets the size of the GtkPluginContainer. 26 // Sets the size of the GtkPluginContainer.
24 void gtk_plugin_container_set_size(GtkWidget *widget, int width, int height); 27 void gtk_plugin_container_set_size(GtkWidget *widget, int width, int height);
25 28
26 #endif // WEBKIT_GLUE_PLUGINS_GTK_PLUGIN_CONTAINER_H_ 29 } // namespace npapi
30 } // namespace webkit
31
32 #endif // WEBKIT_PLUGINS_NPAPI_GTK_PLUGIN_CONTAINER_H_
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/default_plugin_shared.h ('k') | webkit/plugins/npapi/gtk_plugin_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698