summaryrefslogtreecommitdiffstats
path: root/chrome/common/platform_util.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-23 20:28:54 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-23 20:28:54 +0000
commitae3968b3e76f0fd95b9a34c762e936f0bfde65d3 (patch)
tree8351655753593306a3c79c46d081c3664ede1803 /chrome/common/platform_util.h
parent69094b326c659f5d6d3d20bad0815af9efff3950 (diff)
downloadchromium_src-ae3968b3e76f0fd95b9a34c762e936f0bfde65d3.zip
chromium_src-ae3968b3e76f0fd95b9a34c762e936f0bfde65d3.tar.gz
chromium_src-ae3968b3e76f0fd95b9a34c762e936f0bfde65d3.tar.bz2
Add platform abstraction for simple error box, and use it in a couple extensions-related places.
Also add a virtual destructor in some unrelated infobar. BUG=27691 Review URL: http://codereview.chromium.org/427002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32840 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/platform_util.h')
-rw-r--r--chrome/common/platform_util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/platform_util.h b/chrome/common/platform_util.h
index 2aa90cb..0a042f2 100644
--- a/chrome/common/platform_util.h
+++ b/chrome/common/platform_util.h
@@ -37,6 +37,13 @@ bool IsWindowActive(gfx::NativeWindow window);
// whether the view has the visible attribute set.
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.
+void SimpleErrorBox(gfx::NativeWindow parent,
+ const string16& title,
+ const string16& message);
+
}
#endif // CHROME_COMMON_PLATFORM_UTIL_H_