| Index: chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h
|
| diff --git a/chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h b/chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h
|
| index 3b2fff917b30ffb0343489de1291c83e945ed1b9..34cc1f1a064c3c7f749142a72eb258e65b972884 100644
|
| --- a/chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h
|
| +++ b/chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h
|
| @@ -12,26 +12,22 @@
|
| #include "base/macros.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "chrome/browser/ui/cocoa/info_bubble_view.h"
|
| -#include "chrome/browser/ui/website_settings/permission_bubble_view.h"
|
| +#include "components/bubble/bubble_ui.h"
|
| #include "content/public/browser/web_contents.h"
|
|
|
| -class Browser;
|
| +class PermissionBubbleManager;
|
| @class PermissionBubbleController;
|
|
|
| -class PermissionBubbleCocoa : public PermissionBubbleView {
|
| +class PermissionBubbleCocoa : public BubbleUI {
|
| public:
|
| - explicit PermissionBubbleCocoa(Browser* browser);
|
| + explicit PermissionBubbleCocoa(PermissionBubbleManager* manager);
|
| ~PermissionBubbleCocoa() override;
|
|
|
| - // PermissionBubbleView interface.
|
| - void Show(const std::vector<PermissionBubbleRequest*>& requests,
|
| - const std::vector<bool>& accept_state) override;
|
| + // BubbleUI interface.
|
| + void Show() override;
|
| void Hide() override;
|
| - bool IsVisible() override;
|
| - void SetDelegate(Delegate* delegate) override;
|
| - bool CanAcceptRequestUpdate() override;
|
| void UpdateAnchorPosition() override;
|
| - gfx::NativeWindow GetNativeWindow() override;
|
| + bool CanAcceptUpdate() const override;
|
|
|
| // Called when |bubbleController_| is closing.
|
| void OnBubbleClosing();
|
| @@ -45,8 +41,7 @@ class PermissionBubbleCocoa : public PermissionBubbleView {
|
| FRIEND_TEST_ALL_PREFIXES(PermissionBubbleKioskBrowserTest,
|
| KioskHasNoLocationBar);
|
|
|
| - Browser* browser_; // Weak.
|
| - Delegate* delegate_; // Weak.
|
| + PermissionBubbleManager* manager_; // Weak.
|
|
|
| // Cocoa-side UI controller for the bubble. Weak, as it will close itself.
|
| PermissionBubbleController* bubbleController_;
|
|
|