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. |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 // originally in and the language it was translated to | 278 // originally in and the language it was translated to |
279 // (std::pair<std::string, std::string>). | 279 // (std::pair<std::string, std::string>). |
280 PAGE_TRANSLATED, | 280 PAGE_TRANSLATED, |
281 | 281 |
282 // Sent after the renderer returns a snapshot of tab contents. | 282 // Sent after the renderer returns a snapshot of tab contents. |
283 // The source (Source<RenderViewHost>) is the RenderViewHost for which the | 283 // The source (Source<RenderViewHost>) is the RenderViewHost for which the |
284 // snapshot was generated and the details (Details<const SkBitmap>) is the | 284 // snapshot was generated and the details (Details<const SkBitmap>) is the |
285 // actual snapshot. | 285 // actual snapshot. |
286 TAB_SNAPSHOT_TAKEN, | 286 TAB_SNAPSHOT_TAKEN, |
287 | 287 |
288 // Send after the code is run in specified tab. | |
289 TAB_CODE_EXECUTED, | |
290 | |
291 // The user has changed the browser theme. | 288 // The user has changed the browser theme. |
292 BROWSER_THEME_CHANGED, | 289 BROWSER_THEME_CHANGED, |
293 | 290 |
294 // Sent when the renderer returns focus to the browser, as part of focus | 291 // Sent when the renderer returns focus to the browser, as part of focus |
295 // traversal. The source is the browser, there are no details. | 292 // traversal. The source is the browser, there are no details. |
296 FOCUS_RETURNED_TO_BROWSER, | 293 FOCUS_RETURNED_TO_BROWSER, |
297 | 294 |
298 // Application-modal dialogs ----------------------------------------------- | 295 // Application-modal dialogs ----------------------------------------------- |
299 | 296 |
300 // Sent after an application-modal dialog has been shown. The source | 297 // Sent after an application-modal dialog has been shown. The source |
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1362 }; | 1359 }; |
1363 | 1360 |
1364 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1361 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1365 return a == b.value; | 1362 return a == b.value; |
1366 } | 1363 } |
1367 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1364 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1368 return a != b.value; | 1365 return a != b.value; |
1369 } | 1366 } |
1370 | 1367 |
1371 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1368 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |