| 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 "content/public/browser/render_view_host.h" | 10 #include "content/public/browser/render_view_host.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 } | 56 } |
| 57 | 57 |
| 58 bool WebContentsDelegate::ShouldFocusLocationBarByDefault(WebContents* source) { | 58 bool WebContentsDelegate::ShouldFocusLocationBarByDefault(WebContents* source) { |
| 59 return false; | 59 return false; |
| 60 } | 60 } |
| 61 | 61 |
| 62 bool WebContentsDelegate::ShouldFocusPageAfterCrash() { | 62 bool WebContentsDelegate::ShouldFocusPageAfterCrash() { |
| 63 return true; | 63 return true; |
| 64 } | 64 } |
| 65 | 65 |
| 66 bool WebContentsDelegate::ShouldResumeRequestsForCreatedWindow() { |
| 67 return true; |
| 68 } |
| 69 |
| 66 bool WebContentsDelegate::TakeFocus(WebContents* source, bool reverse) { | 70 bool WebContentsDelegate::TakeFocus(WebContents* source, bool reverse) { |
| 67 return false; | 71 return false; |
| 68 } | 72 } |
| 69 | 73 |
| 70 void WebContentsDelegate::CanDownload( | 74 void WebContentsDelegate::CanDownload( |
| 71 RenderViewHost* render_view_host, | 75 RenderViewHost* render_view_host, |
| 72 const GURL& url, | 76 const GURL& url, |
| 73 const std::string& request_method, | 77 const std::string& request_method, |
| 74 const base::Callback<void(bool)>& callback) { | 78 const base::Callback<void(bool)>& callback) { |
| 75 callback.Run(true); | 79 callback.Run(true); |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 220 |
| 217 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { | 221 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { |
| 218 return false; | 222 return false; |
| 219 } | 223 } |
| 220 | 224 |
| 221 bool WebContentsDelegate::SaveFrame(const GURL& url, const Referrer& referrer) { | 225 bool WebContentsDelegate::SaveFrame(const GURL& url, const Referrer& referrer) { |
| 222 return false; | 226 return false; |
| 223 } | 227 } |
| 224 | 228 |
| 225 } // namespace content | 229 } // namespace content |
| OLD | NEW |