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 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
11 #include "chrome/browser/ui/simple_message_box_internal.h" | 11 #include "chrome/browser/ui/simple_message_box_internal.h" |
12 #include "chrome/grit/generated_resources.h" | 12 #include "chrome/grit/generated_resources.h" |
13 #include "components/startup_metric_utils/browser/startup_metric_utils.h" | 13 #include "components/startup_metric_utils/browser/startup_metric_utils.h" |
14 #include "grit/components_strings.h" | 14 #include "components/strings/grit/components_strings.h" |
15 #include "ui/base/l10n/l10n_util_mac.h" | 15 #include "ui/base/l10n/l10n_util_mac.h" |
16 | 16 |
17 namespace chrome { | 17 namespace chrome { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 MessageBoxResult ShowMessageBox(gfx::NativeWindow parent, | 21 MessageBoxResult ShowMessageBox(gfx::NativeWindow parent, |
22 const base::string16& title, | 22 const base::string16& title, |
23 const base::string16& message, | 23 const base::string16& message, |
24 const base::string16& checkbox_text, | 24 const base::string16& checkbox_text, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 } | 78 } |
79 | 79 |
80 MessageBoxResult ShowQuestionMessageBox(gfx::NativeWindow parent, | 80 MessageBoxResult ShowQuestionMessageBox(gfx::NativeWindow parent, |
81 const base::string16& title, | 81 const base::string16& title, |
82 const base::string16& message) { | 82 const base::string16& message) { |
83 return ShowMessageBox(parent, title, message, base::string16(), | 83 return ShowMessageBox(parent, title, message, base::string16(), |
84 MESSAGE_BOX_TYPE_QUESTION); | 84 MESSAGE_BOX_TYPE_QUESTION); |
85 } | 85 } |
86 | 86 |
87 } // namespace chrome | 87 } // namespace chrome |
OLD | NEW |