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

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

Issue 12286014: Factor out uses of WebContentsModalDialog interface functions from WebContentsModalDialogManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit test failure Created 7 years, 10 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/native_web_contents_modal_dialog_manager.h
diff --git a/chrome/browser/ui/native_web_contents_modal_dialog_manager.h b/chrome/browser/ui/native_web_contents_modal_dialog_manager.h
index 684bfc7cb9a61e1bc7f209b42e6cbf60d8344169..a769246faaee4cf1b39a3eecd313a409c5ca2b5c 100644
--- a/chrome/browser/ui/native_web_contents_modal_dialog_manager.h
+++ b/chrome/browser/ui/native_web_contents_modal_dialog_manager.h
@@ -33,9 +33,19 @@ class NativeWebContentsModalDialogManager {
// notify the manager.
virtual void ManageDialog(NativeWebContentsModalDialog dialog) = 0;
+ // Makes the web contents modal dialog visible. Only one web contents modal
+ // dialog is shown at a time per tab.
+ virtual void ShowDialog(NativeWebContentsModalDialog dialog) = 0;
+
// Closes the web contents modal dialog.
virtual void CloseDialog(NativeWebContentsModalDialog dialog) = 0;
+ // Sets focus on the web contents modal dialog.
+ virtual void FocusDialog(NativeWebContentsModalDialog dialog) = 0;
+
+ // Runs a pulse animation for the web contents modal dialog.
+ virtual void PulseDialog(NativeWebContentsModalDialog dialog) = 0;
+
protected:
NativeWebContentsModalDialogManager() {}

Powered by Google App Engine
This is Rietveld 408576698