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