| 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 an asynchronous operation. This notification |
| 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 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1161 // Currently only Content and Chrome define and use notifications. | 1169 // Currently only Content and Chrome define and use notifications. |
| 1162 // Custom notifications not belonging to Content and Chrome should start | 1170 // Custom notifications not belonging to Content and Chrome should start |
| 1163 // from here. | 1171 // from here. |
| 1164 NOTIFICATION_CHROME_END, | 1172 NOTIFICATION_CHROME_END, |
| 1165 }; | 1173 }; |
| 1166 | 1174 |
| 1167 } // namespace chrome | 1175 } // namespace chrome |
| 1168 | 1176 |
| 1169 | 1177 |
| 1170 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1178 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
| OLD | NEW |