| 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 CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 5 #ifndef CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
| 6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" |
| 8 #include "content/public/browser/notification_types.h" | 9 #include "content/public/browser/notification_types.h" |
| 9 | 10 |
| 10 namespace chrome { | 11 namespace chrome { |
| 11 | 12 |
| 12 enum NotificationType { | 13 enum NotificationType { |
| 13 NOTIFICATION_CHROME_START = content::NOTIFICATION_CONTENT_END, | 14 NOTIFICATION_CHROME_START = content::NOTIFICATION_CONTENT_END, |
| 14 | 15 |
| 15 // Browser-window ---------------------------------------------------------- | 16 // Browser-window ---------------------------------------------------------- |
| 16 | 17 |
| 17 // This message is sent after a window has been opened. The source is a | 18 // This message is sent after a window has been opened. The source is a |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 // Sent when the bookmark bubble hides. The source is the profile, the | 192 // Sent when the bookmark bubble hides. The source is the profile, the |
| 192 // details unused. | 193 // details unused. |
| 193 NOTIFICATION_BOOKMARK_BUBBLE_HIDDEN, | 194 NOTIFICATION_BOOKMARK_BUBBLE_HIDDEN, |
| 194 | 195 |
| 195 // This notification is sent when the result of a find-in-page search is | 196 // This notification is sent when the result of a find-in-page search is |
| 196 // available with the browser process. The source is a Source<WebContents>. | 197 // available with the browser process. The source is a Source<WebContents>. |
| 197 // Details encompass a FindNotificationDetail object that tells whether the | 198 // Details encompass a FindNotificationDetail object that tells whether the |
| 198 // match was found or not found. | 199 // match was found or not found. |
| 199 NOTIFICATION_FIND_RESULT_AVAILABLE, | 200 NOTIFICATION_FIND_RESULT_AVAILABLE, |
| 200 | 201 |
| 202 #if defined(OS_ANDROID) |
| 203 // This notification is sent when the match rects of a find-in-page search |
| 204 // are available. The source is a Source<WebContents>. Details encompass a |
| 205 // FindMatchRectsDetails object that contains the result version and the |
| 206 // rects information. |
| 207 NOTIFICATION_FIND_MATCH_RECTS_AVAILABLE, |
| 208 #endif |
| 209 |
| 201 // BackgroundContents ------------------------------------------------------ | 210 // BackgroundContents ------------------------------------------------------ |
| 202 | 211 |
| 203 // A new background contents was opened by script. The source is the parent | 212 // A new background contents was opened by script. The source is the parent |
| 204 // profile and the details are BackgroundContentsOpenedDetails. | 213 // profile and the details are BackgroundContentsOpenedDetails. |
| 205 NOTIFICATION_BACKGROUND_CONTENTS_OPENED, | 214 NOTIFICATION_BACKGROUND_CONTENTS_OPENED, |
| 206 | 215 |
| 207 // The background contents navigated to a new location. The source is the | 216 // The background contents navigated to a new location. The source is the |
| 208 // parent Profile, and the details are the BackgroundContents that was | 217 // parent Profile, and the details are the BackgroundContents that was |
| 209 // navigated. | 218 // navigated. |
| 210 NOTIFICATION_BACKGROUND_CONTENTS_NAVIGATED, | 219 NOTIFICATION_BACKGROUND_CONTENTS_NAVIGATED, |
| (...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1257 // Currently only Content and Chrome define and use notifications. | 1266 // Currently only Content and Chrome define and use notifications. |
| 1258 // Custom notifications not belonging to Content and Chrome should start | 1267 // Custom notifications not belonging to Content and Chrome should start |
| 1259 // from here. | 1268 // from here. |
| 1260 NOTIFICATION_CHROME_END, | 1269 NOTIFICATION_CHROME_END, |
| 1261 }; | 1270 }; |
| 1262 | 1271 |
| 1263 } // namespace chrome | 1272 } // namespace chrome |
| 1264 | 1273 |
| 1265 | 1274 |
| 1266 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1275 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
| OLD | NEW |