| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "apps/ui/web_contents_sizer.h" | 5 #include "apps/ui/web_contents_sizer.h" |
| 6 | 6 |
| 7 #include "content/public/browser/web_contents.h" | 7 #include "content/public/browser/web_contents.h" |
| 8 #include "content/public/browser/web_contents_view.h" | 8 #include "content/public/browser/web_contents_view.h" |
| 9 | 9 |
| 10 #if defined(USE_AURA) | 10 #if defined(USE_AURA) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 GtkWidget* widget = web_contents->GetView()->GetNativeView(); | 26 GtkWidget* widget = web_contents->GetView()->GetNativeView(); |
| 27 gtk_widget_set_size_request(widget, new_size.width(), new_size.height()); | 27 gtk_widget_set_size_request(widget, new_size.width(), new_size.height()); |
| 28 #elif defined(OS_ANDROID) | 28 #elif defined(OS_ANDROID) |
| 29 content::RenderWidgetHostView* view = web_contents->GetRenderWidgetHostView(); | 29 content::RenderWidgetHostView* view = web_contents->GetRenderWidgetHostView(); |
| 30 if (view) | 30 if (view) |
| 31 view->SetSize(new_size); | 31 view->SetSize(new_size); |
| 32 #endif | 32 #endif |
| 33 } | 33 } |
| 34 | 34 |
| 35 } // namespace apps | 35 } // namespace apps |
| OLD | NEW |