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

Unified Diff: apps/ui/web_contents_sizer.cc

Issue 232773008: More removal of GTK code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove base/ so I don't need another stamp. Created 6 years, 8 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
« no previous file with comments | « apps/app_window_browsertest.cc ('k') | chrome/browser/background/background_contents_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/ui/web_contents_sizer.cc
diff --git a/apps/ui/web_contents_sizer.cc b/apps/ui/web_contents_sizer.cc
index e19f2cfa24f348e0b4462a34b801961950c67eb9..041187f8ff3f46ea9545645420d5f35a29f41e9a 100644
--- a/apps/ui/web_contents_sizer.cc
+++ b/apps/ui/web_contents_sizer.cc
@@ -9,8 +9,6 @@
#if defined(USE_AURA)
#include "ui/aura/window.h"
-#elif defined(TOOLKIT_GTK)
-#include <gtk/gtk.h>
#elif defined(OS_ANDROID)
#include "content/public/browser/render_widget_host_view.h"
#endif
@@ -22,9 +20,6 @@ void ResizeWebContents(content::WebContents* web_contents,
#if defined(USE_AURA)
aura::Window* window = web_contents->GetView()->GetNativeView();
window->SetBounds(gfx::Rect(window->bounds().origin(), new_size));
-#elif defined(TOOLKIT_GTK)
- GtkWidget* widget = web_contents->GetView()->GetNativeView();
- gtk_widget_set_size_request(widget, new_size.width(), new_size.height());
#elif defined(OS_ANDROID)
content::RenderWidgetHostView* view = web_contents->GetRenderWidgetHostView();
if (view)
« no previous file with comments | « apps/app_window_browsertest.cc ('k') | chrome/browser/background/background_contents_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698