| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 protected: | 52 protected: |
| 53 virtual ~Observer() {} | 53 virtual ~Observer() {} |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 // Open help center URL. | 56 // Open help center URL. |
| 57 void OpenHelpCenterUrl() const; | 57 void OpenHelpCenterUrl() const; |
| 58 | 58 |
| 59 // BubbleDelegate: | 59 // BubbleDelegate: |
| 60 std::string GetName() const override; | 60 std::string GetName() const override; |
| 61 scoped_ptr<BubbleUi> BuildBubbleUi() override; | 61 std::unique_ptr<BubbleUi> BuildBubbleUi() override; |
| 62 const content::RenderFrameHost* OwningFrame() const override; | 62 const content::RenderFrameHost* OwningFrame() const override; |
| 63 | 63 |
| 64 // The number of options users can pick from. For example, it can be | 64 // The number of options users can pick from. For example, it can be |
| 65 // the number of USB/Bluetooth device names which are listed in the | 65 // the number of USB/Bluetooth device names which are listed in the |
| 66 // chooser bubble so that users can grant permission. | 66 // chooser bubble so that users can grant permission. |
| 67 virtual size_t NumOptions() const = 0; | 67 virtual size_t NumOptions() const = 0; |
| 68 | 68 |
| 69 // The |index|th option string which is listed in the chooser bubble. | 69 // The |index|th option string which is listed in the chooser bubble. |
| 70 virtual const base::string16& GetOption(size_t index) const = 0; | 70 virtual const base::string16& GetOption(size_t index) const = 0; |
| 71 | 71 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 90 | 90 |
| 91 private: | 91 private: |
| 92 Browser* browser_; | 92 Browser* browser_; |
| 93 const content::RenderFrameHost* const owning_frame_; | 93 const content::RenderFrameHost* const owning_frame_; |
| 94 Observer* observer_ = nullptr; | 94 Observer* observer_ = nullptr; |
| 95 | 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(ChooserBubbleController); | 96 DISALLOW_COPY_AND_ASSIGN(ChooserBubbleController); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_CONTROLLER_H_ | 99 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_CONTROLLER_H_ |
| OLD | NEW |