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

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

Issue 9702068: Move extension pop-ups and notifications to the new auto-resize code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: small update Created 8 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_EXTENSION_POPUP_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_POPUP_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_POPUP_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_POPUP_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // The extension host object. 44 // The extension host object.
45 scoped_ptr<ExtensionHost> host_; 45 scoped_ptr<ExtensionHost> host_;
46 46
47 scoped_ptr<content::NotificationRegistrar> registrar_; 47 scoped_ptr<content::NotificationRegistrar> registrar_;
48 scoped_ptr<DevtoolsNotificationBridge> notificationBridge_; 48 scoped_ptr<DevtoolsNotificationBridge> notificationBridge_;
49 scoped_ptr<ExtensionPopupContainer> container_; 49 scoped_ptr<ExtensionPopupContainer> container_;
50 50
51 // Whether the popup has a devtools window attached to it. 51 // Whether the popup has a devtools window attached to it.
52 BOOL beingInspected_; 52 BOOL beingInspected_;
53 53
54 // The preferred size once the ExtensionView has loaded. 54 // The size once the ExtensionView has loaded.
55 NSSize pendingPreferredSize_; 55 NSSize pendingSize_;
56 } 56 }
57 57
58 // Returns the ExtensionHost object associated with this popup. 58 // Returns the ExtensionHost object associated with this popup.
59 - (ExtensionHost*)extensionHost; 59 - (ExtensionHost*)extensionHost;
60 60
61 // Starts the process of showing the given popup URL. Instantiates an 61 // Starts the process of showing the given popup URL. Instantiates an
62 // ExtensionPopupController with the parent window retrieved from |browser|, a 62 // ExtensionPopupController with the parent window retrieved from |browser|, a
63 // host for the popup created by the extension process manager specific to the 63 // host for the popup created by the extension process manager specific to the
64 // browser profile and the remaining arguments |anchoredAt| and |arrowLocation|. 64 // browser profile and the remaining arguments |anchoredAt| and |arrowLocation|.
65 // |anchoredAt| is expected to be in the window's coordinates at the bottom 65 // |anchoredAt| is expected to be in the window's coordinates at the bottom
(...skipping 25 matching lines...) Expand all
91 @interface ExtensionPopupController(TestingAPI) 91 @interface ExtensionPopupController(TestingAPI)
92 // Returns a weak pointer to the current popup's view. 92 // Returns a weak pointer to the current popup's view.
93 - (NSView*)view; 93 - (NSView*)view;
94 // Returns the minimum allowed size for an extension popup. 94 // Returns the minimum allowed size for an extension popup.
95 + (NSSize)minPopupSize; 95 + (NSSize)minPopupSize;
96 // Returns the maximum allowed size for an extension popup. 96 // Returns the maximum allowed size for an extension popup.
97 + (NSSize)maxPopupSize; 97 + (NSSize)maxPopupSize;
98 @end 98 @end
99 99
100 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_POPUP_CONTROLLER_H_ 100 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_POPUP_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698