Index: components/app_modal_dialogs/app_modal_dialog.h |
diff --git a/chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h b/components/app_modal_dialogs/app_modal_dialog.h |
similarity index 84% |
rename from chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h |
rename to components/app_modal_dialogs/app_modal_dialog.h |
index 28cf5841f3c05e87d40a647b5ab15ba02bcea3c0..7b572170ef2044e75ba62ee85d741458b012f8b6 100644 |
--- a/chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h |
+++ b/components/app_modal_dialogs/app_modal_dialog.h |
@@ -2,8 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CHROME_BROWSER_UI_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ |
-#define CHROME_BROWSER_UI_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ |
+#ifndef COMPONENTS_SYSTEM_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ |
+#define COMPONENTS_SYSTEM_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ |
#include <string> |
@@ -89,4 +89,17 @@ class AppModalDialog { |
DISALLOW_COPY_AND_ASSIGN(AppModalDialog); |
}; |
-#endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ |
+// An interface used to wait until the modal dialog gets shwon. |
Avi (use Gerrit)
2014/10/21 17:14:29
s/shwon/shown/
oshima
2014/10/21 18:27:15
Done.
|
+class AppModalDialogWaiter { |
+ public: |
+ AppModalDialogWaiter(); |
+ virtual ~AppModalDialogWaiter(); |
+ |
+ // Wait until the modal dialog is shown and return the shown dialog. |
+ virtual AppModalDialog* Wait() = 0; |
+ |
+ // Called when the modal dialog is shown. |
+ virtual void Notify(AppModalDialog* dialog) = 0; |
+}; |
+ |
+#endif // COMPONENTS_SYSTEM_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ |