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

Unified Diff: components/app_modal_dialogs/app_modal_dialog.h

Issue 648833004: Componentize app_modal_dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 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: 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_

Powered by Google App Engine
This is Rietveld 408576698