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

Unified Diff: chrome/browser/platform_util_mac.mm

Issue 7601014: browser: Abstract message box dialog functions into its own header file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile on linux_view? Created 9 years, 4 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/platform_util_common_linux.cc ('k') | chrome/browser/platform_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/platform_util_mac.mm
diff --git a/chrome/browser/platform_util_mac.mm b/chrome/browser/platform_util_mac.mm
index 1934b1ca31e9df04855e65640004c347458bf3a5..ada0a98d4637f65bbf48340c22cdc7c69b5ef904 100644
--- a/chrome/browser/platform_util_mac.mm
+++ b/chrome/browser/platform_util_mac.mm
@@ -152,32 +152,4 @@ bool IsVisible(gfx::NativeView view) {
[[view window] isVisible]);
}
-void SimpleErrorBox(gfx::NativeWindow parent,
- const string16& title,
- const string16& message) {
- // Ignore the title; it's the window title on other platforms and ignorable.
- NSAlert* alert = [[[NSAlert alloc] init] autorelease];
- [alert addButtonWithTitle:l10n_util::GetNSString(IDS_OK)];
- [alert setMessageText:base::SysUTF16ToNSString(message)];
- [alert setAlertStyle:NSWarningAlertStyle];
- [alert runModal];
-}
-
-bool SimpleYesNoBox(gfx::NativeWindow parent,
- const string16& title,
- const string16& message) {
- // Ignore the title; it's the window title on other platforms and ignorable.
- NSAlert* alert = [[[NSAlert alloc] init] autorelease];
- [alert setMessageText:base::SysUTF16ToNSString(message)];
- [alert setAlertStyle:NSWarningAlertStyle];
-
- [alert addButtonWithTitle:
- l10n_util::GetNSString(IDS_CONFIRM_MESSAGEBOX_YES_BUTTON_LABEL)];
- [alert addButtonWithTitle:
- l10n_util::GetNSString(IDS_CONFIRM_MESSAGEBOX_NO_BUTTON_LABEL)];
-
- NSInteger result = [alert runModal];
- return result == NSAlertFirstButtonReturn;
-}
-
} // namespace platform_util
« no previous file with comments | « chrome/browser/platform_util_common_linux.cc ('k') | chrome/browser/platform_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698