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