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

Unified Diff: chrome/browser/ui/simple_message_box.h

Issue 2441403003: Use a standard message box for DesktopCastingWarningView. (Closed)
Patch Set: all good Created 4 years, 2 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
Index: chrome/browser/ui/simple_message_box.h
diff --git a/chrome/browser/ui/simple_message_box.h b/chrome/browser/ui/simple_message_box.h
index 4918861fff8a8c737724eaa839542003b6ba471c..b643c6ccd21b6a8f750c06f912bd0d939e7400d7 100644
--- a/chrome/browser/ui/simple_message_box.h
+++ b/chrome/browser/ui/simple_message_box.h
@@ -61,6 +61,10 @@ MessageBoxResult ShowMessageBoxWithButtonText(gfx::NativeWindow parent,
const base::string16& yes_text,
const base::string16& no_text);
+// Closes the current message box, if any, accepting or declining based on
+// |accept|. Returns whether there was a message box showing.
+bool CloseMessageBoxForTest(bool accept);
Daniel Erat 2016/10/27 17:23:19 nit: consider WARN_UNUSED_RESULT if tests ought to
Evan Stade 2016/10/27 19:11:18 Done.
+
} // namespace chrome
#endif // CHROME_BROWSER_UI_SIMPLE_MESSAGE_BOX_H_

Powered by Google App Engine
This is Rietveld 408576698