Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Side by Side Diff: chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc

Issue 11571023: Move ash/wm's DialogFrameView to ui/views/window; etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reorder DialogDelegate functions; inline Get*Params into WidgetExample::ButtonPressed; etc. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_install_dialog_view.cc ('k') | chrome/browser/ui/views/hung_renderer_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698