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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a25c71cc013d8fa432e5bc1ac071351b05e52d3b |
--- /dev/null |
+++ b/chrome/browser/ui/website_settings/chooser_bubble_delegate.h |
@@ -0,0 +1,40 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_DELEGATE_H_ |
+#define CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_DELEGATE_H_ |
+ |
+#include "base/macros.h" |
+#include "chrome/browser/ui/website_settings/chooser_choices.h" |
+#include "components/bubble/bubble_delegate.h" |
+ |
+class ChooserBubbleUiCocoa; |
+class ChooserBubbleUiView; |
+ |
+class ChooserBubbleDelegate : public BubbleDelegate, |
+ public ChooserChoices::Observer { |
+ public: |
+ ChooserBubbleDelegate(); |
+ ~ChooserBubbleDelegate() override; |
+ |
+ // BubbleDelegate: |
+ std::string GetName() const override; |
+ |
+ virtual void Select(int index) = 0; |
+ virtual void Cancel() = 0; |
+ |
+ protected: |
+ scoped_ptr<ChooserChoices> chooser_choices_; |
+ |
+#if defined(OS_MACOSX) |
+ ChooserBubbleUiCocoa* chooser_bubble_ui_cocoa_; |
+#else |
+ ChooserBubbleUiView* chooser_bubble_ui_view_; |
+#endif |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(ChooserBubbleDelegate); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_DELEGATE_H_ |