| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_EXTENSION_INSTALL_PROMPT_H_ | 5 #ifndef CHROME_BROWSER_COCOA_EXTENSION_INSTALL_PROMPT_H_ |
| 6 #define CHROME_BROWSER_COCOA_EXTENSION_INSTALL_PROMPT_H_ | 6 #define CHROME_BROWSER_COCOA_EXTENSION_INSTALL_PROMPT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | |
| 10 #include <vector> | 9 #include <vector> |
| 11 | 10 |
| 12 #import <Cocoa/Cocoa.h> | 11 #import <Cocoa/Cocoa.h> |
| 13 | 12 |
| 14 #include "base/scoped_nsobject.h" | 13 #include "base/scoped_nsobject.h" |
| 14 #include "base/string16.h" |
| 15 #include "chrome/browser/extensions/extension_install_ui.h" | 15 #include "chrome/browser/extensions/extension_install_ui.h" |
| 16 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
| 17 | 17 |
| 18 class Extension; | 18 class Extension; |
| 19 class Profile; | 19 class Profile; |
| 20 | 20 |
| 21 // A controller for dialog to let the user install an extension. Created by | 21 // A controller for dialog to let the user install an extension. Created by |
| 22 // CrxInstaller. | 22 // CrxInstaller. |
| 23 @interface ExtensionInstallPromptController : NSWindowController { | 23 @interface ExtensionInstallPromptController : NSWindowController { |
| 24 @private | 24 @private |
| (...skipping 28 matching lines...) Expand all Loading... |
| 53 delegate:(ExtensionInstallUI::Delegate*)delegate | 53 delegate:(ExtensionInstallUI::Delegate*)delegate |
| 54 icon:(SkBitmap*)bitmap | 54 icon:(SkBitmap*)bitmap |
| 55 warnings:(const std::vector<string16>&)warnings; | 55 warnings:(const std::vector<string16>&)warnings; |
| 56 - (void)runAsModalSheet; | 56 - (void)runAsModalSheet; |
| 57 - (IBAction)cancel:(id)sender; | 57 - (IBAction)cancel:(id)sender; |
| 58 - (IBAction)ok:(id)sender; | 58 - (IBAction)ok:(id)sender; |
| 59 | 59 |
| 60 @end | 60 @end |
| 61 | 61 |
| 62 #endif /* CHROME_BROWSER_COCOA_EXTENSION_INSTALL_PROMPT_H_ */ | 62 #endif /* CHROME_BROWSER_COCOA_EXTENSION_INSTALL_PROMPT_H_ */ |
| OLD | NEW |