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

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

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 #include "webkit/glue/plugins/gtk_plugin_container.h" 5 #include "webkit/plugins/npapi/gtk_plugin_container.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
11 namespace { 11 namespace {
12 12
13 // NOTE: This class doesn't have constructors/destructors, it is created 13 // NOTE: This class doesn't have constructors/destructors, it is created
14 // through GLib's object management. 14 // through GLib's object management.
15 class GtkPluginContainer : public GtkSocket { 15 class GtkPluginContainer : public GtkSocket {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // Create a new instance of our GTK widget object. 76 // Create a new instance of our GTK widget object.
77 GtkWidget* gtk_plugin_container_new() { 77 GtkWidget* gtk_plugin_container_new() {
78 return GTK_WIDGET(g_object_new(GtkPluginContainer::GetType(), NULL)); 78 return GTK_WIDGET(g_object_new(GtkPluginContainer::GetType(), NULL));
79 } 79 }
80 80
81 void gtk_plugin_container_set_size(GtkWidget *widget, int width, int height) { 81 void gtk_plugin_container_set_size(GtkWidget *widget, int width, int height) {
82 GtkPluginContainer::CastChecked(widget)->set_size(width, height); 82 GtkPluginContainer::CastChecked(widget)->set_size(width, height);
83 // Signal the parent that the size request has changed. 83 // Signal the parent that the size request has changed.
84 gtk_widget_queue_resize_no_redraw(widget); 84 gtk_widget_queue_resize_no_redraw(widget);
85 } 85 }
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/gtk_plugin_container.h ('k') | webkit/plugins/npapi/gtk_plugin_container_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698