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

Unified Diff: chrome/browser/ui/cocoa/bubble_anchor_helper.h

Issue 2853143003: MacViews: Allows the toolkit-views Device Chooser bubble to be used (Closed)
Patch Set: MacViews: Allows the toolkit-views Device Chooser bubble to be used (nits) Created 3 years, 7 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
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/cocoa/bubble_anchor_helper.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/bubble_anchor_helper.h
diff --git a/chrome/browser/ui/cocoa/bubble_anchor_helper.h b/chrome/browser/ui/cocoa/bubble_anchor_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..55d3de41241a7f7d30f8e9ba69fc29a04da305fb
--- /dev/null
+++ b/chrome/browser/ui/cocoa/bubble_anchor_helper.h
@@ -0,0 +1,21 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_BUBBLE_ANCHOR_HELPER_H_
+#define CHROME_BROWSER_UI_COCOA_BUBBLE_ANCHOR_HELPER_H_
+
+#import <Foundation/Foundation.h>
+
+class Browser;
+
+// Returns true if |browser| has a visible location bar.
+bool HasVisibleLocationBarForBrowser(Browser* browser);
+
+// Returns a point screen coordinates at the bottom left of the location bar
+// when location bar is present and a point near the left edge of the screen
+// otherwise in order to not obscure the fullscreen request bubble.
+NSPoint GetPermissionBubbleAnchorPointForBrowser(Browser* browser,
+ bool has_location_bar);
+
+#endif // CHROME_BROWSER_UI_COCOA_BUBBLE_ANCHOR_HELPER_H_
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/cocoa/bubble_anchor_helper.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698