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

Side by Side Diff: chrome/browser/chooser_controller/chooser_controller.h

Issue 2344133003: Add help link when Bluetooth adapter is off for WebBluetooth chooser (Closed)
Patch Set: updated the kBluetoothAdapterOffHelpURL Created 4 years, 3 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_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_
6 #define CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // This function returns false by default. 89 // This function returns false by default.
90 virtual bool IsConnected(size_t index) const; 90 virtual bool IsConnected(size_t index) const;
91 91
92 // Returns if the |index|th option is paired. 92 // Returns if the |index|th option is paired.
93 // This function returns false by default. 93 // This function returns false by default.
94 virtual bool IsPaired(size_t index) const; 94 virtual bool IsPaired(size_t index) const;
95 95
96 // Refresh the list of options. 96 // Refresh the list of options.
97 virtual void RefreshOptions() = 0; 97 virtual void RefreshOptions() = 0;
98 98
99 // Provide help information when the adapter is off.
100 virtual void OpenAdapterOffHelpUrl() const;
Jeffrey Yasskin 2016/09/26 23:25:07 Put this next to the other Open...Url() function.
juncai 2016/09/28 22:45:42 Since the WebUSB doesn't use this function, and in
Jeffrey Yasskin 2016/09/28 23:12:23 Sounds good, thanks.
101
99 // Returns the status text to be shown in the chooser. 102 // Returns the status text to be shown in the chooser.
100 virtual base::string16 GetStatus() const = 0; 103 virtual base::string16 GetStatus() const = 0;
101 104
102 // These three functions are called just before this object is destroyed: 105 // These three functions are called just before this object is destroyed:
103 106
104 // Called when the user selects the |index|th element from the dialog. 107 // Called when the user selects the |index|th element from the dialog.
105 virtual void Select(size_t index) = 0; 108 virtual void Select(size_t index) = 0;
106 109
107 // Called when the user presses the 'Cancel' button in the dialog. 110 // Called when the user presses the 'Cancel' button in the dialog.
108 virtual void Cancel() = 0; 111 virtual void Cancel() = 0;
(...skipping 12 matching lines...) Expand all
121 private: 124 private:
122 content::RenderFrameHost* const owning_frame_; 125 content::RenderFrameHost* const owning_frame_;
123 const int title_string_id_origin_; 126 const int title_string_id_origin_;
124 const int title_string_id_extension_; 127 const int title_string_id_extension_;
125 View* view_ = nullptr; 128 View* view_ = nullptr;
126 129
127 DISALLOW_COPY_AND_ASSIGN(ChooserController); 130 DISALLOW_COPY_AND_ASSIGN(ChooserController);
128 }; 131 };
129 132
130 #endif // CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ 133 #endif // CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698