OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COMMON_NOTIFICATION_TYPE_H_ | 5 #ifndef CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
6 #define CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 6 #define CONTENT_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. |
11 // | 11 // |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 enum { | 14 enum NotificationType { |
15 NOTIFICATION_CONTENT_START = 0, | 15 NOTIFICATION_CONTENT_START = 0, |
16 | 16 |
17 // General ----------------------------------------------------------------- | 17 // General ----------------------------------------------------------------- |
18 | 18 |
19 // Special signal value to represent an interest in all notifications. | 19 // Special signal value to represent an interest in all notifications. |
20 // Not valid when posting a notification. | 20 // Not valid when posting a notification. |
21 NOTIFICATION_ALL = NOTIFICATION_CONTENT_START, | 21 NOTIFICATION_ALL = NOTIFICATION_CONTENT_START, |
22 | 22 |
23 // The app is done processing user actions, now is a good time to do | 23 // The app is done processing user actions, now is a good time to do |
24 // some background work. | 24 // some background work. |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 // of a temporary zoom level change, the details is an empty string. | 445 // of a temporary zoom level change, the details is an empty string. |
446 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 446 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
447 | 447 |
448 // Custom notifications used by the embedder should start from here. | 448 // Custom notifications used by the embedder should start from here. |
449 NOTIFICATION_CONTENT_END, | 449 NOTIFICATION_CONTENT_END, |
450 }; | 450 }; |
451 | 451 |
452 } // namespace content | 452 } // namespace content |
453 | 453 |
454 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 454 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |