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

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

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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_CHROME_EXTENSION_BLUETOOTH_CHOOSER_H_ 5 #ifndef CHROME_BROWSER_UI_BLUETOOTH_CHROME_EXTENSION_BLUETOOTH_CHOOSER_H_
6 #define CHROME_BROWSER_UI_BLUETOOTH_CHROME_EXTENSION_BLUETOOTH_CHOOSER_H_ 6 #define CHROME_BROWSER_UI_BLUETOOTH_CHROME_EXTENSION_BLUETOOTH_CHOOSER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 11 matching lines...) Expand all
22 class ChromeExtensionBluetoothChooser : public content::BluetoothChooser { 22 class ChromeExtensionBluetoothChooser : public content::BluetoothChooser {
23 public: 23 public:
24 ChromeExtensionBluetoothChooser( 24 ChromeExtensionBluetoothChooser(
25 content::RenderFrameHost* frame, 25 content::RenderFrameHost* frame,
26 const content::BluetoothChooser::EventHandler& event_handler); 26 const content::BluetoothChooser::EventHandler& event_handler);
27 ~ChromeExtensionBluetoothChooser() override; 27 ~ChromeExtensionBluetoothChooser() override;
28 28
29 // content::BluetoothChooser: 29 // content::BluetoothChooser:
30 void SetAdapterPresence(AdapterPresence presence) override; 30 void SetAdapterPresence(AdapterPresence presence) override;
31 void ShowDiscoveryState(DiscoveryState state) override; 31 void ShowDiscoveryState(DiscoveryState state) override;
32 void AddDevice(const std::string& device_id, 32 void AddOrUpdateDevice(const std::string& device_id,
33 const base::string16& device_name) override; 33 bool should_update_name,
34 const base::string16& device_name,
35 bool is_gatt_connected,
36 bool is_paired,
37 const int8_t* rssi) override;
34 void RemoveDevice(const std::string& device_id) override; 38 void RemoveDevice(const std::string& device_id) override;
35 39
36 private: 40 private:
37 // Weak. ChooserContentView[Cocoa] owns it. 41 // Weak. ChooserContentView[Cocoa] owns it.
38 BluetoothChooserController* bluetooth_chooser_controller_; 42 BluetoothChooserController* bluetooth_chooser_controller_;
39 std::unique_ptr<ChromeExtensionChooserDialog> chooser_dialog_; 43 std::unique_ptr<ChromeExtensionChooserDialog> chooser_dialog_;
40 44
41 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionBluetoothChooser); 45 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionBluetoothChooser);
42 }; 46 };
43 47
44 #endif // CHROME_BROWSER_UI_BLUETOOTH_CHROME_EXTENSION_BLUETOOTH_CHOOSER_H_ 48 #endif // CHROME_BROWSER_UI_BLUETOOTH_CHROME_EXTENSION_BLUETOOTH_CHOOSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698