Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: content/public/browser/web_contents_delegate.cc

Issue 1286063002: Add a path for content/ to open and control a Bluetooth chooser dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Remove an unnecessary include and forward decl Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/browser/web_contents_delegate.cc
diff --git a/content/public/browser/web_contents_delegate.cc b/content/public/browser/web_contents_delegate.cc
index 016097b3ab17b8ea94dac0a1a4a43789d0b306e7..6e13c00ef4b4ad5d02a89a07af9ed951b99bdb8f 100644
--- a/content/public/browser/web_contents_delegate.cc
+++ b/content/public/browser/web_contents_delegate.cc
@@ -7,6 +7,7 @@
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/memory/singleton.h"
+#include "content/browser/bluetooth/first_device_bluetooth_chooser.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/security_style_explanations.h"
#include "content/public/browser/web_contents.h"
@@ -147,6 +148,14 @@ JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager(
return nullptr;
}
+scoped_ptr<BluetoothChooser> WebContentsDelegate::RunBluetoothChooser(
+ WebContents* web_contents,
+ BluetoothChooser::Observer* observer,
+ int chooser_id,
+ const GURL& origin) {
+ return make_scoped_ptr(new FirstDeviceBluetoothChooser(observer, chooser_id));
+}
+
bool WebContentsDelegate::EmbedsFullscreenWidget() const {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698