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

Unified Diff: chrome/browser/ui/website_settings/chooser_bubble_delegate.h

Issue 1473393003: Add chooser permission UI code for Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wpu_1
Patch Set: address reillyg@'s comments Created 5 years 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
Index: chrome/browser/ui/website_settings/chooser_bubble_delegate.h
diff --git a/chrome/browser/ui/website_settings/chooser_bubble_delegate.h b/chrome/browser/ui/website_settings/chooser_bubble_delegate.h
index d111f2b382233919513bb39d844545c106322631..6166e56782791361b56c923988b0526f211bb95c 100644
--- a/chrome/browser/ui/website_settings/chooser_bubble_delegate.h
+++ b/chrome/browser/ui/website_settings/chooser_bubble_delegate.h
@@ -11,6 +11,8 @@
#include "base/strings/string16.h"
#include "components/bubble/bubble_delegate.h"
+class Browser;
+
// Subclass ChooserBubbleDelegate to implement a chooser bubble, which has
// some introductory text and a list of options that users can pick one of.
// Create an instance of your subclass and pass it to
@@ -23,7 +25,7 @@
// into it is not allowed.
class ChooserBubbleDelegate : public BubbleDelegate {
public:
- ChooserBubbleDelegate();
+ explicit ChooserBubbleDelegate(Browser* browser);
~ChooserBubbleDelegate() override;
// Since the set of options can change while the UI is visible an
@@ -50,6 +52,7 @@ class ChooserBubbleDelegate : public BubbleDelegate {
// BubbleDelegate:
std::string GetName() const override;
+ scoped_ptr<BubbleUi> BuildBubbleUi() override;
// The set of options users can pick from. For example, it can be
// USB/Bluetooth devices names which are listed in the chooser bubble
@@ -70,6 +73,7 @@ class ChooserBubbleDelegate : public BubbleDelegate {
Observer* observer() const { return observer_; }
private:
+ Browser* browser_;
Observer* observer_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(ChooserBubbleDelegate);

Powered by Google App Engine
This is Rietveld 408576698