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 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 | 1288 |
1289 // External popup menus. | 1289 // External popup menus. |
1290 IPC_MESSAGE_ROUTED2(ViewMsg_SelectPopupMenuItems, | 1290 IPC_MESSAGE_ROUTED2(ViewMsg_SelectPopupMenuItems, |
1291 bool /* user canceled the popup */, | 1291 bool /* user canceled the popup */, |
1292 std::vector<int> /* selected indices */) | 1292 std::vector<int> /* selected indices */) |
1293 | 1293 |
1294 // Tells the renderer to try to revert to the zoom level we were at before | 1294 // Tells the renderer to try to revert to the zoom level we were at before |
1295 // ViewMsg_ScrollFocusedEditableNodeIntoView was called. | 1295 // ViewMsg_ScrollFocusedEditableNodeIntoView was called. |
1296 IPC_MESSAGE_ROUTED0(ViewMsg_UndoScrollFocusedEditableNodeIntoView) | 1296 IPC_MESSAGE_ROUTED0(ViewMsg_UndoScrollFocusedEditableNodeIntoView) |
1297 | 1297 |
1298 // This message relays the beginning or end of a batch event in the IME. | |
1299 IPC_MESSAGE_ROUTED1(ViewMsg_ImeBatchStateChanged, | |
1300 bool /* is_begin */) | |
1301 | |
1302 // Notifies the renderer whether hiding/showing the top controls is enabled | 1298 // Notifies the renderer whether hiding/showing the top controls is enabled |
1303 // and whether or not to animate to the proper state. | 1299 // and whether or not to animate to the proper state. |
1304 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, | 1300 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, |
1305 bool /* enable_hiding */, | 1301 bool /* enable_hiding */, |
1306 bool /* enable_showing */, | 1302 bool /* enable_showing */, |
1307 bool /* animate */) | 1303 bool /* animate */) |
1308 | 1304 |
1309 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) | 1305 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) |
1310 | 1306 |
1311 // Sent by the browser when the renderer should generate a new frame. | 1307 // Sent by the browser when the renderer should generate a new frame. |
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2303 gfx::RectF /* active_rect */) | 2299 gfx::RectF /* active_rect */) |
2304 | 2300 |
2305 // Start an android intent with the given URI. | 2301 // Start an android intent with the given URI. |
2306 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent, | 2302 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent, |
2307 GURL /* content_url */) | 2303 GURL /* content_url */) |
2308 | 2304 |
2309 // Message sent when the renderer changed the background color for the view. | 2305 // Message sent when the renderer changed the background color for the view. |
2310 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeBodyBackgroundColor, | 2306 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeBodyBackgroundColor, |
2311 uint32 /* bg_color */) | 2307 uint32 /* bg_color */) |
2312 | 2308 |
2313 // This message is an ACK that the batch state change has been received by | |
2314 // the renderer and all IME related messages should be processed accordingly. | |
2315 IPC_MESSAGE_ROUTED1(ViewHostMsg_ImeBatchStateChanged_ACK, | |
2316 bool /* is_begin */) | |
2317 | |
2318 // This message runs the MediaCodec for decoding audio for webaudio. | 2309 // This message runs the MediaCodec for decoding audio for webaudio. |
2319 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec, | 2310 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec, |
2320 base::SharedMemoryHandle /* encoded_data_handle */, | 2311 base::SharedMemoryHandle /* encoded_data_handle */, |
2321 base::FileDescriptor /* pcm_output */, | 2312 base::FileDescriptor /* pcm_output */, |
2322 uint32_t /* data_size*/) | 2313 uint32_t /* data_size*/) |
2323 | 2314 |
2324 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming | 2315 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming |
2325 // display events. If |enabled| is true, the BeginFrame message will continue | 2316 // display events. If |enabled| is true, the BeginFrame message will continue |
2326 // to be be delivered until the notification is disabled. | 2317 // to be be delivered until the notification is disabled. |
2327 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, | 2318 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2387 // synchronously (see crbug.com/120597). This IPC message sends the character | 2378 // synchronously (see crbug.com/120597). This IPC message sends the character |
2388 // bounds after every composition change to always have correct bound info. | 2379 // bounds after every composition change to always have correct bound info. |
2389 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2380 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2390 gfx::Range /* composition range */, | 2381 gfx::Range /* composition range */, |
2391 std::vector<gfx::Rect> /* character bounds */) | 2382 std::vector<gfx::Rect> /* character bounds */) |
2392 #endif | 2383 #endif |
2393 | 2384 |
2394 // Adding a new message? Stick to the sort order above: first platform | 2385 // Adding a new message? Stick to the sort order above: first platform |
2395 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2386 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2396 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2387 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |