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 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "content/public/browser/notification_types.h" | 9 #include "content/public/browser/notification_types.h" |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 // will shut down). Note that the boolean pointed to by details is only | 41 // will shut down). Note that the boolean pointed to by details is only |
42 // valid for the duration of this call. | 42 // valid for the duration of this call. |
43 NOTIFICATION_BROWSER_CLOSED, | 43 NOTIFICATION_BROWSER_CLOSED, |
44 | 44 |
45 // Indicates that a top window has been closed. The source is the HWND | 45 // Indicates that a top window has been closed. The source is the HWND |
46 // that was closed, no details are expected. | 46 // that was closed, no details are expected. |
47 NOTIFICATION_WINDOW_CLOSED, | 47 NOTIFICATION_WINDOW_CLOSED, |
48 | 48 |
49 // Sent when the language (English, French...) for a page has been detected. | 49 // Sent when the language (English, French...) for a page has been detected. |
50 // The details Details<std::string> contain the ISO 639-1 language code and | 50 // The details Details<std::string> contain the ISO 639-1 language code and |
51 // the source is Source<TabContents>. | 51 // the source is Source<WebContents>. |
52 NOTIFICATION_TAB_LANGUAGE_DETERMINED, | 52 NOTIFICATION_TAB_LANGUAGE_DETERMINED, |
53 | 53 |
54 // Sent when a page has been translated. The source is the tab for that page | 54 // Sent when a page has been translated. The source is the tab for that page |
55 // (Source<TabContents>) and the details are the language the page was | 55 // (Source<WebContents>) and the details are the language the page was |
56 // originally in and the language it was translated to | 56 // originally in and the language it was translated to |
57 // (std::pair<std::string, std::string>). | 57 // (std::pair<std::string, std::string>). |
58 NOTIFICATION_PAGE_TRANSLATED, | 58 NOTIFICATION_PAGE_TRANSLATED, |
59 | 59 |
60 // Sent after the renderer returns a snapshot of tab contents. | 60 // Sent after the renderer returns a snapshot of tab contents. |
61 // The source (Source<content::WebContents>) is the RenderViewHost for which | 61 // The source (Source<content::WebContents>) is the RenderViewHost for which |
62 // the snapshot was generated and the details (Details<const SkBitmap>) is | 62 // the snapshot was generated and the details (Details<const SkBitmap>) is |
63 // the actual snapshot. | 63 // the actual snapshot. |
64 NOTIFICATION_TAB_SNAPSHOT_TAKEN, | 64 NOTIFICATION_TAB_SNAPSHOT_TAKEN, |
65 | 65 |
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 // Currently only Content and Chrome define and use notifications. | 1009 // Currently only Content and Chrome define and use notifications. |
1010 // Custom notifications not belonging to Content and Chrome should start | 1010 // Custom notifications not belonging to Content and Chrome should start |
1011 // from here. | 1011 // from here. |
1012 NOTIFICATION_CHROME_END, | 1012 NOTIFICATION_CHROME_END, |
1013 }; | 1013 }; |
1014 | 1014 |
1015 } // namespace chrome | 1015 } // namespace chrome |
1016 | 1016 |
1017 | 1017 |
1018 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1018 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
OLD | NEW |