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

Side by Side Diff: chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h

Issue 2518933004: Add multiple selection support to chooser on desktops (Closed)
Patch Set: address comments Created 4 years 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
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 #ifndef CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_CONTROLLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 21 matching lines...) Expand all
32 base::string16 GetNoOptionsText() const override; 32 base::string16 GetNoOptionsText() const override;
33 base::string16 GetOkButtonLabel() const override; 33 base::string16 GetOkButtonLabel() const override;
34 size_t NumOptions() const override; 34 size_t NumOptions() const override;
35 int GetSignalStrengthLevel(size_t index) const override; 35 int GetSignalStrengthLevel(size_t index) const override;
36 bool IsConnected(size_t index) const override; 36 bool IsConnected(size_t index) const override;
37 bool IsPaired(size_t index) const override; 37 bool IsPaired(size_t index) const override;
38 base::string16 GetOption(size_t index) const override; 38 base::string16 GetOption(size_t index) const override;
39 void RefreshOptions() override; 39 void RefreshOptions() override;
40 void OpenAdapterOffHelpUrl() const override; 40 void OpenAdapterOffHelpUrl() const override;
41 base::string16 GetStatus() const override; 41 base::string16 GetStatus() const override;
42 void Select(size_t index) override; 42 void Select(const std::vector<size_t>& indices) override;
43 void Cancel() override; 43 void Cancel() override;
44 void Close() override; 44 void Close() override;
45 void OpenHelpCenterUrl() const override; 45 void OpenHelpCenterUrl() const override;
46 46
47 // Update the state of the Bluetooth adapter. 47 // Update the state of the Bluetooth adapter.
48 void OnAdapterPresenceChanged( 48 void OnAdapterPresenceChanged(
49 content::BluetoothChooser::AdapterPresence presence); 49 content::BluetoothChooser::AdapterPresence presence);
50 50
51 // Update the Bluetooth discovery state and let the user know whether 51 // Update the Bluetooth discovery state and let the user know whether
52 // discovery is happening. 52 // discovery is happening.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // Maps from device name to number of devices with that name. 85 // Maps from device name to number of devices with that name.
86 std::unordered_map<base::string16, int> device_name_counts_; 86 std::unordered_map<base::string16, int> device_name_counts_;
87 87
88 content::BluetoothChooser::EventHandler event_handler_; 88 content::BluetoothChooser::EventHandler event_handler_;
89 base::string16 status_text_; 89 base::string16 status_text_;
90 90
91 DISALLOW_COPY_AND_ASSIGN(BluetoothChooserController); 91 DISALLOW_COPY_AND_ASSIGN(BluetoothChooserController);
92 }; 92 };
93 93
94 #endif // CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_CONTROLLER_H_ 94 #endif // CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698