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

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

Issue 1661063002: Add message and Help Center link to the chooser UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address estade@'s comments Created 4 years, 10 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 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_BUBBLE_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_BUBBLE_DELEGATE_H_
6 #define CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_BUBBLE_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_BUBBLE_DELEGATE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 explicit BluetoothChooserBubbleDelegate(content::RenderFrameHost* owner); 23 explicit BluetoothChooserBubbleDelegate(content::RenderFrameHost* owner);
24 ~BluetoothChooserBubbleDelegate() override; 24 ~BluetoothChooserBubbleDelegate() override;
25 25
26 // ChooserBubbleDelegate: 26 // ChooserBubbleDelegate:
27 size_t NumOptions() const override; 27 size_t NumOptions() const override;
28 const base::string16& GetOption(size_t index) const override; 28 const base::string16& GetOption(size_t index) const override;
29 void Select(size_t index) override; 29 void Select(size_t index) override;
30 void Cancel() override; 30 void Cancel() override;
31 void Close() override; 31 void Close() override;
32 GURL GetHelpCenterUrl() const override;
32 33
33 // Shows a new device in the chooser. 34 // Shows a new device in the chooser.
34 void AddDevice(const std::string& device_id, 35 void AddDevice(const std::string& device_id,
35 const base::string16& device_name); 36 const base::string16& device_name);
36 37
37 // Tells the chooser that a device is no longer available. 38 // Tells the chooser that a device is no longer available.
38 void RemoveDevice(const std::string& device_id); 39 void RemoveDevice(const std::string& device_id);
39 40
40 void set_bluetooth_chooser(BluetoothChooserDesktop* bluetooth_chooser) { 41 void set_bluetooth_chooser(BluetoothChooserDesktop* bluetooth_chooser) {
41 bluetooth_chooser_ = bluetooth_chooser; 42 bluetooth_chooser_ = bluetooth_chooser;
42 } 43 }
43 44
44 void set_bubble_controller(BubbleReference bubble_controller) { 45 void set_bubble_controller(BubbleReference bubble_controller) {
45 bubble_controller_ = bubble_controller; 46 bubble_controller_ = bubble_controller;
46 } 47 }
47 48
48 private: 49 private:
49 // Each pair is a (device name, device id). 50 // Each pair is a (device name, device id).
50 std::vector<std::pair<base::string16, std::string>> device_names_and_ids_; 51 std::vector<std::pair<base::string16, std::string>> device_names_and_ids_;
51 BluetoothChooserDesktop* bluetooth_chooser_; 52 BluetoothChooserDesktop* bluetooth_chooser_;
52 BubbleReference bubble_controller_; 53 BubbleReference bubble_controller_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(BluetoothChooserBubbleDelegate); 55 DISALLOW_COPY_AND_ASSIGN(BluetoothChooserBubbleDelegate);
55 }; 56 };
56 57
57 #endif // CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_BUBBLE_DELEGATE_H_ 58 #endif // CHROME_BROWSER_UI_BLUETOOTH_BLUETOOTH_CHOOSER_BUBBLE_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/bluetooth/bluetooth_chooser_bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698