| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/extensions/extension_uninstall_dialog.h" | 5 #include "chrome/browser/extensions/extension_uninstall_dialog.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 } // namespace | 72 } // namespace |
| 73 | 73 |
| 74 // static | 74 // static |
| 75 extensions::ExtensionUninstallDialog* | 75 extensions::ExtensionUninstallDialog* |
| 76 extensions::ExtensionUninstallDialog::Create(Profile* profile, | 76 extensions::ExtensionUninstallDialog::Create(Profile* profile, |
| 77 Browser* browser, | 77 Browser* browser, |
| 78 Delegate* delegate) { | 78 Delegate* delegate) { |
| 79 return new ExtensionUninstallDialogCocoa(profile, browser, delegate); | 79 return new ExtensionUninstallDialogCocoa(profile, browser, delegate); |
| 80 } | 80 } |
| 81 |
| 82 // static |
| 83 extensions::ExtensionUninstallDialog* |
| 84 extensions::ExtensionUninstallDialog::CreateForAppList(Profile* profile, |
| 85 gfx::NativeWindow parent, |
| 86 Delegate* delegate) { |
| 87 // We don't actually need the parent window on Mac - see class description. |
| 88 return new ExtensionUninstallDialogCocoa(profile, NULL, delegate); |
| 89 } |
| 90 |
| 91 // static |
| 92 extensions::ExtensionUninstallDialog* |
| 93 extensions::ExtensionUninstallDialog::CreateAsStandaloneDialog( |
| 94 Profile* profile, |
| 95 Delegate* delegate) { |
| 96 return new ExtensionUninstallDialogCocoa(profile, NULL, delegate); |
| 97 } |
| OLD | NEW |