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

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

Issue 2858028: [Mac] Base implementation of extension infobars on the mac.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 months 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
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/cocoa_protocols_mac.h" 10 #import "base/cocoa_protocols_mac.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698