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