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

Unified Diff: chrome/browser/ui/sad_tab_helper.cc

Issue 9705053: Remove tab_contents_view_gtk.h include from chrome. I tried to find a way to not have to expose the… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/sad_tab_helper.cc
===================================================================
--- chrome/browser/ui/sad_tab_helper.cc (revision 126737)
+++ chrome/browser/ui/sad_tab_helper.cc (working copy)
@@ -19,7 +19,7 @@
#include <gtk/gtk.h>
-#include "content/browser/tab_contents/tab_contents_view_gtk.h"
+#include "chrome/browser/tab_contents/chrome_web_contents_view_delegate_gtk.h"
#include "chrome/browser/ui/gtk/sad_tab_gtk.h"
#endif
@@ -58,11 +58,11 @@
#elif defined(TOOLKIT_VIEWS)
sad_tab_->Close();
#elif defined(TOOLKIT_GTK)
- content::TabContentsViewGtk* view =
- static_cast<content::TabContentsViewGtk*>(
- web_contents()->GetView());
+ GtkWidget* expanded_container =
+ ChromeWebContentsViewDelegateGtk::GetFor(web_contents())->
+ expanded_container();
gtk_container_remove(
- GTK_CONTAINER(view->expanded_container()), sad_tab_->widget());
+ GTK_CONTAINER(expanded_container), sad_tab_->widget());
#else
#error Unknown platform
#endif
@@ -106,10 +106,10 @@
status == base::TERMINATION_STATUS_PROCESS_WAS_KILLED
? SadTabGtk::KILLED
: SadTabGtk::CRASHED));
- content::TabContentsViewGtk* view =
- static_cast<content::TabContentsViewGtk*>(web_contents()->GetView());
- gtk_container_add(
- GTK_CONTAINER(view->expanded_container()), sad_tab_->widget());
+ GtkWidget* expanded_container =
+ ChromeWebContentsViewDelegateGtk::GetFor(web_contents())->
+ expanded_container();
+ gtk_container_add(GTK_CONTAINER(expanded_container), sad_tab_->widget());
gtk_widget_show(sad_tab_->widget());
#else
#error Unknown platform
« no previous file with comments | « chrome/browser/ui/gtk/constrained_window_gtk.cc ('k') | content/browser/tab_contents/tab_contents_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698