| 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/scoped_nsobject.h" | 10 #import "base/scoped_nsobject.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // |anchoredAt| is expected to be in the screen's coordinates at the bottom | 48 // |anchoredAt| is expected to be in the screen's coordinates at the bottom |
| 49 // center of the browser action button. | 49 // center of the browser action button. |
| 50 // The actual display of the popup is delayed until the page contents finish | 50 // The actual display of the popup is delayed until the page contents finish |
| 51 // loading in order to minimize UI flashing and resizing. | 51 // loading in order to minimize UI flashing and resizing. |
| 52 + (ExtensionPopupController*)showURL:(GURL)url | 52 + (ExtensionPopupController*)showURL:(GURL)url |
| 53 inBrowser:(Browser*)browser | 53 inBrowser:(Browser*)browser |
| 54 anchoredAt:(NSPoint)anchoredAt | 54 anchoredAt:(NSPoint)anchoredAt |
| 55 arrowLocation:(BubbleArrowLocation)arrowLocation; | 55 arrowLocation:(BubbleArrowLocation)arrowLocation; |
| 56 @end | 56 @end |
| 57 | 57 |
| 58 @interface ExtensionPopupController(TestingAPI) |
| 59 // Returns a weak pointer to the current popup's view. |
| 60 - (NSView*)view; |
| 61 // Returns the minimum allowed size for an extension popup. |
| 62 + (NSSize)minPopupSize; |
| 63 // Returns the maximum allowed size for an extension popup. |
| 64 + (NSSize)maxPopupSize; |
| 65 @end |
| 66 |
| 58 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_POPUP_CONTROLLER_H_ | 67 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_EXTENSION_POPUP_CONTROLLER_H_ |
| OLD | NEW |