OLD | NEW |
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 CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
7 | 7 |
8 // This file describes various types used to describe and filter notifications | 8 // This file describes various types used to describe and filter notifications |
9 // that pass through the NotificationService. | 9 // that pass through the NotificationService. |
10 // | 10 // |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // example, the user might have explicitly allowed some broken certificate | 141 // example, the user might have explicitly allowed some broken certificate |
142 // or a secure origin might have included some insecure content. Listen to | 142 // or a secure origin might have included some insecure content. Listen to |
143 // this notifiation if you need to keep track of our internal SSL state. | 143 // this notifiation if you need to keep track of our internal SSL state. |
144 // | 144 // |
145 // The source will be the browser context. The details will be the navigation | 145 // The source will be the browser context. The details will be the navigation |
146 // controller associated with the state change. | 146 // controller associated with the state change. |
147 NOTIFICATION_SSL_INTERNAL_STATE_CHANGED, | 147 NOTIFICATION_SSL_INTERNAL_STATE_CHANGED, |
148 | 148 |
149 // Application-wide ---------------------------------------------------------- | 149 // Application-wide ---------------------------------------------------------- |
150 | 150 |
151 #if defined(OS_MACOSX) | |
152 // This message is sent when the application is made active (Mac OS X only | |
153 // at present). No source or details are passed. | |
154 NOTIFICATION_APP_ACTIVATED, | |
155 #endif | |
156 | |
157 // This message is sent when the application is terminating (the last | 151 // This message is sent when the application is terminating (the last |
158 // browser window has shutdown as part of an explicit user-initiated exit, | 152 // browser window has shutdown as part of an explicit user-initiated exit, |
159 // or the user closed the last browser window on Windows/Linux and there are | 153 // or the user closed the last browser window on Windows/Linux and there are |
160 // no BackgroundContents keeping the browser running). No source or details | 154 // no BackgroundContents keeping the browser running). No source or details |
161 // are passed. | 155 // are passed. |
162 NOTIFICATION_APP_TERMINATING, | 156 NOTIFICATION_APP_TERMINATING, |
163 | 157 |
164 // Devtools ------------------------------------------------------------------ | 158 // Devtools ------------------------------------------------------------------ |
165 | 159 |
166 // Indicates that a devtools agent has attached to a client. The source is | 160 // Indicates that a devtools agent has attached to a client. The source is |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 // of a temporary zoom level change, the details is an empty string. | 372 // of a temporary zoom level change, the details is an empty string. |
379 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 373 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
380 | 374 |
381 // Custom notifications used by the embedder should start from here. | 375 // Custom notifications used by the embedder should start from here. |
382 NOTIFICATION_CONTENT_END, | 376 NOTIFICATION_CONTENT_END, |
383 }; | 377 }; |
384 | 378 |
385 } // namespace content | 379 } // namespace content |
386 | 380 |
387 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 381 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
OLD | NEW |