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

Unified Diff: chrome/browser/ui/exclusive_access/exclusive_access_bubble.h

Issue 877413004: Refactor away the Browser* dependency in exclusive_access (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove Browser* dependency from ExclusiveAccess* in Cocoa. Created 5 years, 11 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/exclusive_access/exclusive_access_bubble.h
diff --git a/chrome/browser/ui/exclusive_access/exclusive_access_bubble.h b/chrome/browser/ui/exclusive_access/exclusive_access_bubble.h
index 41f5c2884f8a5d807d51122b811af0c93b976f6f..e1c44f487fe5c3ed102ec3cd72f0b33cc6024afc 100644
--- a/chrome/browser/ui/exclusive_access/exclusive_access_bubble.h
+++ b/chrome/browser/ui/exclusive_access/exclusive_access_bubble.h
@@ -11,7 +11,7 @@
#include "ui/gfx/geometry/point.h"
#include "url/gurl.h"
-class Browser;
+class ExclusiveAccessManager;
namespace gfx {
class Rect;
@@ -22,7 +22,7 @@ class Rect;
// state, namely fullscreen and mouse lock.
class ExclusiveAccessBubble : public gfx::AnimationDelegate {
public:
- explicit ExclusiveAccessBubble(Browser* browser,
+ explicit ExclusiveAccessBubble(ExclusiveAccessManager* manager,
const GURL& url,
ExclusiveAccessBubbleType bubble_type);
~ExclusiveAccessBubble() override;
@@ -85,8 +85,8 @@ class ExclusiveAccessBubble : public gfx::AnimationDelegate {
base::string16 GetAllowButtonText() const;
base::string16 GetInstructionText() const;
- // The browser this bubble is in.
- Browser* browser_;
+ // The Manager associated with this bubble.
+ ExclusiveAccessManager* manager_;
// The host the bubble is for, can be empty.
GURL url_;

Powered by Google App Engine
This is Rietveld 408576698