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 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1302 // Sent when WebSocketProxy started accepting connections. | 1302 // Sent when WebSocketProxy started accepting connections. |
1303 WEB_SOCKET_PROXY_STARTED, | 1303 WEB_SOCKET_PROXY_STARTED, |
1304 #endif | 1304 #endif |
1305 | 1305 |
1306 // Sent when a new web store promo has been loaded. | 1306 // Sent when a new web store promo has been loaded. |
1307 WEB_STORE_PROMO_LOADED, | 1307 WEB_STORE_PROMO_LOADED, |
1308 | 1308 |
1309 #if defined(TOUCH_UI) | 1309 #if defined(TOUCH_UI) |
1310 // Sent when an API for hiding the keyboard is invoked from JavaScript code. | 1310 // Sent when an API for hiding the keyboard is invoked from JavaScript code. |
1311 HIDE_KEYBOARD_INVOKED, | 1311 HIDE_KEYBOARD_INVOKED, |
| 1312 |
| 1313 // Sent when an API for set height of the keyboard is invoked from |
| 1314 // JavaScript code. |
| 1315 SET_KEYBOARD_HEIGHT_INVOKED, |
1312 #endif | 1316 #endif |
1313 | 1317 |
1314 // Protocol Handler Registry ----------------------------------------------- | 1318 // Protocol Handler Registry ----------------------------------------------- |
1315 // Sent when a ProtocolHandlerRegistry is changed. | 1319 // Sent when a ProtocolHandlerRegistry is changed. |
1316 PROTOCOL_HANDLER_REGISTRY_CHANGED, | 1320 PROTOCOL_HANDLER_REGISTRY_CHANGED, |
1317 | 1321 |
1318 // Count (must be last) ---------------------------------------------------- | 1322 // Count (must be last) ---------------------------------------------------- |
1319 // Used to determine the number of notification types. Not valid as | 1323 // Used to determine the number of notification types. Not valid as |
1320 // a type parameter when registering for or posting notifications. | 1324 // a type parameter when registering for or posting notifications. |
1321 NOTIFICATION_TYPE_COUNT | 1325 NOTIFICATION_TYPE_COUNT |
(...skipping 13 matching lines...) Expand all Loading... |
1335 }; | 1339 }; |
1336 | 1340 |
1337 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1341 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1338 return a == b.value; | 1342 return a == b.value; |
1339 } | 1343 } |
1340 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1344 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1341 return a != b.value; | 1345 return a != b.value; |
1342 } | 1346 } |
1343 | 1347 |
1344 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1348 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |