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

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

Issue 10968064: Move the NOTIFICATION_APP_TERMINATING notification from content to chrome, since it's fired by chro… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: cros compile Created 8 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 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 "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/public/browser/notification_types.h" 9 #include "content/public/browser/notification_types.h"
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 NOTIFICATION_FOCUS_RETURNED_TO_BROWSER, 81 NOTIFICATION_FOCUS_RETURNED_TO_BROWSER,
82 82
83 // A new tab is created from an existing tab to serve as a target of a 83 // A new tab is created from an existing tab to serve as a target of a
84 // navigation that is about to happen. The source will be a Source<Profile> 84 // navigation that is about to happen. The source will be a Source<Profile>
85 // corresponding to the profile in which the new tab will live. Details in 85 // corresponding to the profile in which the new tab will live. Details in
86 // the form of a RetargetingDetails object are provided. 86 // the form of a RetargetingDetails object are provided.
87 NOTIFICATION_RETARGETING, 87 NOTIFICATION_RETARGETING,
88 88
89 // Application-wide ---------------------------------------------------------- 89 // Application-wide ----------------------------------------------------------
90 90
91 // This message is sent when the application is terminating (the last
92 // browser window has shutdown as part of an explicit user-initiated exit,
93 // or the user closed the last browser window on Windows/Linux and there are
94 // no BackgroundContents keeping the browser running). No source or details
95 // are passed.
96 NOTIFICATION_APP_TERMINATING,
97
91 #if defined(OS_MACOSX) 98 #if defined(OS_MACOSX)
92 // This notification is sent when the app has no key window, such as when 99 // This notification is sent when the app has no key window, such as when
93 // all windows are closed but the app is still active. No source or details 100 // all windows are closed but the app is still active. No source or details
94 // are provided. 101 // are provided.
95 NOTIFICATION_NO_KEY_WINDOW, 102 NOTIFICATION_NO_KEY_WINDOW,
96 #endif 103 #endif
97 104
98 // This is sent when the user has chosen to exit the app, but before any 105 // This is sent when the user has chosen to exit the app, but before any
99 // browsers have closed. This is sent if the user chooses to exit (via exit 106 // browsers have closed. This is sent if the user chooses to exit (via exit
100 // menu item or keyboard shortcut) or to restart the process (such as in flags 107 // menu item or keyboard shortcut) or to restart the process (such as in flags
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 // Currently only Content and Chrome define and use notifications. 1268 // Currently only Content and Chrome define and use notifications.
1262 // Custom notifications not belonging to Content and Chrome should start 1269 // Custom notifications not belonging to Content and Chrome should start
1263 // from here. 1270 // from here.
1264 NOTIFICATION_CHROME_END, 1271 NOTIFICATION_CHROME_END,
1265 }; 1272 };
1266 1273
1267 } // namespace chrome 1274 } // namespace chrome
1268 1275
1269 1276
1270 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ 1277 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/uma_browsing_activity_observer.cc ('k') | content/browser/debugger/worker_devtools_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698