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

Side by Side Diff: content/shell/browser/layout_test/layout_test_first_device_bluetooth_chooser.cc

Issue 2210873003: bluetooth: Allow updates on chooser items. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-fix-advertised-services
Patch Set: Make const Created 4 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 unified diff | Download patch
« no previous file with comments | « content/shell/browser/layout_test/layout_test_first_device_bluetooth_chooser.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/shell/browser/layout_test/layout_test_first_device_bluetooth_c hooser.h" 5 #include "content/shell/browser/layout_test/layout_test_first_device_bluetooth_c hooser.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 27 matching lines...) Expand all
38 // device, we'll never find one, so we should cancel. 38 // device, we'll never find one, so we should cancel.
39 VLOG(1) << "LayoutTestFirstDeviceBluetoothChooser found nothing before " 39 VLOG(1) << "LayoutTestFirstDeviceBluetoothChooser found nothing before "
40 "going idle."; 40 "going idle.";
41 event_handler_.Run(Event::CANCELLED, ""); 41 event_handler_.Run(Event::CANCELLED, "");
42 break; 42 break;
43 case DiscoveryState::DISCOVERING: 43 case DiscoveryState::DISCOVERING:
44 break; 44 break;
45 } 45 }
46 } 46 }
47 47
48 void LayoutTestFirstDeviceBluetoothChooser::AddDevice( 48 void LayoutTestFirstDeviceBluetoothChooser::AddOrUpdateDevice(
49 const std::string& deviceId, 49 const std::string& device_id,
50 const base::string16& deviceName) { 50 bool should_update_name,
51 event_handler_.Run(Event::SELECTED, deviceId); 51 const base::string16& deviceName,
52 bool is_gatt_connected,
53 bool is_paired,
54 const int8_t* rssi) {
55 event_handler_.Run(Event::SELECTED, device_id);
52 } 56 }
53 57
54 } // namespace content 58 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/layout_test/layout_test_first_device_bluetooth_chooser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698