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 2235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2246 // Notification that the urls for the favicon of a site has been determined. | 2246 // Notification that the urls for the favicon of a site has been determined. |
2247 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFaviconURL, | 2247 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFaviconURL, |
2248 int32 /* page_id */, | 2248 int32 /* page_id */, |
2249 std::vector<content::FaviconURL> /* candidates */) | 2249 std::vector<content::FaviconURL> /* candidates */) |
2250 | 2250 |
2251 // Sent once a paint happens after the first non empty layout. In other words | 2251 // Sent once a paint happens after the first non empty layout. In other words |
2252 // after the page has painted something. | 2252 // after the page has painted something. |
2253 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, | 2253 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, |
2254 int /* page_id */) | 2254 int /* page_id */) |
2255 | 2255 |
| 2256 // Sent by the renderer to the browser to start a vibration with the given |
| 2257 // duration. |
| 2258 IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate, |
| 2259 int64 /* milliseconds */) |
| 2260 |
| 2261 // Sent by the renderer to the browser to cancel the currently running |
| 2262 // vibration, if there is one. |
| 2263 IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration) |
| 2264 |
2256 #if defined(OS_ANDROID) | 2265 #if defined(OS_ANDROID) |
2257 // Response to ViewMsg_FindMatchRects. | 2266 // Response to ViewMsg_FindMatchRects. |
2258 // | 2267 // |
2259 // |version| will contain the current version number of the renderer's find | 2268 // |version| will contain the current version number of the renderer's find |
2260 // match list (incremented whenever they change), which should be passed in the | 2269 // match list (incremented whenever they change), which should be passed in the |
2261 // next call to ViewMsg_FindMatchRects. | 2270 // next call to ViewMsg_FindMatchRects. |
2262 // | 2271 // |
2263 // |rects| will either contain a list of the enclosing rects of all matches | 2272 // |rects| will either contain a list of the enclosing rects of all matches |
2264 // found by the most recent Find operation, or will be empty if |version| is not | 2273 // found by the most recent Find operation, or will be empty if |version| is not |
2265 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence | 2274 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence |
(...skipping 21 matching lines...) Expand all Loading... |
2287 base::SharedMemoryHandle /* encoded_data_handle */, | 2296 base::SharedMemoryHandle /* encoded_data_handle */, |
2288 base::FileDescriptor /* pcm_output */, | 2297 base::FileDescriptor /* pcm_output */, |
2289 uint32_t /* data_size*/) | 2298 uint32_t /* data_size*/) |
2290 | 2299 |
2291 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming | 2300 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming |
2292 // display events. If |enabled| is true, the BeginFrame message will continue | 2301 // display events. If |enabled| is true, the BeginFrame message will continue |
2293 // to be be delivered until the notification is disabled. | 2302 // to be be delivered until the notification is disabled. |
2294 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, | 2303 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, |
2295 bool /* enabled */) | 2304 bool /* enabled */) |
2296 | 2305 |
2297 // Sent by the renderer to the browser to start a vibration with the given | |
2298 // duration. | |
2299 IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate, | |
2300 int64 /* milliseconds */) | |
2301 | |
2302 // Sent by the renderer to the browser to cancel the currently running | |
2303 // vibration, if there is one. | |
2304 IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration) | |
2305 | |
2306 #elif defined(OS_MACOSX) | 2306 #elif defined(OS_MACOSX) |
2307 // Request that the browser load a font into shared memory for us. | 2307 // Request that the browser load a font into shared memory for us. |
2308 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, | 2308 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, |
2309 FontDescriptor /* font to load */, | 2309 FontDescriptor /* font to load */, |
2310 uint32 /* buffer size */, | 2310 uint32 /* buffer size */, |
2311 base::SharedMemoryHandle /* font data */, | 2311 base::SharedMemoryHandle /* font data */, |
2312 uint32 /* font id */) | 2312 uint32 /* font id */) |
2313 | 2313 |
2314 // Informs the browser that a plugin has gained or lost focus. | 2314 // Informs the browser that a plugin has gained or lost focus. |
2315 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, | 2315 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2354 // synchronously (see crbug.com/120597). This IPC message sends the character | 2354 // synchronously (see crbug.com/120597). This IPC message sends the character |
2355 // bounds after every composition change to always have correct bound info. | 2355 // bounds after every composition change to always have correct bound info. |
2356 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2356 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2357 gfx::Range /* composition range */, | 2357 gfx::Range /* composition range */, |
2358 std::vector<gfx::Rect> /* character bounds */) | 2358 std::vector<gfx::Rect> /* character bounds */) |
2359 #endif | 2359 #endif |
2360 | 2360 |
2361 // Adding a new message? Stick to the sort order above: first platform | 2361 // Adding a new message? Stick to the sort order above: first platform |
2362 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2362 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2363 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2363 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |