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 #include "chrome/browser/extensions/extension_uninstall_dialog.h" | 5 #include "chrome/browser/extensions/extension_uninstall_dialog.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "ui/views/widget/widget.h" | 24 #include "ui/views/widget/widget.h" |
25 #include "ui/views/window/dialog_delegate.h" | 25 #include "ui/views/window/dialog_delegate.h" |
26 | 26 |
27 #if defined(USE_ASH) | 27 #if defined(USE_ASH) |
28 #include "ash/shell.h" | 28 #include "ash/shell.h" |
29 #endif | 29 #endif |
30 | 30 |
31 namespace { | 31 namespace { |
32 | 32 |
33 const int kRightColumnWidth = 210; | 33 const int kRightColumnWidth = 210; |
34 const int kIconSize = 69; | 34 const int kIconSize = 64; |
35 | 35 |
36 class ExtensionUninstallDialogDelegateView; | 36 class ExtensionUninstallDialogDelegateView; |
37 | 37 |
38 // Returns parent window for extension uninstall dialog. | 38 // Returns parent window for extension uninstall dialog. |
39 gfx::NativeWindow GetParent(Browser* browser) { | 39 gfx::NativeWindow GetParent(Browser* browser) { |
40 if (browser && browser->window()) | 40 if (browser && browser->window()) |
41 return browser->window()->GetNativeWindow(); | 41 return browser->window()->GetNativeWindow(); |
42 return NULL; | 42 return NULL; |
43 } | 43 } |
44 | 44 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 244 |
245 } // namespace | 245 } // namespace |
246 | 246 |
247 // static | 247 // static |
248 ExtensionUninstallDialog* ExtensionUninstallDialog::Create( | 248 ExtensionUninstallDialog* ExtensionUninstallDialog::Create( |
249 Profile* profile, | 249 Profile* profile, |
250 Browser* browser, | 250 Browser* browser, |
251 Delegate* delegate) { | 251 Delegate* delegate) { |
252 return new ExtensionUninstallDialogViews(profile, browser, delegate); | 252 return new ExtensionUninstallDialogViews(profile, browser, delegate); |
253 } | 253 } |
OLD | NEW |