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 |
11 #import "base/mac/scoped_nsobject.h" | 11 #import "base/mac/scoped_nsobject.h" |
12 #import "base/strings/sys_string_conversions.h" | 12 #import "base/strings/sys_string_conversions.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/grit/generated_resources.h" | 14 #include "chrome/grit/generated_resources.h" |
| 15 #include "components/strings/grit/components_strings.h" |
15 #include "extensions/common/extension.h" | 16 #include "extensions/common/extension.h" |
16 #include "grit/components_strings.h" | |
17 #include "skia/ext/skia_utils_mac.h" | 17 #include "skia/ext/skia_utils_mac.h" |
18 #include "ui/base/l10n/l10n_util_mac.h" | 18 #include "ui/base/l10n/l10n_util_mac.h" |
19 #include "ui/gfx/image/image_skia_util_mac.h" | 19 #include "ui/gfx/image/image_skia_util_mac.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 // The Cocoa implementation of ExtensionUninstallDialog. This has a less | 23 // The Cocoa implementation of ExtensionUninstallDialog. This has a less |
24 // complex life cycle than the Views and GTK implementations because the | 24 // complex life cycle than the Views and GTK implementations because the |
25 // dialog blocks the page from navigating away and destroying the dialog, | 25 // dialog blocks the page from navigating away and destroying the dialog, |
26 // so there's no way for the dialog to outlive its delegate. | 26 // so there's no way for the dialog to outlive its delegate. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 } // namespace | 82 } // namespace |
83 | 83 |
84 // static | 84 // static |
85 extensions::ExtensionUninstallDialog* | 85 extensions::ExtensionUninstallDialog* |
86 extensions::ExtensionUninstallDialog::Create(Profile* profile, | 86 extensions::ExtensionUninstallDialog::Create(Profile* profile, |
87 gfx::NativeWindow parent, | 87 gfx::NativeWindow parent, |
88 Delegate* delegate) { | 88 Delegate* delegate) { |
89 return new ExtensionUninstallDialogCocoa(profile, delegate); | 89 return new ExtensionUninstallDialogCocoa(profile, delegate); |
90 } | 90 } |
OLD | NEW |