| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 bool WebContentsDelegate::ShouldCreateWebContents( | 115 bool WebContentsDelegate::ShouldCreateWebContents( |
| 116 WebContents* web_contents, | 116 WebContents* web_contents, |
| 117 int route_id, | 117 int route_id, |
| 118 WindowContainerType window_container_type, | 118 WindowContainerType window_container_type, |
| 119 const string16& frame_name, | 119 const string16& frame_name, |
| 120 const GURL& target_url) { | 120 const GURL& target_url) { |
| 121 return true; | 121 return true; |
| 122 } | 122 } |
| 123 | 123 |
| 124 JavaScriptDialogCreator* WebContentsDelegate::GetJavaScriptDialogCreator() { | 124 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager() { |
| 125 return NULL; | 125 return NULL; |
| 126 } | 126 } |
| 127 | 127 |
| 128 bool WebContentsDelegate::IsFullscreenForTabOrPending( | 128 bool WebContentsDelegate::IsFullscreenForTabOrPending( |
| 129 const WebContents* web_contents) const { | 129 const WebContents* web_contents) const { |
| 130 return false; | 130 return false; |
| 131 } | 131 } |
| 132 | 132 |
| 133 content::ColorChooser* WebContentsDelegate::OpenColorChooser( | 133 content::ColorChooser* WebContentsDelegate::OpenColorChooser( |
| 134 WebContents* web_contents, | 134 WebContents* web_contents, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 165 DCHECK(attached_contents_.find(web_contents) == attached_contents_.end()); | 165 DCHECK(attached_contents_.find(web_contents) == attached_contents_.end()); |
| 166 attached_contents_.insert(web_contents); | 166 attached_contents_.insert(web_contents); |
| 167 } | 167 } |
| 168 | 168 |
| 169 void WebContentsDelegate::Detach(WebContents* web_contents) { | 169 void WebContentsDelegate::Detach(WebContents* web_contents) { |
| 170 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); | 170 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); |
| 171 attached_contents_.erase(web_contents); | 171 attached_contents_.erase(web_contents); |
| 172 } | 172 } |
| 173 | 173 |
| 174 } // namespace content | 174 } // namespace content |
| OLD | NEW |