OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 5 #ifndef CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
6 #define CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 6 #define CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "extensions/features/features.h" | 9 #include "extensions/features/features.h" |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 // This message is sent after a window has been opened. The source is a | 33 // This message is sent after a window has been opened. The source is a |
34 // Source<Browser> containing the affected Browser. No details are | 34 // Source<Browser> containing the affected Browser. No details are |
35 // expected. | 35 // expected. |
36 NOTIFICATION_BROWSER_OPENED = NOTIFICATION_CHROME_START, | 36 NOTIFICATION_BROWSER_OPENED = NOTIFICATION_CHROME_START, |
37 | 37 |
38 // This message is sent soon after BROWSER_OPENED, and indicates that | 38 // This message is sent soon after BROWSER_OPENED, and indicates that |
39 // the Browser's |window_| is now non-NULL. The source is a Source<Browser> | 39 // the Browser's |window_| is now non-NULL. The source is a Source<Browser> |
40 // containing the affected Browser. No details are expected. | 40 // containing the affected Browser. No details are expected. |
41 NOTIFICATION_BROWSER_WINDOW_READY, | 41 NOTIFICATION_BROWSER_WINDOW_READY, |
42 | 42 |
43 // This message is sent when a browser is closing. The source is a | |
44 // Source<Browser> containing the affected Browser. No details are expected. | |
45 // This is sent prior to BROWSER_CLOSED, and may be sent more than once for a | |
46 // particular browser. | |
47 NOTIFICATION_BROWSER_CLOSING, | |
48 | |
49 // This message is sent after a window has been closed. The source is a | 43 // This message is sent after a window has been closed. The source is a |
50 // Source<Browser> containing the affected Browser. No details are exptected. | 44 // Source<Browser> containing the affected Browser. No details are exptected. |
51 NOTIFICATION_BROWSER_CLOSED, | 45 NOTIFICATION_BROWSER_CLOSED, |
52 | 46 |
53 // This message is sent when closing a browser has been cancelled, either by | 47 // This message is sent when closing a browser has been cancelled, either by |
54 // the user cancelling a beforeunload dialog, or IsClosingPermitted() | 48 // the user cancelling a beforeunload dialog, or IsClosingPermitted() |
55 // disallowing closing. This notification implies that no BROWSER_CLOSING or | 49 // disallowing closing. This notification implies that no BROWSER_CLOSING or |
56 // BROWSER_CLOSED notification will be sent. | 50 // BROWSER_CLOSED notification will be sent. |
57 // The source is a Source<Browser> containing the affected browser. No details | 51 // The source is a Source<Browser> containing the affected browser. No details |
58 // are expected. | 52 // are expected. |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 // Note:- | 463 // Note:- |
470 // Currently only Content and Chrome define and use notifications. | 464 // Currently only Content and Chrome define and use notifications. |
471 // Custom notifications not belonging to Content and Chrome should start | 465 // Custom notifications not belonging to Content and Chrome should start |
472 // from here. | 466 // from here. |
473 NOTIFICATION_CHROME_END, | 467 NOTIFICATION_CHROME_END, |
474 }; | 468 }; |
475 | 469 |
476 } // namespace chrome | 470 } // namespace chrome |
477 | 471 |
478 #endif // CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 472 #endif // CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
OLD | NEW |