| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 const string16& title, | 74 const string16& title, |
| 75 const string16& message) { | 75 const string16& message) { |
| 76 NSAlert* alert = [[[NSAlert alloc] init] autorelease]; | 76 NSAlert* alert = [[[NSAlert alloc] init] autorelease]; |
| 77 [alert addButtonWithTitle:l10n_util::GetNSString(IDS_OK)]; | 77 [alert addButtonWithTitle:l10n_util::GetNSString(IDS_OK)]; |
| 78 [alert setMessageText:base::SysUTF16ToNSString(title)]; | 78 [alert setMessageText:base::SysUTF16ToNSString(title)]; |
| 79 [alert setInformativeText:base::SysUTF16ToNSString(message)]; | 79 [alert setInformativeText:base::SysUTF16ToNSString(message)]; |
| 80 [alert setAlertStyle:NSWarningAlertStyle]; | 80 [alert setAlertStyle:NSWarningAlertStyle]; |
| 81 [alert runModal]; | 81 [alert runModal]; |
| 82 } | 82 } |
| 83 | 83 |
| 84 RendererPreferences GetInitedRendererPreferences() { |
| 85 return RendererPreferences(); |
| 86 } |
| 87 |
| 84 } // namespace platform_util | 88 } // namespace platform_util |
| OLD | NEW |