Chromium Code Reviews| 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_options.h" | |
|
Jeffrey Yasskin
2015/12/05 01:13:53
You can forward declare this type.
juncai
2015/12/07 18:28:47
Done.
| |
| 10 #include "components/bubble/bubble_delegate.h" | |
| 11 | |
| 12 class ChooserBubbleUiView; | |
|
Jeffrey Yasskin
2015/12/05 01:13:53
Don't forward-declare classes that aren't used in
juncai
2015/12/07 18:28:47
Done.
| |
| 13 | |
| 14 class ChooserBubbleDelegate : public BubbleDelegate { | |
|
Jeffrey Yasskin
2015/12/05 01:13:53
What does this class do? What's its lifetime?
juncai
2015/12/07 18:28:47
This class implements class BubbleDelegate:
https:
Jeffrey Yasskin
2015/12/07 23:57:54
Write down what kind of bubble this class defines.
| |
| 15 public: | |
| 16 ChooserBubbleDelegate(); | |
| 17 ~ChooserBubbleDelegate() override; | |
| 18 | |
| 19 // BubbleDelegate: | |
| 20 std::string GetName() const override; | |
| 21 | |
| 22 virtual void Select(int index) = 0; | |
|
Jeffrey Yasskin
2015/12/05 01:13:53
When are these functions called? How do subclasses
juncai
2015/12/07 18:28:47
The ChooserBubbleUiView/ChooserBubbleUiCocoa class
Jeffrey Yasskin
2015/12/07 23:57:54
These functions need comments saying that, so futu
| |
| 23 virtual void Cancel() = 0; | |
| 24 virtual void Close() = 0; | |
| 25 | |
| 26 protected: | |
| 27 scoped_ptr<ChooserOptions> chooser_options_; | |
| 28 | |
| 29 private: | |
| 30 DISALLOW_COPY_AND_ASSIGN(ChooserBubbleDelegate); | |
| 31 }; | |
| 32 | |
| 33 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_DELEGATE_H_ | |
| OLD | NEW |