OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/common/platform_util.h" | 5 #include "chrome/common/platform_util.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "app/l10n_util_mac.h" | 10 #include "app/l10n_util_mac.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 const string16& title, | 77 const string16& title, |
78 const string16& message) { | 78 const string16& message) { |
79 NSAlert* alert = [[[NSAlert alloc] init] autorelease]; | 79 NSAlert* alert = [[[NSAlert alloc] init] autorelease]; |
80 [alert addButtonWithTitle:l10n_util::GetNSString(IDS_OK)]; | 80 [alert addButtonWithTitle:l10n_util::GetNSString(IDS_OK)]; |
81 [alert setMessageText:base::SysUTF16ToNSString(title)]; | 81 [alert setMessageText:base::SysUTF16ToNSString(title)]; |
82 [alert setInformativeText:base::SysUTF16ToNSString(message)]; | 82 [alert setInformativeText:base::SysUTF16ToNSString(message)]; |
83 [alert setAlertStyle:NSWarningAlertStyle]; | 83 [alert setAlertStyle:NSWarningAlertStyle]; |
84 [alert runModal]; | 84 [alert runModal]; |
85 } | 85 } |
86 | 86 |
87 RendererPreferences GetInitedRendererPreferences() { | |
88 return RendererPreferences(); | |
89 } | |
90 | |
91 } // namespace platform_util | 87 } // namespace platform_util |
OLD | NEW |