OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/views/restart_message_box.h" | 5 #include "chrome/browser/views/restart_message_box.h" |
6 | 6 |
7 #include "chrome/common/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "chrome/common/message_box_flags.h" | 8 #include "chrome/common/message_box_flags.h" |
9 #include "chrome/views/controls/message_box_view.h" | 9 #include "chrome/views/controls/message_box_view.h" |
10 #include "chrome/views/window/window.h" | 10 #include "chrome/views/window/window.h" |
11 #include "grit/chromium_strings.h" | 11 #include "grit/chromium_strings.h" |
12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
13 | 13 |
14 //////////////////////////////////////////////////////////////////////////////// | 14 //////////////////////////////////////////////////////////////////////////////// |
15 // RestartMessageBox, public: | 15 // RestartMessageBox, public: |
16 | 16 |
17 // static | 17 // static |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 message_box_view_ = new MessageBoxView( | 55 message_box_view_ = new MessageBoxView( |
56 MessageBoxFlags::kFlagHasMessage | MessageBoxFlags::kFlagHasOKButton, | 56 MessageBoxFlags::kFlagHasMessage | MessageBoxFlags::kFlagHasOKButton, |
57 l10n_util::GetString(IDS_OPTIONS_RESTART_REQUIRED).c_str(), | 57 l10n_util::GetString(IDS_OPTIONS_RESTART_REQUIRED).c_str(), |
58 std::wstring(), | 58 std::wstring(), |
59 kDialogWidth); | 59 kDialogWidth); |
60 views::Window::CreateChromeWindow(parent_hwnd, gfx::Rect(), this)->Show(); | 60 views::Window::CreateChromeWindow(parent_hwnd, gfx::Rect(), this)->Show(); |
61 } | 61 } |
62 | 62 |
63 RestartMessageBox::~RestartMessageBox() { | 63 RestartMessageBox::~RestartMessageBox() { |
64 } | 64 } |
OLD | NEW |