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_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 #if defined(OS_ANDROID) | 97 #if defined(OS_ANDROID) |
98 #include "content/browser/android/date_time_chooser_android.h" | 98 #include "content/browser/android/date_time_chooser_android.h" |
99 #include "content/browser/media/android/browser_media_player_manager.h" | 99 #include "content/browser/media/android/browser_media_player_manager.h" |
100 #include "content/browser/web_contents/web_contents_android.h" | 100 #include "content/browser/web_contents/web_contents_android.h" |
101 #include "content/public/browser/android/content_view_core.h" | 101 #include "content/public/browser/android/content_view_core.h" |
102 #endif | 102 #endif |
103 | 103 |
104 #if defined(OS_MACOSX) | 104 #if defined(OS_MACOSX) |
105 #include "base/mac/foundation_util.h" | 105 #include "base/mac/foundation_util.h" |
106 #include "ui/gl/io_surface_support_mac.h" | |
107 #endif | 106 #endif |
108 | 107 |
109 // Cross-Site Navigations | 108 // Cross-Site Navigations |
110 // | 109 // |
111 // If a WebContentsImpl is told to navigate to a different web site (as | 110 // If a WebContentsImpl is told to navigate to a different web site (as |
112 // determined by SiteInstance), it will replace its current RenderViewHost with | 111 // determined by SiteInstance), it will replace its current RenderViewHost with |
113 // a new RenderViewHost dedicated to the new SiteInstance. This works as | 112 // a new RenderViewHost dedicated to the new SiteInstance. This works as |
114 // follows: | 113 // follows: |
115 // | 114 // |
116 // - RVHM::Navigate determines whether the destination is cross-site, and if so, | 115 // - RVHM::Navigate determines whether the destination is cross-site, and if so, |
(...skipping 3930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4047 | 4046 |
4048 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { | 4047 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { |
4049 if (!delegate_) | 4048 if (!delegate_) |
4050 return; | 4049 return; |
4051 const gfx::Size new_size = GetPreferredSize(); | 4050 const gfx::Size new_size = GetPreferredSize(); |
4052 if (new_size != old_size) | 4051 if (new_size != old_size) |
4053 delegate_->UpdatePreferredSize(this, new_size); | 4052 delegate_->UpdatePreferredSize(this, new_size); |
4054 } | 4053 } |
4055 | 4054 |
4056 } // namespace content | 4055 } // namespace content |
OLD | NEW |