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

Side by Side Diff: chrome/browser/cocoa/extensions/extension_popup_controller.h

Issue 506069: [Mac] Port browser action popup test to mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/gfx/size.cc ('k') | chrome/browser/cocoa/extensions/extension_popup_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « base/gfx/size.cc ('k') | chrome/browser/cocoa/extensions/extension_popup_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698