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