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

Unified Diff: chrome/browser/chooser_controller/chooser_controller.h

Issue 2155743002: Add throbber and status text to WebBluetooth chooser UI on non-Mac desktops (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed unnecessary include file Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chooser_controller/mock_chooser_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chooser_controller/chooser_controller.h
diff --git a/chrome/browser/chooser_controller/chooser_controller.h b/chrome/browser/chooser_controller/chooser_controller.h
index 7ed166fe8b1332c9ba822401fd03df3958b648af..8ac0b007fea71c265980a419386fcb5d02ff0d78 100644
--- a/chrome/browser/chooser_controller/chooser_controller.h
+++ b/chrome/browser/chooser_controller/chooser_controller.h
@@ -46,6 +46,12 @@ class ChooserController {
// since the options have already been updated.
virtual void OnOptionRemoved(size_t index) = 0;
+ // Called when the device adapter is turned on or off.
+ virtual void OnAdapterEnabledChanged(bool enabled) = 0;
+
+ // Called when refreshing options is in progress or complete.
+ virtual void OnRefreshStateChanged(bool refreshing) = 0;
+
protected:
virtual ~Observer() {}
};
@@ -53,6 +59,9 @@ class ChooserController {
// Returns the text to be displayed in the chooser title.
base::string16 GetTitle() const;
+ // Returns the text to be displayed in the chooser when there are no options.
+ virtual base::string16 GetNoOptionsText() const = 0;
+
// Returns the label for OK button.
virtual base::string16 GetOkButtonLabel() const = 0;
@@ -64,6 +73,12 @@ class ChooserController {
// The |index|th option string which is listed in the chooser.
virtual base::string16 GetOption(size_t index) const = 0;
+ // Refresh the list of options.
+ virtual void RefreshOptions() = 0;
+
+ // Returns the status text to be shown in the chooser.
+ virtual base::string16 GetStatus() const = 0;
+
// These three functions are called just before this object is destroyed:
// Called when the user selects the |index|th element from the dialog.
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chooser_controller/mock_chooser_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698