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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 void WebContentsDelegate::Detach(WebContents* web_contents) { | 189 void WebContentsDelegate::Detach(WebContents* web_contents) { |
190 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); | 190 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); |
191 attached_contents_.erase(web_contents); | 191 attached_contents_.erase(web_contents); |
192 } | 192 } |
193 | 193 |
194 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( | 194 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( |
195 const WebContents* web_contents) const { | 195 const WebContents* web_contents) const { |
196 return gfx::Size(); | 196 return gfx::Size(); |
197 } | 197 } |
198 | 198 |
| 199 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { |
| 200 return false; |
| 201 } |
| 202 |
199 } // namespace content | 203 } // namespace content |
OLD | NEW |