Chromium Code Reviews| 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..64ca6e5fd4dfaa2941d518d6ebbb21361a4c78a7 |
| --- /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/NSGeometry.h> |
|
tapted
2017/05/03 09:09:11
Foundation/Foundation.h
(there's a policy to alwa
varkha
2017/05/03 09:22:40
Done.
|
| + |
| +class Browser; |
| + |
| +// Returns true if |browser| has a visible location bar. |
| +bool HasVisibleLocationBarForBrowser(Browser* browser); |
| + |
| +// Returns a point at the bottom left of the location bar when location bar is |
|
tapted
2017/05/03 09:09:11
Returns a point in screen coordinates...
varkha
2017/05/03 09:22:40
Done.
|
| +// 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_ |