OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 // should point. | 40 // should point. |
41 NSPoint GetAnchorPoint(); | 41 NSPoint GetAnchorPoint(); |
42 | 42 |
43 info_bubble::BubbleArrowLocation GetArrowLocation(); | 43 info_bubble::BubbleArrowLocation GetArrowLocation(); |
44 | 44 |
45 private: | 45 private: |
46 FRIEND_TEST_ALL_PREFIXES(PermissionBubbleBrowserTest, | 46 FRIEND_TEST_ALL_PREFIXES(PermissionBubbleBrowserTest, |
47 HasLocationBarByDefault); | 47 HasLocationBarByDefault); |
48 FRIEND_TEST_ALL_PREFIXES(PermissionBubbleBrowserTest, | 48 FRIEND_TEST_ALL_PREFIXES(PermissionBubbleBrowserTest, |
49 FullscreenHasLocationBar); | 49 FullscreenHasLocationBar); |
50 FRIEND_TEST_ALL_PREFIXES(PermissionBubbleAppBrowserTest, AppHasNoLocationBar); | 50 FRIEND_TEST_ALL_PREFIXES(PermissionBubbleBrowserTest, AppHasNoLocationBar); |
51 FRIEND_TEST_ALL_PREFIXES(PermissionBubbleKioskBrowserTest, | 51 FRIEND_TEST_ALL_PREFIXES(PermissionBubbleKioskBrowserTest, |
52 KioskHasNoLocationBar); | 52 KioskHasNoLocationBar); |
53 | 53 |
54 Browser* browser_; // Weak. | 54 Browser* browser_; // Weak. |
55 Delegate* delegate_; // Weak. | 55 Delegate* delegate_; // Weak. |
56 | 56 |
57 // Cocoa-side UI controller for the bubble. Weak, as it will close itself. | 57 // Cocoa-side UI controller for the bubble. Weak, as it will close itself. |
58 PermissionBubbleController* bubbleController_; | 58 PermissionBubbleController* bubbleController_; |
59 virtual bool HasLocationBar(); | 59 virtual bool HasLocationBar(); |
60 | 60 |
61 // Will get the intended parent window for the bubble and will not be NULL. | 61 // Will get the intended parent window for the bubble and will not be NULL. |
62 NSWindow* GetParentWindow(); | 62 NSWindow* GetParentWindow(); |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleCocoa); | 64 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleCocoa); |
65 }; | 65 }; |
66 | 66 |
67 #endif // CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_ | 67 #endif // CHROME_BROWSER_UI_COCOA_PERMISSION_BUBBLE_COCOA_H_ |
OLD | NEW |