Index: chrome/browser/ui/cocoa/web_intent_bubble_controller.h |
diff --git a/chrome/browser/ui/cocoa/web_intent_bubble_controller.h b/chrome/browser/ui/cocoa/web_intent_bubble_controller.h |
index e226fadc606d37c56287c8d50a534c981236d526..3e38c79f84fe22811aa0e13ab2e5f40038fbedbc 100644 |
--- a/chrome/browser/ui/cocoa/web_intent_bubble_controller.h |
+++ b/chrome/browser/ui/cocoa/web_intent_bubble_controller.h |
@@ -15,10 +15,10 @@ |
class WebIntentPickerCocoa; |
class WebIntentPickerModel; |
-// Controller for intent picker bubble. This bubble pops up whenever a web |
-// page invokes ActivateIntent and lets the user choose which service should |
-// be used to handle this action. |
-@interface WebIntentBubbleController : BaseBubbleController { |
+// Controller for intent picker constrained dialog. This bubble pops up whenever |
+// a web page invokes ActivateIntent and lets the user choose which service |
+// should be used to handle this action. |
+@interface WebIntentBubbleController : NSWindowController { |
@private |
// C++ <-> ObjectiveC bridge. Weak reference. |
WebIntentPickerCocoa* picker_; |
@@ -27,16 +27,21 @@ class WebIntentPickerModel; |
TabContentsWrapper* contents_; |
} |
-// Initialize the window, and connect to bridge. |
-- (id)initWithPicker:(WebIntentPickerCocoa*)picker |
- parentWindow:(NSWindow*)parent |
- anchoredAt:(NSPoint)point; |
+// Initialize the constrained dialog, and connect to picker. |
+- (id)initWithPicker:(WebIntentPickerCocoa*)picker; |
// Set the contents for inline disposition intents. |
- (void)setInlineDispositionTabContents:(TabContentsWrapper*)wrapper; |
- (void)performLayoutWithModel:(WebIntentPickerModel*)model; |
+// Close the current sheet (and by extension, the constrained dialog). |
+- (void)closeSheet; |
+ |
+// Notification handler - called when sheet has been closed. |
+- (void)sheetDidEnd:(NSWindow*)sheet |
+ returnCode:(int)returnCode |
+ contextInfo:(void*)contextInfo; |
@end // WebIntentBubbleController |
#endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_BUBBLE_CONTROLLER_H_ |