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 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 | 503 |
504 // The focused element inside a page has changed. The source is the render | 504 // The focused element inside a page has changed. The source is the render |
505 // view host for the page, there are no details. | 505 // view host for the page, there are no details. |
506 FOCUS_CHANGED_IN_PAGE, | 506 FOCUS_CHANGED_IN_PAGE, |
507 | 507 |
508 // Notification posted from ExecuteJavascriptInWebFrameNotifyResult. The | 508 // Notification posted from ExecuteJavascriptInWebFrameNotifyResult. The |
509 // source is the RenderViewHost ExecuteJavascriptInWebFrameNotifyResult was | 509 // source is the RenderViewHost ExecuteJavascriptInWebFrameNotifyResult was |
510 // invoked on. The details are a std::pair<int, Value*> with the int giving | 510 // invoked on. The details are a std::pair<int, Value*> with the int giving |
511 // the id returned from ExecuteJavascriptInWebFrameNotifyResult and the | 511 // the id returned from ExecuteJavascriptInWebFrameNotifyResult and the |
512 // Value the results of the javascript expression. The Value is owned by | 512 // Value the results of the javascript expression. The Value is owned by |
513 // RenderViewHost. | 513 // RenderViewHost and may be a Null Value. |
514 EXECUTE_JAVASCRIPT_RESULT, | 514 EXECUTE_JAVASCRIPT_RESULT, |
515 | 515 |
516 // BackgroundContents ------------------------------------------------------ | 516 // BackgroundContents ------------------------------------------------------ |
517 | 517 |
518 // A new background contents was opened by script. The source is the parent | 518 // A new background contents was opened by script. The source is the parent |
519 // profile and the details are BackgroundContentsOpenedDetails. | 519 // profile and the details are BackgroundContentsOpenedDetails. |
520 BACKGROUND_CONTENTS_OPENED, | 520 BACKGROUND_CONTENTS_OPENED, |
521 | 521 |
522 // The background contents navigated to a new location. The source is the | 522 // The background contents navigated to a new location. The source is the |
523 // parent Profile, and the details are the BackgroundContents that was | 523 // parent Profile, and the details are the BackgroundContents that was |
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1318 }; | 1318 }; |
1319 | 1319 |
1320 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1320 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1321 return a == b.value; | 1321 return a == b.value; |
1322 } | 1322 } |
1323 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1323 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1324 return a != b.value; | 1324 return a != b.value; |
1325 } | 1325 } |
1326 | 1326 |
1327 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1327 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |