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_PERMISSION_BUBBLE_DELEGATE_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_DELEGATE_H_ | |
| 7 | |
| 8 #include "base/callback.h" | |
| 9 #include "components/bubble/bubble_delegate.h" | |
| 10 | |
| 11 class PermissionBubbleManager; | |
| 12 class PermissionBubbleRequest; | |
| 13 | |
| 14 class PermissionBubbleDelegate : public BubbleDelegate { | |
| 15 public: | |
| 16 PermissionBubbleDelegate( | |
| 17 base::Callback<scoped_ptr<BubbleUI>(PermissionBubbleManager*)> ui_factory, | |
| 18 PermissionBubbleManager* manager); | |
| 19 ~PermissionBubbleDelegate() override; | |
| 20 | |
| 21 // BubbleDelegate: | |
| 22 void DidClose() override; | |
| 23 bool ShouldCloseOnHide() const override; | |
| 24 scoped_ptr<BubbleUI> BuildBubbleUI() override; | |
| 25 void* GetContext() const override; | |
| 26 | |
| 27 // Define this function in the platform specific bubble UI implementation. | |
|
msw
2015/08/13 03:37:21
Is this a TODO? Otherwise reword this comment to s
| |
| 28 static scoped_ptr<BubbleUI> CreateBubble(PermissionBubbleManager* manager); | |
| 29 | |
| 30 private: | |
| 31 base::Callback<scoped_ptr<BubbleUI>(PermissionBubbleManager*)> ui_factory_; | |
| 32 PermissionBubbleManager* manager_; // Weak. | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleDelegate); | |
| 35 }; | |
| 36 | |
| 37 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_DELEGATE_H_ | |
| OLD | NEW |