OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |