OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_DELEGATE_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/website_settings/chooser_choices.h" |
| 10 #include "components/bubble/bubble_delegate.h" |
| 11 |
| 12 class ChooserBubbleUiCocoa; |
| 13 class ChooserBubbleUiView; |
| 14 |
| 15 class ChooserBubbleDelegate : public BubbleDelegate, |
| 16 public ChooserChoices::Observer { |
| 17 public: |
| 18 ChooserBubbleDelegate(); |
| 19 ~ChooserBubbleDelegate() override; |
| 20 |
| 21 // BubbleDelegate: |
| 22 std::string GetName() const override; |
| 23 |
| 24 virtual void Select(int index) = 0; |
| 25 virtual void Cancel() = 0; |
| 26 |
| 27 protected: |
| 28 scoped_ptr<ChooserChoices> chooser_choices_; |
| 29 |
| 30 #if defined(OS_MACOSX) |
| 31 ChooserBubbleUiCocoa* chooser_bubble_ui_cocoa_; |
| 32 #else |
| 33 ChooserBubbleUiView* chooser_bubble_ui_view_; |
| 34 #endif |
| 35 |
| 36 private: |
| 37 DISALLOW_COPY_AND_ASSIGN(ChooserBubbleDelegate); |
| 38 }; |
| 39 |
| 40 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_DELEGATE_H_ |
OLD | NEW |