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/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 2263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2274 base::SharedMemoryHandle /* encoded_data_handle */, | 2274 base::SharedMemoryHandle /* encoded_data_handle */, |
2275 base::FileDescriptor /* pcm_output */, | 2275 base::FileDescriptor /* pcm_output */, |
2276 uint32_t /* data_size*/) | 2276 uint32_t /* data_size*/) |
2277 | 2277 |
2278 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming | 2278 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming |
2279 // display events. If |enabled| is true, the BeginFrame message will continue | 2279 // display events. If |enabled| is true, the BeginFrame message will continue |
2280 // to be be delivered until the notification is disabled. | 2280 // to be be delivered until the notification is disabled. |
2281 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, | 2281 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, |
2282 bool /* enabled */) | 2282 bool /* enabled */) |
2283 | 2283 |
| 2284 // Sent by the renderer to the browser to start a vibration with the given |
| 2285 // duration. |
| 2286 IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate, |
| 2287 int64 /* milliseconds */) |
| 2288 |
| 2289 // Sent by the renderer to the browser to cancel the currently running |
| 2290 // vibration, if there is one. |
| 2291 IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration) |
| 2292 |
2284 #elif defined(OS_MACOSX) | 2293 #elif defined(OS_MACOSX) |
2285 // Request that the browser load a font into shared memory for us. | 2294 // Request that the browser load a font into shared memory for us. |
2286 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, | 2295 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, |
2287 FontDescriptor /* font to load */, | 2296 FontDescriptor /* font to load */, |
2288 uint32 /* buffer size */, | 2297 uint32 /* buffer size */, |
2289 base::SharedMemoryHandle /* font data */, | 2298 base::SharedMemoryHandle /* font data */, |
2290 uint32 /* font id */) | 2299 uint32 /* font id */) |
2291 | 2300 |
2292 // Informs the browser that a plugin has gained or lost focus. | 2301 // Informs the browser that a plugin has gained or lost focus. |
2293 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, | 2302 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2332 // synchronously (see crbug.com/120597). This IPC message sends the character | 2341 // synchronously (see crbug.com/120597). This IPC message sends the character |
2333 // bounds after every composition change to always have correct bound info. | 2342 // bounds after every composition change to always have correct bound info. |
2334 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2343 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2335 ui::Range /* composition range */, | 2344 ui::Range /* composition range */, |
2336 std::vector<gfx::Rect> /* character bounds */) | 2345 std::vector<gfx::Rect> /* character bounds */) |
2337 #endif | 2346 #endif |
2338 | 2347 |
2339 // Adding a new message? Stick to the sort order above: first platform | 2348 // Adding a new message? Stick to the sort order above: first platform |
2340 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2349 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2341 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2350 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |