| 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 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1189 NotificationService::AllBrowserContextsAndSources()); | 1189 NotificationService::AllBrowserContextsAndSources()); |
| 1190 | 1190 |
| 1191 screen_orientation_dispatcher_host_.reset( | 1191 screen_orientation_dispatcher_host_.reset( |
| 1192 new ScreenOrientationDispatcherHostImpl(this)); | 1192 new ScreenOrientationDispatcherHostImpl(this)); |
| 1193 | 1193 |
| 1194 manifest_manager_host_.reset(new ManifestManagerHost(this)); | 1194 manifest_manager_host_.reset(new ManifestManagerHost(this)); |
| 1195 | 1195 |
| 1196 #if defined(OS_ANDROID) | 1196 #if defined(OS_ANDROID) |
| 1197 date_time_chooser_.reset(new DateTimeChooserAndroid()); | 1197 date_time_chooser_.reset(new DateTimeChooserAndroid()); |
| 1198 #endif | 1198 #endif |
| 1199 |
| 1200 // BrowserPluginGuest::Init needs to be called after this WebContents has |
| 1201 // a RenderWidgetHostViewGuest. That is, |view_->CreateView| above. |
| 1202 if (browser_plugin_guest_) |
| 1203 browser_plugin_guest_->Init(); |
| 1199 } | 1204 } |
| 1200 | 1205 |
| 1201 void WebContentsImpl::OnWebContentsDestroyed(WebContentsImpl* web_contents) { | 1206 void WebContentsImpl::OnWebContentsDestroyed(WebContentsImpl* web_contents) { |
| 1202 RemoveDestructionObserver(web_contents); | 1207 RemoveDestructionObserver(web_contents); |
| 1203 | 1208 |
| 1204 // Clear the opener if it has been closed. | 1209 // Clear the opener if it has been closed. |
| 1205 if (web_contents == opener_) { | 1210 if (web_contents == opener_) { |
| 1206 opener_ = NULL; | 1211 opener_ = NULL; |
| 1207 return; | 1212 return; |
| 1208 } | 1213 } |
| (...skipping 3147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4356 node->render_manager()->ResumeResponseDeferredAtStart(); | 4361 node->render_manager()->ResumeResponseDeferredAtStart(); |
| 4357 } | 4362 } |
| 4358 | 4363 |
| 4359 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4364 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
| 4360 force_disable_overscroll_content_ = force_disable; | 4365 force_disable_overscroll_content_ = force_disable; |
| 4361 if (view_) | 4366 if (view_) |
| 4362 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4367 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
| 4363 } | 4368 } |
| 4364 | 4369 |
| 4365 } // namespace content | 4370 } // namespace content |
| OLD | NEW |