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

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

Issue 2005443002: Implement bluetooth chooser for Chrome Apps on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor_chooser_bubble_ui_cocoa
Patch Set: rebase and address comments Created 4 years, 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_BLUETOOTH_CHROME_EXTENSION_BLUETOOTH_CHOOSER_H_
6 #define CHROME_BROWSER_UI_BLUETOOTH_CHROME_EXTENSION_BLUETOOTH_CHOOSER_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "content/public/browser/bluetooth_chooser.h"
12
13 class BluetoothChooserController;
14 class ChromeExtensionChooserDialog;
15
16 namespace content {
17 class RenderFrameHost;
18 }
19
20 // Represents a Bluetooth chooser to ask the user to select a Bluetooth
21 // device from a list of options. This implementation is for extensions.
22 class ChromeExtensionBluetoothChooser : public content::BluetoothChooser {
Reilly Grant (use Gerrit) 2016/06/01 17:59:23 This seems to be a duplicate of BluetoothChooserDe
juncai 2016/06/01 21:15:47 Talked offline. The ChromeExtensionBluetoothChoose
23 public:
24 ChromeExtensionBluetoothChooser(
25 content::RenderFrameHost* frame,
26 const content::BluetoothChooser::EventHandler& event_handler);
27 ~ChromeExtensionBluetoothChooser() override;
28
29 // content::BluetoothChooser:
30 void SetAdapterPresence(AdapterPresence presence) override;
31 void ShowDiscoveryState(DiscoveryState state) override;
32 void AddDevice(const std::string& device_id,
33 const base::string16& device_name) override;
34 void RemoveDevice(const std::string& device_id) override;
35
36 private:
37 std::unique_ptr<BluetoothChooserController> bluetooth_chooser_controller_;
38 std::unique_ptr<ChromeExtensionChooserDialog> chooser_dialog_;
39
40 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionBluetoothChooser);
41 };
42
43 #endif // CHROME_BROWSER_UI_BLUETOOTH_CHROME_EXTENSION_BLUETOOTH_CHOOSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698