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

Unified Diff: chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc

Issue 10913243: extensions: Add ExtensionView interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: virtual dtor for cocoa and gtk ports Created 8 years, 3 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/ui/gtk/infobars/extension_infobar_gtk.cc
diff --git a/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc b/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc
index 1e8113fb276235ea3ec8dbdf4b2cc52311e46405..4e3cc62aa1882b877469a2beba8772791f4f541a 100644
--- a/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc
+++ b/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc
@@ -127,7 +127,7 @@ void ExtensionInfoBarGtk::BuildWidgets() {
gtk_box_pack_start(GTK_BOX(hbox_), alignment_, TRUE, TRUE, 0);
extensions::ExtensionHost* extension_host = delegate_->extension_host();
- view_ = extension_host->view();
+ view_ = extension_host->GetExtensionView();
if (gtk_widget_get_parent(view_->native_view())) {
gtk_widget_reparent(view_->native_view(), alignment_);
@@ -172,7 +172,7 @@ void ExtensionInfoBarGtk::OnSizeAllocate(GtkWidget* widget,
GtkAllocation* allocation) {
gfx::Size new_size(allocation->width, allocation->height);
- delegate_->extension_host()->view()->render_view_host()->GetView()
+ delegate_->extension_host()->GetExtensionView()->render_view_host()->GetView()
->SetSize(new_size);
}

Powered by Google App Engine
This is Rietveld 408576698