OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COCOA_EXTENSIONS_EXTENSION_POPUP_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_POPUP_CONTROLLER_H_ |
6 #define CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_POPUP_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_POPUP_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #import "base/cocoa_protocols_mac.h" | 10 #import "base/cocoa_protocols_mac.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // frame if the size hasn't changed. | 43 // frame if the size hasn't changed. |
44 NSRect extensionFrame_; | 44 NSRect extensionFrame_; |
45 | 45 |
46 // The extension host object. | 46 // The extension host object. |
47 scoped_ptr<ExtensionHost> host_; | 47 scoped_ptr<ExtensionHost> host_; |
48 | 48 |
49 scoped_ptr<NotificationRegistrar> registrar_; | 49 scoped_ptr<NotificationRegistrar> registrar_; |
50 scoped_ptr<DevtoolsNotificationBridge> notificationBridge_; | 50 scoped_ptr<DevtoolsNotificationBridge> notificationBridge_; |
51 | 51 |
52 // Whether the popup has a devtools window attached to it. | 52 // Whether the popup has a devtools window attached to it. |
53 bool beingInspected_; | 53 BOOL beingInspected_; |
54 } | 54 } |
55 | 55 |
56 // Returns the ExtensionHost object associated with this popup. | 56 // Returns the ExtensionHost object associated with this popup. |
57 - (ExtensionHost*)extensionHost; | 57 - (ExtensionHost*)extensionHost; |
58 | 58 |
59 // Starts the process of showing the given popup URL. Instantiates an | 59 // Starts the process of showing the given popup URL. Instantiates an |
60 // ExtensionPopupController with the parent window retrieved from |browser|, a | 60 // ExtensionPopupController with the parent window retrieved from |browser|, a |
61 // host for the popup created by the extension process manager specific to the | 61 // host for the popup created by the extension process manager specific to the |
62 // browser profile and the remaining arguments |anchoredAt| and |arrowLocation|. | 62 // browser profile and the remaining arguments |anchoredAt| and |arrowLocation|. |
63 // |anchoredAt| is expected to be in the window's coordinates at the bottom | 63 // |anchoredAt| is expected to be in the window's coordinates at the bottom |
(...skipping 25 matching lines...) Expand all Loading... |
89 @interface ExtensionPopupController(TestingAPI) | 89 @interface ExtensionPopupController(TestingAPI) |
90 // Returns a weak pointer to the current popup's view. | 90 // Returns a weak pointer to the current popup's view. |
91 - (NSView*)view; | 91 - (NSView*)view; |
92 // Returns the minimum allowed size for an extension popup. | 92 // Returns the minimum allowed size for an extension popup. |
93 + (NSSize)minPopupSize; | 93 + (NSSize)minPopupSize; |
94 // Returns the maximum allowed size for an extension popup. | 94 // Returns the maximum allowed size for an extension popup. |
95 + (NSSize)maxPopupSize; | 95 + (NSSize)maxPopupSize; |
96 @end | 96 @end |
97 | 97 |
98 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_POPUP_CONTROLLER_H_ | 98 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_POPUP_CONTROLLER_H_ |
OLD | NEW |