| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // IPC messages for input events and other messages that require processing in | 5 // IPC messages for input events and other messages that require processing in |
| 6 // order relative to input events. | 6 // order relative to input events. |
| 7 // Multiply-included message file, hence no include guard. | 7 // Multiply-included message file, hence no include guard. |
| 8 | 8 |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 #undef IPC_MESSAGE_EXPORT | 35 #undef IPC_MESSAGE_EXPORT |
| 36 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 36 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 37 | 37 |
| 38 #ifdef IPC_MESSAGE_START | 38 #ifdef IPC_MESSAGE_START |
| 39 #error IPC_MESSAGE_START | 39 #error IPC_MESSAGE_START |
| 40 #endif | 40 #endif |
| 41 | 41 |
| 42 #define IPC_MESSAGE_START InputMsgStart | 42 #define IPC_MESSAGE_START InputMsgStart |
| 43 | 43 |
| 44 IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventAckState, | |
| 45 content::INPUT_EVENT_ACK_STATE_MAX) | |
| 46 IPC_ENUM_TRAITS_MAX_VALUE( | 44 IPC_ENUM_TRAITS_MAX_VALUE( |
| 47 content::SyntheticGestureParams::GestureSourceType, | 45 content::SyntheticGestureParams::GestureSourceType, |
| 48 content::SyntheticGestureParams::GESTURE_SOURCE_TYPE_MAX) | 46 content::SyntheticGestureParams::GESTURE_SOURCE_TYPE_MAX) |
| 49 IPC_ENUM_TRAITS_MAX_VALUE( | 47 IPC_ENUM_TRAITS_MAX_VALUE( |
| 50 content::SyntheticGestureParams::GestureType, | 48 content::SyntheticGestureParams::GestureType, |
| 51 content::SyntheticGestureParams::SYNTHETIC_GESTURE_TYPE_MAX) | 49 content::SyntheticGestureParams::SYNTHETIC_GESTURE_TYPE_MAX) |
| 52 IPC_ENUM_TRAITS_VALIDATE(content::TouchAction, ( | 50 IPC_ENUM_TRAITS_VALIDATE(content::TouchAction, ( |
| 53 value >= 0 && | 51 value >= 0 && |
| 54 value <= content::TOUCH_ACTION_MAX && | 52 value <= content::TOUCH_ACTION_MAX && |
| 55 (!(value & content::TOUCH_ACTION_NONE) || | 53 (!(value & content::TOUCH_ACTION_NONE) || |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 // This IPC message sends the character bounds after every composition change | 282 // This IPC message sends the character bounds after every composition change |
| 285 // to always have correct bound info. | 283 // to always have correct bound info. |
| 286 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 284 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
| 287 gfx::Range /* composition range */, | 285 gfx::Range /* composition range */, |
| 288 std::vector<gfx::Rect> /* character bounds */) | 286 std::vector<gfx::Rect> /* character bounds */) |
| 289 | 287 |
| 290 // Adding a new message? Stick to the sort order above: first platform | 288 // Adding a new message? Stick to the sort order above: first platform |
| 291 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 289 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
| 292 // platform independent InputHostMsg, then ifdefs for platform specific | 290 // platform independent InputHostMsg, then ifdefs for platform specific |
| 293 // InputHostMsg. | 291 // InputHostMsg. |
| OLD | NEW |