| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 bool WebContentsDelegate::TakeFocus(WebContents* source, bool reverse) { | 66 bool WebContentsDelegate::TakeFocus(WebContents* source, bool reverse) { |
| 67 return false; | 67 return false; |
| 68 } | 68 } |
| 69 | 69 |
| 70 int WebContentsDelegate::GetExtraRenderViewHeight() const { | 70 int WebContentsDelegate::GetExtraRenderViewHeight() const { |
| 71 return 0; | 71 return 0; |
| 72 } | 72 } |
| 73 | 73 |
| 74 void WebContentsDelegate::CanDownload( | 74 void WebContentsDelegate::CanDownload( |
| 75 RenderViewHost* render_view_host, | 75 RenderViewHost* render_view_host, |
| 76 int request_id, | 76 const GURL& url, |
| 77 const std::string& request_method, | 77 const std::string& request_method, |
| 78 const base::Callback<void(bool)>& callback) { | 78 const base::Callback<void(bool)>& callback) { |
| 79 callback.Run(true); | 79 callback.Run(true); |
| 80 } | 80 } |
| 81 | 81 |
| 82 bool WebContentsDelegate::HandleContextMenu( | 82 bool WebContentsDelegate::HandleContextMenu( |
| 83 const content::ContextMenuParams& params) { | 83 const content::ContextMenuParams& params) { |
| 84 return false; | 84 return false; |
| 85 } | 85 } |
| 86 | 86 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( | 198 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( |
| 199 WebContents* web_contents) const { | 199 WebContents* web_contents) const { |
| 200 return gfx::Size(); | 200 return gfx::Size(); |
| 201 } | 201 } |
| 202 | 202 |
| 203 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { | 203 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { |
| 204 return false; | 204 return false; |
| 205 } | 205 } |
| 206 | 206 |
| 207 } // namespace content | 207 } // namespace content |
| OLD | NEW |