| 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/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 virtual int GetDefaultDialogButton() const OVERRIDE { | 92 virtual int GetDefaultDialogButton() const OVERRIDE { |
| 93 return ui::DIALOG_BUTTON_CANCEL; | 93 return ui::DIALOG_BUTTON_CANCEL; |
| 94 } | 94 } |
| 95 virtual bool Accept() OVERRIDE; | 95 virtual bool Accept() OVERRIDE; |
| 96 virtual bool Cancel() OVERRIDE; | 96 virtual bool Cancel() OVERRIDE; |
| 97 | 97 |
| 98 // views::WidgetDelegate: | 98 // views::WidgetDelegate: |
| 99 virtual ui::ModalType GetModalType() const OVERRIDE { | 99 virtual ui::ModalType GetModalType() const OVERRIDE { |
| 100 return ui::MODAL_TYPE_WINDOW; | 100 return ui::MODAL_TYPE_WINDOW; |
| 101 } | 101 } |
| 102 virtual views::View* GetContentsView() OVERRIDE { return this; } | |
| 103 virtual string16 GetWindowTitle() const OVERRIDE; | 102 virtual string16 GetWindowTitle() const OVERRIDE; |
| 104 | 103 |
| 105 // views::View: | 104 // views::View: |
| 106 virtual gfx::Size GetPreferredSize() OVERRIDE; | 105 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 107 | 106 |
| 108 virtual void Layout() OVERRIDE; | 107 virtual void Layout() OVERRIDE; |
| 109 | 108 |
| 110 ExtensionUninstallDialogViews* dialog_; | 109 ExtensionUninstallDialogViews* dialog_; |
| 111 | 110 |
| 112 views::ImageView* icon_; | 111 views::ImageView* icon_; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 } | 236 } |
| 238 } | 237 } |
| 239 | 238 |
| 240 } // namespace | 239 } // namespace |
| 241 | 240 |
| 242 // static | 241 // static |
| 243 ExtensionUninstallDialog* ExtensionUninstallDialog::Create( | 242 ExtensionUninstallDialog* ExtensionUninstallDialog::Create( |
| 244 Browser* browser, Delegate* delegate) { | 243 Browser* browser, Delegate* delegate) { |
| 245 return new ExtensionUninstallDialogViews(browser, delegate); | 244 return new ExtensionUninstallDialogViews(browser, delegate); |
| 246 } | 245 } |
| OLD | NEW |