| 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 const BluetoothChooser::EventHandler& event_handler, |
| 154 const GURL& origin) { |
| 155 return make_scoped_ptr(new FirstDeviceBluetoothChooser(event_handler)); |
| 156 } |
| 157 |
| 150 bool WebContentsDelegate::EmbedsFullscreenWidget() const { | 158 bool WebContentsDelegate::EmbedsFullscreenWidget() const { |
| 151 return false; | 159 return false; |
| 152 } | 160 } |
| 153 | 161 |
| 154 bool WebContentsDelegate::IsFullscreenForTabOrPending( | 162 bool WebContentsDelegate::IsFullscreenForTabOrPending( |
| 155 const WebContents* web_contents) const { | 163 const WebContents* web_contents) const { |
| 156 return false; | 164 return false; |
| 157 } | 165 } |
| 158 | 166 |
| 159 blink::WebDisplayMode WebContentsDelegate::GetDisplayMode( | 167 blink::WebDisplayMode WebContentsDelegate::GetDisplayMode( |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 return false; | 235 return false; |
| 228 } | 236 } |
| 229 | 237 |
| 230 SecurityStyle WebContentsDelegate::GetSecurityStyle( | 238 SecurityStyle WebContentsDelegate::GetSecurityStyle( |
| 231 WebContents* web_contents, | 239 WebContents* web_contents, |
| 232 SecurityStyleExplanations* security_style_explanations) { | 240 SecurityStyleExplanations* security_style_explanations) { |
| 233 return content::SECURITY_STYLE_UNKNOWN; | 241 return content::SECURITY_STYLE_UNKNOWN; |
| 234 } | 242 } |
| 235 | 243 |
| 236 } // namespace content | 244 } // namespace content |
| OLD | NEW |