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