Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: chrome/common/platform_util_mac.mm

Issue 458013: Make the default RendererPreferences smarter.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/platform_util_linux.cc ('k') | chrome/common/platform_util_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/common/platform_util_linux.cc ('k') | chrome/common/platform_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698