summaryrefslogtreecommitdiffstats
path: root/chrome/browser/platform_util.h
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-25 21:29:10 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-25 21:29:10 +0000
commite313f3b11360902a3da9b3b1cc0df2a4792d0867 (patch)
tree609e260af0138ff982d26f80c22f5beec7e3efc2 /chrome/browser/platform_util.h
parentd5c7934b36545f324df7d2f47527c41653b26771 (diff)
downloadchromium_src-e313f3b11360902a3da9b3b1cc0df2a4792d0867.zip
chromium_src-e313f3b11360902a3da9b3b1cc0df2a4792d0867.tar.gz
chromium_src-e313f3b11360902a3da9b3b1cc0df2a4792d0867.tar.bz2
Make a new yes/no messagebox wrapper function, use it in the bookmark alert.
Recommitting of r46101. BUG=http://crbug.com/34481; http://crbug.com/40011 TEST=on Mac/ChromeOS, have at least 15 bookmarks on bookmarks bar or other bookmarks, right click on one of those and click on Open all bookmarks. A confirmation dialog box should be shown. No other visible change. Review URL: http://codereview.chromium.org/1745024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50894 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/platform_util.h')
-rw-r--r--chrome/browser/platform_util.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/platform_util.h b/chrome/browser/platform_util.h
index 4ab45b2..1140561 100644
--- a/chrome/browser/platform_util.h
+++ b/chrome/browser/platform_util.h
@@ -39,11 +39,18 @@ bool IsVisible(gfx::NativeView view);
// Pops up an error box with an OK button. If |parent| is non-null, the box
// will be modal on it. (On Mac, it is always app-modal.) Generally speaking,
-// this class should not be used for much. Infobars are preferred.
+// this function should not be used for much. Infobars are preferred.
void SimpleErrorBox(gfx::NativeWindow parent,
const string16& title,
const string16& message);
+// Pops up a dialog box with two buttons (Yes/No), with the default button of
+// Yes. If |parent| is non-null, the box will be modal on it. (On Mac, it is
+// always app-modal.) Returns true if the Yes button was chosen.
+bool SimpleYesNoBox(gfx::NativeWindow parent,
+ const string16& title,
+ const string16& message);
+
// Return a human readable modifier for the version string. For a
// branded Chrome (not Chromium), this modifier is the channel (dev,
// beta, but "" for stable).