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

Unified Diff: ui/web_dialogs/web_dialog_notification_types.h

Issue 10353007: Extract a minimal subset of WebDialogUI/WebDialogDelegate from src/chrome -> src/ui/web_dialogs Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 8 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: ui/web_dialogs/web_dialog_notification_types.h
===================================================================
--- ui/web_dialogs/web_dialog_notification_types.h (revision 0)
+++ ui/web_dialogs/web_dialog_notification_types.h (revision 0)
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_WEB_DIALOGS_WEB_DIALOG_NOTIFICATION_TYPES_H_
+#define UI_WEB_DIALOGS_WEB_DIALOG_NOTIFICATION_TYPES_H_
+#pragma once
+
+#include "content/public/browser/notification_types.h"
+
+namespace web_dialogs {
+
+enum NotificationType {
+ NOTIFICATION_WEB_DIALOGS_START = content::NOTIFICATION_CONTENT_END,
+
+ // Sent after an WebDialog dialog has been shown. The source is the
+ // dialog. The details is a Details<RenderViewHost> with a pointer to the RVH
+ // for the shown dialog.
+ NOTIFICATION_WEB_DIALOG_SHOWN = NOTIFICATION_WEB_DIALOGS_START,
+
+ // Note:-
+ // Currently only Content, Chrome and WebDialogs define and use notifications.
+ // Custom notifications should start from chrome::NOTIFICATION_CHROME_END,
+ // not from here.
+ NOTIFICATION_WEB_DIALOGS_END,
+};
+
+} // namespace web_dialogs
+
+
+#endif // UI_WEB_DIALOGS_WEB_DIALOG_NOTIFICATION_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698