OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/web_contents/web_contents_view_gtk.h" | 5 #include "content/browser/web_contents/web_contents_view_gtk.h" |
6 | 6 |
7 #include <gdk/gdk.h> | 7 #include <gdk/gdk.h> |
8 #include <gdk/gdkkeysyms.h> | 8 #include <gdk/gdkkeysyms.h> |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
11 #include <algorithm> | 11 #include <algorithm> |
12 | 12 |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "content/browser/renderer_host/render_view_host_factory.h" | 16 #include "content/browser/renderer_host/render_view_host_factory.h" |
17 #include "content/browser/renderer_host/render_view_host_impl.h" | 17 #include "content/browser/renderer_host/render_view_host_impl.h" |
18 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" | 18 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" |
19 #include "content/browser/web_contents/interstitial_page_impl.h" | 19 #include "content/browser/web_contents/interstitial_page_impl.h" |
20 #include "content/browser/web_contents/web_contents_impl.h" | 20 #include "content/browser/web_contents/web_contents_impl.h" |
21 #include "content/browser/web_contents/web_drag_dest_gtk.h" | 21 #include "content/browser/web_contents/web_drag_dest_gtk.h" |
22 #include "content/browser/web_contents/web_drag_source_gtk.h" | 22 #include "content/browser/web_contents/web_drag_source_gtk.h" |
23 #include "content/public/browser/web_contents_delegate.h" | 23 #include "content/public/browser/web_contents_delegate.h" |
24 #include "content/public/browser/web_contents_view_delegate.h" | 24 #include "content/public/browser/web_contents_view_delegate.h" |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 // We manually tell our RWHV to resize the renderer content. This avoids | 411 // We manually tell our RWHV to resize the renderer content. This avoids |
412 // spurious resizes from GTK+. | 412 // spurious resizes from GTK+. |
413 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView(); | 413 RenderWidgetHostView* rwhv = web_contents_->GetRenderWidgetHostView(); |
414 if (rwhv) | 414 if (rwhv) |
415 rwhv->SetSize(size); | 415 rwhv->SetSize(size); |
416 if (web_contents_->GetInterstitialPage()) | 416 if (web_contents_->GetInterstitialPage()) |
417 web_contents_->GetInterstitialPage()->SetSize(size); | 417 web_contents_->GetInterstitialPage()->SetSize(size); |
418 } | 418 } |
419 | 419 |
420 } // namespace content | 420 } // namespace content |
OLD | NEW |