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

Side by Side Diff: chrome/browser/ui/views/repost_form_warning_view.cc

Issue 8536026: Convert MessageBoxFlags class into an enum. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 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/ui/views/repost_form_warning_view.h" 5 #include "chrome/browser/ui/views/repost_form_warning_view.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/repost_form_warning_controller.h" 8 #include "chrome/browser/repost_form_warning_controller.h"
9 #include "chrome/browser/ui/browser_list.h" 9 #include "chrome/browser/ui/browser_list.h"
10 #include "chrome/browser/ui/browser_window.h" 10 #include "chrome/browser/ui/browser_window.h"
(...skipping 18 matching lines...) Expand all
29 29
30 ////////////////////////////////////////////////////////////////////////////// 30 //////////////////////////////////////////////////////////////////////////////
31 // RepostFormWarningView, constructor & destructor: 31 // RepostFormWarningView, constructor & destructor:
32 32
33 RepostFormWarningView::RepostFormWarningView( 33 RepostFormWarningView::RepostFormWarningView(
34 gfx::NativeWindow parent_window, 34 gfx::NativeWindow parent_window,
35 TabContents* tab_contents) 35 TabContents* tab_contents)
36 : controller_(new RepostFormWarningController(tab_contents)), 36 : controller_(new RepostFormWarningController(tab_contents)),
37 message_box_view_(NULL) { 37 message_box_view_(NULL) {
38 message_box_view_ = new views::MessageBoxView( 38 message_box_view_ = new views::MessageBoxView(
39 ui::MessageBoxFlags::kIsConfirmMessageBox, 39 ui::MESSAGE_BOX_IS_CONFIRM_DIALOG,
tfarina 2011/11/12 12:40:22 MessageBoxView does not check any of the flags pas
tfarina 2011/11/12 22:33:56 Scott, I think this patch http://codereview.chromi
40 l10n_util::GetStringUTF16(IDS_HTTP_POST_WARNING), 40 l10n_util::GetStringUTF16(IDS_HTTP_POST_WARNING),
41 string16()); 41 string16());
42 TabContentsWrapper* wrapper = 42 TabContentsWrapper* wrapper =
43 TabContentsWrapper::GetCurrentWrapperForContents(tab_contents); 43 TabContentsWrapper::GetCurrentWrapperForContents(tab_contents);
44 controller_->set_window(new ConstrainedWindowViews(wrapper, this)); 44 controller_->set_window(new ConstrainedWindowViews(wrapper, this));
45 } 45 }
46 46
47 RepostFormWarningView::~RepostFormWarningView() { 47 RepostFormWarningView::~RepostFormWarningView() {
48 } 48 }
49 49
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 controller_->Continue(); 84 controller_->Continue();
85 return true; 85 return true;
86 } 86 }
87 87
88 /////////////////////////////////////////////////////////////////////////////// 88 ///////////////////////////////////////////////////////////////////////////////
89 // RepostFormWarningView, RepostFormWarning implementation: 89 // RepostFormWarningView, RepostFormWarning implementation:
90 90
91 void RepostFormWarningView::DeleteDelegate() { 91 void RepostFormWarningView::DeleteDelegate() {
92 delete this; 92 delete this;
93 } 93 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698