Chromium Code Reviews| 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 #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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 // disallowing closing. This notification implies that no BROWSER_CLOSING or | 47 // disallowing closing. This notification implies that no BROWSER_CLOSING or |
| 48 // BROWSER_CLOSED notification will be sent. | 48 // BROWSER_CLOSED notification will be sent. |
| 49 // The source is a Source<Browser> containing the affected browser. No details | 49 // The source is a Source<Browser> containing the affected browser. No details |
| 50 // are expected. | 50 // are expected. |
| 51 NOTIFICATION_BROWSER_CLOSE_CANCELLED, | 51 NOTIFICATION_BROWSER_CLOSE_CANCELLED, |
| 52 | 52 |
| 53 // Indicates that a top window has been closed. The source is the HWND | 53 // Indicates that a top window has been closed. The source is the HWND |
| 54 // that was closed, no details are expected. | 54 // that was closed, no details are expected. |
| 55 NOTIFICATION_WINDOW_CLOSED, | 55 NOTIFICATION_WINDOW_CLOSED, |
| 56 | 56 |
| 57 #if defined(OS_LINUX) | |
| 58 // On Linux maximize can be asynchronous operation. This notification | |
|
kkania
2012/06/04 17:47:48
can be an asychronous
zori
2012/06/05 02:45:00
Done.
| |
| 59 // indicates that the window has been maximized. The source is | |
| 60 // a Source<BrowserWindow> containing the BrowserWindow that was maximized. | |
| 61 // No details are expected. | |
| 62 NOTIFICATION_BROWSER_WINDOW_MAXIMIZED, | |
| 63 #endif // defined(OS_LINUX) | |
| 64 | |
| 57 // Sent when the language (English, French...) for a page has been detected. | 65 // Sent when the language (English, French...) for a page has been detected. |
| 58 // The details Details<std::string> contain the ISO 639-1 language code and | 66 // The details Details<std::string> contain the ISO 639-1 language code and |
| 59 // the source is Source<WebContents>. | 67 // the source is Source<WebContents>. |
| 60 NOTIFICATION_TAB_LANGUAGE_DETERMINED, | 68 NOTIFICATION_TAB_LANGUAGE_DETERMINED, |
| 61 | 69 |
| 62 // Sent when a page has been translated. The source is the tab for that page | 70 // Sent when a page has been translated. The source is the tab for that page |
| 63 // (Source<WebContents>) and the details are the language the page was | 71 // (Source<WebContents>) and the details are the language the page was |
| 64 // originally in and the language it was translated to | 72 // originally in and the language it was translated to |
| 65 // (std::pair<std::string, std::string>). | 73 // (std::pair<std::string, std::string>). |
| 66 NOTIFICATION_PAGE_TRANSLATED, | 74 NOTIFICATION_PAGE_TRANSLATED, |
| (...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1065 NOTIFICATION_PANEL_CHANGED_EXPANSION_STATE, | 1073 NOTIFICATION_PANEL_CHANGED_EXPANSION_STATE, |
| 1066 | 1074 |
| 1067 // Sent when panel window size is known. This is for platforms where the | 1075 // Sent when panel window size is known. This is for platforms where the |
| 1068 // window creation is async and size of the window only becomes known later. | 1076 // window creation is async and size of the window only becomes known later. |
| 1069 // Used only in unit testing. | 1077 // Used only in unit testing. |
| 1070 NOTIFICATION_PANEL_WINDOW_SIZE_KNOWN, | 1078 NOTIFICATION_PANEL_WINDOW_SIZE_KNOWN, |
| 1071 | 1079 |
| 1072 // Sent when panel strip get updated. | 1080 // Sent when panel strip get updated. |
| 1073 // The source is the PanelStrip, no details. | 1081 // The source is the PanelStrip, no details. |
| 1074 // Used only in coordination with notification balloons. | 1082 // Used only in coordination with notification balloons. |
| 1075 NOTIFICATION_PANEL_STRIP_UPDATED, | 1083 NOTIFICATION_PANEL_STRIP_UPDATED, |
|
kkania
2012/06/04 17:47:48
you didn't update this, right?
zori
2012/06/05 02:45:00
No, I didn't, was merged from master/origin.
| |
| 1076 | 1084 |
| 1077 // Sent when panel is closed. | 1085 // Sent when panel is closed. |
| 1078 // The source is the Panel, no details. | 1086 // The source is the Panel, no details. |
| 1079 NOTIFICATION_PANEL_CLOSED, | 1087 NOTIFICATION_PANEL_CLOSED, |
| 1080 | 1088 |
| 1081 // Sent when a global error has changed and the error UI should update it | 1089 // Sent when a global error has changed and the error UI should update it |
| 1082 // self. The source is a Source<Profile> containing the profile for the | 1090 // self. The source is a Source<Profile> containing the profile for the |
| 1083 // error. The detail is a GlobalError object that has changed or NULL if | 1091 // error. The detail is a GlobalError object that has changed or NULL if |
| 1084 // all error UIs should update. | 1092 // all error UIs should update. |
| 1085 NOTIFICATION_GLOBAL_ERRORS_CHANGED, | 1093 NOTIFICATION_GLOBAL_ERRORS_CHANGED, |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 1110 // Currently only Content and Chrome define and use notifications. | 1118 // Currently only Content and Chrome define and use notifications. |
| 1111 // Custom notifications not belonging to Content and Chrome should start | 1119 // Custom notifications not belonging to Content and Chrome should start |
| 1112 // from here. | 1120 // from here. |
| 1113 NOTIFICATION_CHROME_END, | 1121 NOTIFICATION_CHROME_END, |
| 1114 }; | 1122 }; |
| 1115 | 1123 |
| 1116 } // namespace chrome | 1124 } // namespace chrome |
| 1117 | 1125 |
| 1118 | 1126 |
| 1119 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1127 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
| OLD | NEW |