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 2812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2823 | 2823 |
2824 // Resume blocked requests for both the RenderViewHost and RenderFrameHost. | 2824 // Resume blocked requests for both the RenderViewHost and RenderFrameHost. |
2825 // TODO(brettw): It seems bogus to reach into here and initialize the host. | 2825 // TODO(brettw): It seems bogus to reach into here and initialize the host. |
2826 if (is_resume_pending_) { | 2826 if (is_resume_pending_) { |
2827 is_resume_pending_ = false; | 2827 is_resume_pending_ = false; |
2828 GetRenderViewHost()->Init(); | 2828 GetRenderViewHost()->Init(); |
2829 GetMainFrame()->Init(); | 2829 GetMainFrame()->Init(); |
2830 } | 2830 } |
2831 } | 2831 } |
2832 | 2832 |
| 2833 base::debug::StackTrace WebContentsImpl::stack_trace() { |
| 2834 return stack_trace_; |
| 2835 } |
| 2836 |
2833 bool WebContentsImpl::FocusLocationBarByDefault() { | 2837 bool WebContentsImpl::FocusLocationBarByDefault() { |
2834 NavigationEntry* entry = controller_.GetVisibleEntry(); | 2838 NavigationEntry* entry = controller_.GetVisibleEntry(); |
2835 if (entry && entry->GetURL() == GURL(url::kAboutBlankURL)) | 2839 if (entry && entry->GetURL() == GURL(url::kAboutBlankURL)) |
2836 return true; | 2840 return true; |
2837 return delegate_ && delegate_->ShouldFocusLocationBarByDefault(this); | 2841 return delegate_ && delegate_->ShouldFocusLocationBarByDefault(this); |
2838 } | 2842 } |
2839 | 2843 |
2840 void WebContentsImpl::SetFocusToLocationBar(bool select_all) { | 2844 void WebContentsImpl::SetFocusToLocationBar(bool select_all) { |
2841 if (delegate_) | 2845 if (delegate_) |
2842 delegate_->SetFocusToLocationBar(select_all); | 2846 delegate_->SetFocusToLocationBar(select_all); |
(...skipping 1915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4758 return NULL; | 4762 return NULL; |
4759 } | 4763 } |
4760 | 4764 |
4761 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4765 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
4762 force_disable_overscroll_content_ = force_disable; | 4766 force_disable_overscroll_content_ = force_disable; |
4763 if (view_) | 4767 if (view_) |
4764 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4768 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
4765 } | 4769 } |
4766 | 4770 |
4767 } // namespace content | 4771 } // namespace content |
OLD | NEW |