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

Side by Side Diff: chrome/common/chrome_notification_types.h

Issue 10779042: Move notifications only used in chrome/ to chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix oops Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ 5 #ifndef CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_
6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ 6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_
7 7
8 #include "content/public/browser/notification_types.h" 8 #include "content/public/browser/notification_types.h"
9 9
10 namespace chrome { 10 namespace chrome {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // Sent when the renderer returns focus to the browser, as part of focus 85 // Sent when the renderer returns focus to the browser, as part of focus
86 // traversal. The source is the browser, there are no details. 86 // traversal. The source is the browser, there are no details.
87 NOTIFICATION_FOCUS_RETURNED_TO_BROWSER, 87 NOTIFICATION_FOCUS_RETURNED_TO_BROWSER,
88 88
89 // A new tab is created from an existing tab to serve as a target of a 89 // A new tab is created from an existing tab to serve as a target of a
90 // navigation that is about to happen. The source will be a Source<Profile> 90 // navigation that is about to happen. The source will be a Source<Profile>
91 // corresponding to the profile in which the new tab will live. Details in 91 // corresponding to the profile in which the new tab will live. Details in
92 // the form of a RetargetingDetails object are provided. 92 // the form of a RetargetingDetails object are provided.
93 NOTIFICATION_RETARGETING, 93 NOTIFICATION_RETARGETING,
94 94
95 // Application-wide ----------------------------------------------------------
96
97 #if defined(OS_MACOSX)
98 // This notification is sent when the app has no key window, such as when
99 // all windows are closed but the app is still active. No source or details
100 // are provided.
101 NOTIFICATION_NO_KEY_WINDOW,
102 #endif
103
104 // This is sent when the user has chosen to exit the app, but before any
105 // browsers have closed. This is sent if the user chooses to exit (via exit
106 // menu item or keyboard shortcut) or to restart the process (such as in flags
107 // page), not if Chrome exits by some other means (such as the user closing
108 // the last window). No source or details are passed.
109 //
110 // Note that receiving this notification does not necessarily mean the process
111 // will exit because the shutdown process can be cancelled by an unload
112 // handler. Use APP_TERMINATING for such needs.
113 NOTIFICATION_CLOSE_ALL_BROWSERS_REQUEST,
114
95 // Application-modal dialogs ----------------------------------------------- 115 // Application-modal dialogs -----------------------------------------------
96 116
97 // Sent after an application-modal dialog has been shown. The source 117 // Sent after an application-modal dialog has been shown. The source
98 // is the dialog. 118 // is the dialog.
99 NOTIFICATION_APP_MODAL_DIALOG_SHOWN, 119 NOTIFICATION_APP_MODAL_DIALOG_SHOWN,
100 120
101 // This message is sent when a new InfoBar has been added to a 121 // This message is sent when a new InfoBar has been added to a
102 // InfoBarTabHelper. The source is a Source<InfoBarTabHelper> with a 122 // InfoBarTabHelper. The source is a Source<InfoBarTabHelper> with a
103 // pointer to the InfoBarTabHelper the InfoBar was added to. The details 123 // pointer to the InfoBarTabHelper the InfoBar was added to. The details
104 // is a Details<InfoBarDelegate> with a pointer to the delegate that was 124 // is a Details<InfoBarDelegate> with a pointer to the delegate that was
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 // Currently only Content and Chrome define and use notifications. 1234 // Currently only Content and Chrome define and use notifications.
1215 // Custom notifications not belonging to Content and Chrome should start 1235 // Custom notifications not belonging to Content and Chrome should start
1216 // from here. 1236 // from here.
1217 NOTIFICATION_CHROME_END, 1237 NOTIFICATION_CHROME_END,
1218 }; 1238 };
1219 1239
1220 } // namespace chrome 1240 } // namespace chrome
1221 1241
1222 1242
1223 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ 1243 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698