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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager() { | 138 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager() { |
139 return NULL; | 139 return NULL; |
140 } | 140 } |
141 | 141 |
142 bool WebContentsDelegate::IsFullscreenForTabOrPending( | 142 bool WebContentsDelegate::IsFullscreenForTabOrPending( |
143 const WebContents* web_contents) const { | 143 const WebContents* web_contents) const { |
144 return false; | 144 return false; |
145 } | 145 } |
146 | 146 |
147 content::ColorChooser* WebContentsDelegate::OpenColorChooser( | 147 content::ColorChooser* WebContentsDelegate::OpenColorChooser( |
148 WebContents* web_contents, SkColor color) { | 148 WebContents* web_contents, |
| 149 SkColor color, |
| 150 const std::vector<ColorSuggestion>& suggestions) { |
149 return NULL; | 151 return NULL; |
150 } | 152 } |
151 | 153 |
152 bool WebContentsDelegate::RequestPpapiBrokerPermission( | 154 bool WebContentsDelegate::RequestPpapiBrokerPermission( |
153 WebContents* web_contents, | 155 WebContents* web_contents, |
154 const GURL& url, | 156 const GURL& url, |
155 const base::FilePath& plugin_path, | 157 const base::FilePath& plugin_path, |
156 const base::Callback<void(bool)>& callback) { | 158 const base::Callback<void(bool)>& callback) { |
157 return false; | 159 return false; |
158 } | 160 } |
(...skipping 10 matching lines...) Expand all Loading... |
169 DCHECK(attached_contents_.find(web_contents) == attached_contents_.end()); | 171 DCHECK(attached_contents_.find(web_contents) == attached_contents_.end()); |
170 attached_contents_.insert(web_contents); | 172 attached_contents_.insert(web_contents); |
171 } | 173 } |
172 | 174 |
173 void WebContentsDelegate::Detach(WebContents* web_contents) { | 175 void WebContentsDelegate::Detach(WebContents* web_contents) { |
174 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); | 176 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); |
175 attached_contents_.erase(web_contents); | 177 attached_contents_.erase(web_contents); |
176 } | 178 } |
177 | 179 |
178 } // namespace content | 180 } // namespace content |
OLD | NEW |