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

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

Issue 390503003: Enables permission bubbles to remain visible during fulscreen on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 6 years, 5 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 e063fc8f82640286c025c26ff417ff4f858b49c3..d8a7c0b1e9c56dc6d83a43067d201c12799e27d7 100644
--- a/chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h
+++ b/chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h
@@ -27,13 +27,21 @@ class PermissionBubbleCocoa : public PermissionBubbleView {
const std::vector<bool>& accept_state,
bool customization_mode) OVERRIDE;
virtual void Hide() OVERRIDE;
+ virtual bool IsVisible() OVERRIDE;
virtual void SetDelegate(Delegate* delegate) OVERRIDE;
virtual bool CanAcceptRequestUpdate() OVERRIDE;
// Called when |bubbleController_| is closing.
void OnBubbleClosing();
- private:
+ // Returns the point, in screen coordinates, to which the bubble's arrow
+ // should point.
+ NSPoint AnchorPoint();
Robert Sesek 2014/07/14 14:13:32 naming: GetAnchorPoint()
leng 2014/07/14 18:17:24 Done.
+
+ // Returns the NSWindow containing the bubble.
+ NSWindow* window();
+
+private:
NSWindow* parent_window_; // Weak.
Delegate* delegate_; // Weak.

Powered by Google App Engine
This is Rietveld 408576698