| OLD | NEW |
| 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_WEB_INTENT_SHEET_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_WEB_INTENT_SHEET_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_WEB_INTENT_SHEET_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_WEB_INTENT_SHEET_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
| 11 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | 11 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
| 12 #include "chrome/browser/ui/intents/web_intent_picker.h" | 12 #include "chrome/browser/ui/intents/web_intent_picker.h" |
| 13 | 13 |
| 14 class TabContents; |
| 14 class WebIntentPickerCocoa; | 15 class WebIntentPickerCocoa; |
| 15 class WebIntentPickerModel; | 16 class WebIntentPickerModel; |
| 16 | 17 |
| 17 @class IntentView; | 18 @class IntentView; |
| 18 @class WaitingView; | 19 @class WaitingView; |
| 19 | 20 |
| 20 // Controller for intent picker constrained dialog. This dialog pops up | 21 // Controller for intent picker constrained dialog. This dialog pops up |
| 21 // whenever a web page invokes ActivateIntent and lets the user choose which | 22 // whenever a web page invokes ActivateIntent and lets the user choose which |
| 22 // service should be used to handle this action. | 23 // service should be used to handle this action. |
| 23 @interface WebIntentPickerSheetController : NSWindowController { | 24 @interface WebIntentPickerSheetController : NSWindowController { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // Close the current sheet (and by extension, the constrained dialog). | 65 // Close the current sheet (and by extension, the constrained dialog). |
| 65 - (void)closeSheet; | 66 - (void)closeSheet; |
| 66 | 67 |
| 67 // Notification handler - called when sheet has been closed. | 68 // Notification handler - called when sheet has been closed. |
| 68 - (void)sheetDidEnd:(NSWindow*)sheet | 69 - (void)sheetDidEnd:(NSWindow*)sheet |
| 69 returnCode:(int)returnCode | 70 returnCode:(int)returnCode |
| 70 contextInfo:(void*)contextInfo; | 71 contextInfo:(void*)contextInfo; |
| 71 @end // WebIntentPickerSheetController | 72 @end // WebIntentPickerSheetController |
| 72 | 73 |
| 73 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_SHEET_CONTROLLER_H_ | 74 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_SHEET_CONTROLLER_H_ |
| OLD | NEW |