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 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 2244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2255 | 2255 |
2256 // Sent by the renderer to the browser to start a vibration with the given | 2256 // Sent by the renderer to the browser to start a vibration with the given |
2257 // duration. | 2257 // duration. |
2258 IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate, | 2258 IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate, |
2259 int64 /* milliseconds */) | 2259 int64 /* milliseconds */) |
2260 | 2260 |
2261 // Sent by the renderer to the browser to cancel the currently running | 2261 // Sent by the renderer to the browser to cancel the currently running |
2262 // vibration, if there is one. | 2262 // vibration, if there is one. |
2263 IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration) | 2263 IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration) |
2264 | 2264 |
| 2265 // Message sent from renderer to the browser when the element that is focused |
| 2266 // has been touched. A bool is passed in this message which indicates if the |
| 2267 // node is editable. |
| 2268 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeTouched, |
| 2269 bool /* editable */) |
| 2270 |
2265 #if defined(OS_ANDROID) | 2271 #if defined(OS_ANDROID) |
2266 // Response to ViewMsg_FindMatchRects. | 2272 // Response to ViewMsg_FindMatchRects. |
2267 // | 2273 // |
2268 // |version| will contain the current version number of the renderer's find | 2274 // |version| will contain the current version number of the renderer's find |
2269 // match list (incremented whenever they change), which should be passed in the | 2275 // match list (incremented whenever they change), which should be passed in the |
2270 // next call to ViewMsg_FindMatchRects. | 2276 // next call to ViewMsg_FindMatchRects. |
2271 // | 2277 // |
2272 // |rects| will either contain a list of the enclosing rects of all matches | 2278 // |rects| will either contain a list of the enclosing rects of all matches |
2273 // found by the most recent Find operation, or will be empty if |version| is not | 2279 // found by the most recent Find operation, or will be empty if |version| is not |
2274 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence | 2280 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2354 // synchronously (see crbug.com/120597). This IPC message sends the character | 2360 // synchronously (see crbug.com/120597). This IPC message sends the character |
2355 // bounds after every composition change to always have correct bound info. | 2361 // bounds after every composition change to always have correct bound info. |
2356 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2362 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2357 gfx::Range /* composition range */, | 2363 gfx::Range /* composition range */, |
2358 std::vector<gfx::Rect> /* character bounds */) | 2364 std::vector<gfx::Rect> /* character bounds */) |
2359 #endif | 2365 #endif |
2360 | 2366 |
2361 // Adding a new message? Stick to the sort order above: first platform | 2367 // Adding a new message? Stick to the sort order above: first platform |
2362 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2368 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2363 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2369 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |