| 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/extensions/extension_uninstall_dialog.h" | 9 #include "chrome/browser/extensions/extension_uninstall_dialog.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/ui/browser_list.h" | 11 #include "chrome/browser/ui/browser_list.h" |
| 12 #include "chrome/browser/ui/browser_window.h" | 12 #include "chrome/browser/ui/browser_window.h" |
| 13 #include "chrome/browser/ui/views/window.h" | 13 #include "chrome/browser/ui/views/window.h" |
| 14 #include "chrome/common/extensions/extension.h" | 14 #include "chrome/common/extensions/extension.h" |
| 15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
| 16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
| 17 #include "ui/gfx/compositor/compositor.h" | 17 #include "ui/gfx/compositor/compositor.h" |
| 18 #include "ui/gfx/compositor/layer.h" | 18 #include "ui/gfx/compositor/layer.h" |
| 19 #include "ui/views/layout/layout_constants.h" | 19 #include "ui/views/layout/layout_constants.h" |
| 20 #include "ui/views/widget/widget.h" | |
| 21 #include "ui/views/window/dialog_delegate.h" | 20 #include "ui/views/window/dialog_delegate.h" |
| 22 #include "views/controls/image_view.h" | 21 #include "views/controls/image_view.h" |
| 23 #include "views/controls/label.h" | 22 #include "views/controls/label.h" |
| 24 #include "views/view.h" | 23 #include "views/view.h" |
| 24 #include "views/widget/widget.h" |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 const int kRightColumnWidth = 210; | 28 const int kRightColumnWidth = 210; |
| 29 const int kIconSize = 69; | 29 const int kIconSize = 69; |
| 30 | 30 |
| 31 class ExtensionUninstallDialogDelegateView; | 31 class ExtensionUninstallDialogDelegateView; |
| 32 | 32 |
| 33 // Views implementation of the uninstall dialog. | 33 // Views implementation of the uninstall dialog. |
| 34 class ExtensionUninstallDialogViews : public ExtensionUninstallDialog { | 34 class ExtensionUninstallDialogViews : public ExtensionUninstallDialog { |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 } | 224 } |
| 225 } | 225 } |
| 226 | 226 |
| 227 } // namespace | 227 } // namespace |
| 228 | 228 |
| 229 // static | 229 // static |
| 230 ExtensionUninstallDialog* ExtensionUninstallDialog::Create( | 230 ExtensionUninstallDialog* ExtensionUninstallDialog::Create( |
| 231 Profile* profile, Delegate* delegate) { | 231 Profile* profile, Delegate* delegate) { |
| 232 return new ExtensionUninstallDialogViews(profile, delegate); | 232 return new ExtensionUninstallDialogViews(profile, delegate); |
| 233 } | 233 } |
| OLD | NEW |