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 85% |
rename from chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h |
rename to components/app_modal_dialogs/app_modal_dialog.h |
index 28cf5841f3c05e87d40a647b5ab15ba02bcea3c0..12d7f5cd6f5d0039db1e7a9126ed9b87fb7fd2e2 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_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ |
+#define COMPONENTS_APP_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 to observe that a modal dialog is shown. |
+class AppModalDialogObserver { |
+ public: |
+ AppModalDialogObserver(); |
+ virtual ~AppModalDialogObserver(); |
+ |
+ // Called when the modal dialog is shown. |
+ virtual void Notify(AppModalDialog* dialog) = 0; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(AppModalDialogObserver); |
+}; |
+ |
+#endif // COMPONENTS_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ |