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/ui/simple_message_box.h" | 5 #include "chrome/browser/ui/simple_message_box.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "chrome/browser/ui/simple_message_box_internal.h" | 12 #include "chrome/browser/ui/simple_message_box_internal.h" |
13 #include "chrome/grit/generated_resources.h" | 13 #include "chrome/grit/generated_resources.h" |
14 #include "components/constrained_window/constrained_window_views.h" | 14 #include "components/constrained_window/constrained_window_views.h" |
15 #include "components/startup_metric_utils/browser/startup_metric_utils.h" | 15 #include "components/startup_metric_utils/browser/startup_metric_utils.h" |
16 #include "grit/components_strings.h" | 16 #include "components/strings/grit/components_strings.h" |
17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
18 #include "ui/base/resource/resource_bundle.h" | 18 #include "ui/base/resource/resource_bundle.h" |
19 #include "ui/gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
20 #include "ui/views/controls/message_box_view.h" | 20 #include "ui/views/controls/message_box_view.h" |
21 #include "ui/views/widget/widget.h" | 21 #include "ui/views/widget/widget.h" |
22 #include "ui/views/window/dialog_delegate.h" | 22 #include "ui/views/window/dialog_delegate.h" |
23 | 23 |
24 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
25 #include "ui/base/win/message_box_win.h" | 25 #include "ui/base/win/message_box_win.h" |
26 #include "ui/views/win/hwnd_util.h" | 26 #include "ui/views/win/hwnd_util.h" |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 MessageBoxResult ShowMessageBoxWithButtonText(gfx::NativeWindow parent, | 274 MessageBoxResult ShowMessageBoxWithButtonText(gfx::NativeWindow parent, |
275 const base::string16& title, | 275 const base::string16& title, |
276 const base::string16& message, | 276 const base::string16& message, |
277 const base::string16& yes_text, | 277 const base::string16& yes_text, |
278 const base::string16& no_text) { | 278 const base::string16& no_text) { |
279 return ShowMessageBoxImpl(parent, title, message, MESSAGE_BOX_TYPE_QUESTION, | 279 return ShowMessageBoxImpl(parent, title, message, MESSAGE_BOX_TYPE_QUESTION, |
280 yes_text, no_text, base::string16()); | 280 yes_text, no_text, base::string16()); |
281 } | 281 } |
282 | 282 |
283 } // namespace chrome | 283 } // namespace chrome |
OLD | NEW |