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 #pragma once | 7 #pragma once |
8 | 8 |
9 // This file describes various types used to describe and filter notifications | 9 // This file describes various types used to describe and filter notifications |
10 // that pass through the NotificationService. | 10 // that pass through the NotificationService. |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
205 // This message is sent after a WebContents is disconnected from the | 205 // This message is sent after a WebContents is disconnected from the |
206 // renderer process. The source is a Source<WebContents> with a pointer to | 206 // renderer process. The source is a Source<WebContents> with a pointer to |
207 // the WebContents (the pointer is usable). No details are expected. | 207 // the WebContents (the pointer is usable). No details are expected. |
208 NOTIFICATION_WEB_CONTENTS_DISCONNECTED, | 208 NOTIFICATION_WEB_CONTENTS_DISCONNECTED, |
209 | 209 |
210 // This notification is sent after WebContents' title is updated. The source | 210 // This notification is sent after WebContents' title is updated. The source |
211 // is a Source<WebContents> with a pointer to the WebContents. The details | 211 // is a Source<WebContents> with a pointer to the WebContents. The details |
212 // is a std::pair<NavigationEntry*, bool> that contains more information. | 212 // is a std::pair<NavigationEntry*, bool> that contains more information. |
213 NOTIFICATION_WEB_CONTENTS_TITLE_UPDATED, | 213 NOTIFICATION_WEB_CONTENTS_TITLE_UPDATED, |
214 | 214 |
215 // This notification is sent when a WebContents is being hidden, e.g. due | 215 // Indicates a WebContents has been hidden or restored. The source is |
216 // to switching away from this tab. The source is a Source<WebContents>. | 216 // a Source<WebContnets> The details is a bool set to true if the new |
jam
2012/05/18 23:40:51
nit: WebCOntents. Also period after.
Fady Samuel
2012/05/19 15:59:02
Done.
| |
217 NOTIFICATION_WEB_CONTENTS_HIDDEN, | 217 // state is visible. |
218 NOTIFICATION_WEB_CONTENTS_VISIBILITY_CHANGED, | |
218 | 219 |
219 // This notification is sent when a WebContents is being destroyed. Any | 220 // This notification is sent when a WebContents is being destroyed. Any |
220 // object holding a reference to a WebContents can listen to that | 221 // object holding a reference to a WebContents can listen to that |
221 // notification to properly reset the reference. The source is a | 222 // notification to properly reset the reference. The source is a |
222 // Source<WebContents>. | 223 // Source<WebContents>. |
223 NOTIFICATION_WEB_CONTENTS_DESTROYED, | 224 NOTIFICATION_WEB_CONTENTS_DESTROYED, |
224 | 225 |
225 // A RenderViewHost was created for a WebContents. The source is the | 226 // A RenderViewHost was created for a WebContents. The source is the |
226 // associated WebContents, and the details is the RenderViewHost | 227 // associated WebContents, and the details is the RenderViewHost |
227 // pointer. | 228 // pointer. |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
382 // of a temporary zoom level change, the details is an empty string. | 383 // of a temporary zoom level change, the details is an empty string. |
383 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 384 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
384 | 385 |
385 // Custom notifications used by the embedder should start from here. | 386 // Custom notifications used by the embedder should start from here. |
386 NOTIFICATION_CONTENT_END, | 387 NOTIFICATION_CONTENT_END, |
387 }; | 388 }; |
388 | 389 |
389 } // namespace content | 390 } // namespace content |
390 | 391 |
391 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 392 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
OLD | NEW |