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

Unified Diff: content/browser/bluetooth/bluetooth_dispatcher_host.cc

Issue 1315093002: Implement a bluetooth picker dialog for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove redundant include Created 5 years, 3 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
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.h ('k') | content/public/browser/bluetooth_chooser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/bluetooth/bluetooth_dispatcher_host.cc
diff --git a/content/browser/bluetooth/bluetooth_dispatcher_host.cc b/content/browser/bluetooth/bluetooth_dispatcher_host.cc
index 810e186de6cd92fb36e357c9286517342495169c..c1a2395c4f2bb918ab826e0a4242535217dbd999 100644
--- a/content/browser/bluetooth/bluetooth_dispatcher_host.cc
+++ b/content/browser/bluetooth/bluetooth_dispatcher_host.cc
@@ -722,8 +722,12 @@ void BluetoothDispatcherHost::OnBluetoothChooserEvent(
BluetoothChooser::Event event,
const std::string& device_id) {
switch (event) {
+ case BluetoothChooser::Event::RESCAN:
+ // TODO(jyasskin): Implement starting a new Bluetooth discovery session.
+ NOTIMPLEMENTED();
+ break;
case BluetoothChooser::Event::CANCELLED:
- case BluetoothChooser::Event::SELECTED:
+ case BluetoothChooser::Event::SELECTED: {
RequestDeviceSession* session =
request_device_sessions_.Lookup(chooser_id);
DCHECK(session) << "Shouldn't close the dialog twice.";
@@ -743,6 +747,16 @@ void BluetoothDispatcherHost::OnBluetoothChooserEvent(
LOG(WARNING) << "No TaskRunner; not closing requestDevice dialog.";
}
break;
+ }
+ case BluetoothChooser::Event::SHOW_OVERVIEW_HELP:
+ ShowBluetoothOverviewLink();
+ break;
+ case BluetoothChooser::Event::SHOW_PAIRING_HELP:
+ ShowBluetoothPairingLink();
+ break;
+ case BluetoothChooser::Event::SHOW_ADAPTER_OFF_HELP:
+ ShowBluetoothAdapterOffLink();
+ break;
}
}
@@ -900,4 +914,16 @@ void BluetoothDispatcherHost::OnWriteValueFailed(
TranslateGATTError(error_code, UMAGATTOperation::CHARACTERISTIC_WRITE)));
}
+void BluetoothDispatcherHost::ShowBluetoothOverviewLink() {
+ NOTIMPLEMENTED();
+}
+
+void BluetoothDispatcherHost::ShowBluetoothPairingLink() {
+ NOTIMPLEMENTED();
+}
+
+void BluetoothDispatcherHost::ShowBluetoothAdapterOffLink() {
+ NOTIMPLEMENTED();
+}
+
} // namespace content
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.h ('k') | content/public/browser/bluetooth_chooser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698