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/browser/bluetooth/first_device_bluetooth_chooser.h" |
10 #include "content/public/browser/render_view_host.h" | 11 #include "content/public/browser/render_view_host.h" |
11 #include "content/public/browser/security_style_explanations.h" | 12 #include "content/public/browser/security_style_explanations.h" |
12 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
13 #include "content/public/common/bindings_policy.h" | 14 #include "content/public/common/bindings_policy.h" |
14 #include "content/public/common/security_style.h" | 15 #include "content/public/common/security_style.h" |
15 #include "content/public/common/url_constants.h" | 16 #include "content/public/common/url_constants.h" |
16 #include "ui/gfx/geometry/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 | 20 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 const std::string& partition_id, | 141 const std::string& partition_id, |
141 SessionStorageNamespace* session_storage_namespace) { | 142 SessionStorageNamespace* session_storage_namespace) { |
142 return true; | 143 return true; |
143 } | 144 } |
144 | 145 |
145 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager( | 146 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager( |
146 WebContents* source) { | 147 WebContents* source) { |
147 return nullptr; | 148 return nullptr; |
148 } | 149 } |
149 | 150 |
| 151 scoped_ptr<BluetoothChooser> WebContentsDelegate::RunBluetoothChooser( |
| 152 WebContents* web_contents, |
| 153 BluetoothChooser::Observer* observer, |
| 154 int chooser_id, |
| 155 const GURL& origin) { |
| 156 return make_scoped_ptr(new FirstDeviceBluetoothChooser(observer, chooser_id)); |
| 157 } |
| 158 |
150 bool WebContentsDelegate::EmbedsFullscreenWidget() const { | 159 bool WebContentsDelegate::EmbedsFullscreenWidget() const { |
151 return false; | 160 return false; |
152 } | 161 } |
153 | 162 |
154 bool WebContentsDelegate::IsFullscreenForTabOrPending( | 163 bool WebContentsDelegate::IsFullscreenForTabOrPending( |
155 const WebContents* web_contents) const { | 164 const WebContents* web_contents) const { |
156 return false; | 165 return false; |
157 } | 166 } |
158 | 167 |
159 blink::WebDisplayMode WebContentsDelegate::GetDisplayMode( | 168 blink::WebDisplayMode WebContentsDelegate::GetDisplayMode( |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 return false; | 236 return false; |
228 } | 237 } |
229 | 238 |
230 SecurityStyle WebContentsDelegate::GetSecurityStyle( | 239 SecurityStyle WebContentsDelegate::GetSecurityStyle( |
231 WebContents* web_contents, | 240 WebContents* web_contents, |
232 SecurityStyleExplanations* security_style_explanations) { | 241 SecurityStyleExplanations* security_style_explanations) { |
233 return content::SECURITY_STYLE_UNKNOWN; | 242 return content::SECURITY_STYLE_UNKNOWN; |
234 } | 243 } |
235 | 244 |
236 } // namespace content | 245 } // namespace content |
OLD | NEW |