Chromium Code Reviews| 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 "chrome/browser/ui/views/restart_message_box.h" | 5 #include "chrome/browser/ui/views/restart_message_box.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "grit/chromium_strings.h" | 8 #include "grit/chromium_strings.h" |
| 9 #include "grit/generated_resources.h" | 9 #include "grit/generated_resources.h" |
| 10 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 return message_box_view_->GetWidget(); | 55 return message_box_view_->GetWidget(); |
| 56 } | 56 } |
| 57 | 57 |
| 58 //////////////////////////////////////////////////////////////////////////////// | 58 //////////////////////////////////////////////////////////////////////////////// |
| 59 // RestartMessageBox, private: | 59 // RestartMessageBox, private: |
| 60 | 60 |
| 61 RestartMessageBox::RestartMessageBox(gfx::NativeWindow parent_window) { | 61 RestartMessageBox::RestartMessageBox(gfx::NativeWindow parent_window) { |
| 62 const int kDialogWidth = 400; | 62 const int kDialogWidth = 400; |
| 63 // Also deleted when the window closes. | 63 // Also deleted when the window closes. |
| 64 message_box_view_ = new views::MessageBoxView( | 64 message_box_view_ = new views::MessageBoxView( |
| 65 ui::MessageBoxFlags::kFlagHasMessage | | 65 ui::MESSAGE_BOX_HAS_MESSAGE | ui::MESSAGE_BOX_HAS_OK_BUTTON, |
|
tfarina
2011/11/12 12:40:22
this should be ui::MessageBoxFlags::kIsJavascriptA
| |
| 66 ui::MessageBoxFlags::kFlagHasOKButton, | |
| 67 l10n_util::GetStringUTF16(IDS_OPTIONS_RELAUNCH_REQUIRED), | 66 l10n_util::GetStringUTF16(IDS_OPTIONS_RELAUNCH_REQUIRED), |
| 68 string16(), | 67 string16(), |
| 69 kDialogWidth); | 68 kDialogWidth); |
| 70 views::Widget::CreateWindowWithParent(this, parent_window)->Show(); | 69 views::Widget::CreateWindowWithParent(this, parent_window)->Show(); |
| 71 } | 70 } |
| 72 | 71 |
| 73 RestartMessageBox::~RestartMessageBox() { | 72 RestartMessageBox::~RestartMessageBox() { |
| 74 } | 73 } |
| OLD | NEW |