| 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/public/browser/web_contents_delegate.h" | 5 #include "content/public/browser/web_contents_delegate.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 #include "content/public/browser/render_view_host.h" | 11 #include "content/public/browser/render_view_host.h" |
| 12 #include "content/public/browser/security_style_explanations.h" | 12 #include "content/public/browser/security_style_explanations.h" |
| 13 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
| 14 #include "content/public/common/bindings_policy.h" | 14 #include "content/public/common/bindings_policy.h" |
| 15 #include "content/public/common/security_style.h" | 15 #include "content/public/common/security_style.h" |
| 16 #include "content/public/common/url_constants.h" | 16 #include "content/public/common/url_constants.h" |
| 17 #include "net/cert/x509_certificate.h" | 17 #include "net/cert/x509_certificate.h" |
| 18 #include "ui/gfx/geometry/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 | 21 |
| 22 WebContentsDelegate::WebContentsDelegate() { | 22 WebContentsDelegate::WebContentsDelegate() { |
| 23 } | 23 } |
| 24 | 24 |
| 25 WebContents* WebContentsDelegate::OpenURLFromTab(WebContents* source, | 25 WebContents* WebContentsDelegate::OpenURLFromTab(WebContents* source, |
| 26 const OpenURLParams& params) { | 26 const OpenURLParams& params) { |
| 27 return nullptr; | 27 return nullptr; |
| 28 } | 28 } |
| 29 | 29 |
| 30 bool WebContentsDelegate::ShouldTransferNavigation() { | 30 bool WebContentsDelegate::ShouldTransferNavigation( |
| 31 bool is_main_frame_navigation) { |
| 31 return true; | 32 return true; |
| 32 } | 33 } |
| 33 | 34 |
| 34 bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const { | 35 bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const { |
| 35 return false; | 36 return false; |
| 36 } | 37 } |
| 37 | 38 |
| 38 bool WebContentsDelegate::CanOverscrollContent() const { return false; } | 39 bool WebContentsDelegate::CanOverscrollContent() const { return false; } |
| 39 | 40 |
| 40 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const { | 41 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const { |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 void WebContentsDelegate::ShowCertificateViewerInDevTools( | 259 void WebContentsDelegate::ShowCertificateViewerInDevTools( |
| 259 WebContents* web_contents, | 260 WebContents* web_contents, |
| 260 scoped_refptr<net::X509Certificate> certificate) { | 261 scoped_refptr<net::X509Certificate> certificate) { |
| 261 } | 262 } |
| 262 | 263 |
| 263 void WebContentsDelegate::RequestAppBannerFromDevTools( | 264 void WebContentsDelegate::RequestAppBannerFromDevTools( |
| 264 content::WebContents* web_contents) { | 265 content::WebContents* web_contents) { |
| 265 } | 266 } |
| 266 | 267 |
| 267 } // namespace content | 268 } // namespace content |
| OLD | NEW |