OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_NOTIFICATION_TYPE_H_ | 5 #ifndef CHROME_COMMON_NOTIFICATION_TYPE_H_ |
6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ | 6 #define CHROME_COMMON_NOTIFICATION_TYPE_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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 | 390 |
391 // This notification is sent when TabContents::SetAppExtension is invoked. | 391 // This notification is sent when TabContents::SetAppExtension is invoked. |
392 // The source is the TabContents SetAppExtension was invoked on. | 392 // The source is the TabContents SetAppExtension was invoked on. |
393 TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED, | 393 TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED, |
394 | 394 |
395 // A RenderViewHost was created for a TabContents. The source is the | 395 // A RenderViewHost was created for a TabContents. The source is the |
396 // associated TabContents, and the details is the RenderViewHost | 396 // associated TabContents, and the details is the RenderViewHost |
397 // pointer. | 397 // pointer. |
398 RENDER_VIEW_HOST_CREATED_FOR_TAB, | 398 RENDER_VIEW_HOST_CREATED_FOR_TAB, |
399 | 399 |
400 // Sent when MatchPreview creates the preview TabContents. The source is the | |
401 // TabContents the MatchPreview is associated with. | |
402 MATCH_PREVIEW_TAB_CONTENTS_CREATED, | |
403 | |
404 // Stuff inside the tabs --------------------------------------------------- | 400 // Stuff inside the tabs --------------------------------------------------- |
405 | 401 |
406 // This message is sent after a constrained window has been closed. The | 402 // This message is sent after a constrained window has been closed. The |
407 // source is a Source<ConstrainedWindow> with a pointer to the closed child | 403 // source is a Source<ConstrainedWindow> with a pointer to the closed child |
408 // window. (The pointer isn't usable, except for identification.) No | 404 // window. (The pointer isn't usable, except for identification.) No |
409 // details are expected. | 405 // details are expected. |
410 CWINDOW_CLOSED, | 406 CWINDOW_CLOSED, |
411 | 407 |
412 // Indicates that a RenderProcessHost was created and its handle is now | 408 // Indicates that a RenderProcessHost was created and its handle is now |
413 // available. The source will be the RenderProcessHost that corresponds to | 409 // available. The source will be the RenderProcessHost that corresponds to |
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1195 }; | 1191 }; |
1196 | 1192 |
1197 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1193 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1198 return a == b.value; | 1194 return a == b.value; |
1199 } | 1195 } |
1200 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1196 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1201 return a != b.value; | 1197 return a != b.value; |
1202 } | 1198 } |
1203 | 1199 |
1204 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1200 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |