Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1452)

Unified Diff: chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h

Issue 1292353006: Mac Changes for BubbleManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mcdb-mac-3.gitbr
Patch Set: New upstream Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698