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/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 2582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2593 RenderFrameHostImpl* old_host, | 2593 RenderFrameHostImpl* old_host, |
2594 RenderFrameHostImpl* new_host) { | 2594 RenderFrameHostImpl* new_host) { |
2595 // Notify observers that we will navigate in this RenderFrame. | 2595 // Notify observers that we will navigate in this RenderFrame. |
2596 FOR_EACH_OBSERVER( | 2596 FOR_EACH_OBSERVER( |
2597 WebContentsObserver, | 2597 WebContentsObserver, |
2598 observers_, | 2598 observers_, |
2599 AboutToNavigateRenderFrame(old_host, new_host)); | 2599 AboutToNavigateRenderFrame(old_host, new_host)); |
2600 } | 2600 } |
2601 | 2601 |
2602 void WebContentsImpl::DidStartNavigationToPendingEntry( | 2602 void WebContentsImpl::DidStartNavigationToPendingEntry( |
2603 RenderFrameHostImpl* render_frame_host, | |
2604 const GURL& url, | 2603 const GURL& url, |
2605 NavigationController::ReloadType reload_type) { | 2604 NavigationController::ReloadType reload_type) { |
2606 // Notify observers about navigation. | 2605 // Notify observers about navigation. |
2607 FOR_EACH_OBSERVER( | 2606 FOR_EACH_OBSERVER( |
2608 WebContentsObserver, | 2607 WebContentsObserver, |
2609 observers_, | 2608 observers_, |
2610 DidStartNavigationToPendingEntry(url, reload_type)); | 2609 DidStartNavigationToPendingEntry(url, reload_type)); |
2611 } | 2610 } |
2612 | 2611 |
2613 void WebContentsImpl::RequestOpenURL(RenderFrameHostImpl* render_frame_host, | 2612 void WebContentsImpl::RequestOpenURL(RenderFrameHostImpl* render_frame_host, |
(...skipping 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4514 node->render_manager()->ResumeResponseDeferredAtStart(); | 4513 node->render_manager()->ResumeResponseDeferredAtStart(); |
4515 } | 4514 } |
4516 | 4515 |
4517 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4516 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
4518 force_disable_overscroll_content_ = force_disable; | 4517 force_disable_overscroll_content_ = force_disable; |
4519 if (view_) | 4518 if (view_) |
4520 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4519 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
4521 } | 4520 } |
4522 | 4521 |
4523 } // namespace content | 4522 } // namespace content |
OLD | NEW |