| 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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 IPC_STRUCT_MEMBER(bool, right_aligned) | 507 IPC_STRUCT_MEMBER(bool, right_aligned) |
| 508 | 508 |
| 509 // Whether this is a multi-select popup. | 509 // Whether this is a multi-select popup. |
| 510 IPC_STRUCT_MEMBER(bool, allow_multiple_selection) | 510 IPC_STRUCT_MEMBER(bool, allow_multiple_selection) |
| 511 IPC_STRUCT_END() | 511 IPC_STRUCT_END() |
| 512 | 512 |
| 513 IPC_STRUCT_BEGIN(ViewHostMsg_TextInputState_Params) | 513 IPC_STRUCT_BEGIN(ViewHostMsg_TextInputState_Params) |
| 514 // The type of input field | 514 // The type of input field |
| 515 IPC_STRUCT_MEMBER(ui::TextInputType, type) | 515 IPC_STRUCT_MEMBER(ui::TextInputType, type) |
| 516 | 516 |
| 517 // An enumerated type that specifies what kind of input mechanism would be |
| 518 // most helpful for users entering content into the form control (e.g. |
| 519 // numeric, latin or kana input). |
| 520 // http://www.whatwg.org/specs/web-apps/current-work/#attr-fe-inputmode |
| 521 IPC_STRUCT_MEMBER(ui::TextInputMode, mode) |
| 522 |
| 517 // The value of the input field | 523 // The value of the input field |
| 518 IPC_STRUCT_MEMBER(std::string, value) | 524 IPC_STRUCT_MEMBER(std::string, value) |
| 519 | 525 |
| 520 // The cursor position of the current selection start, or the caret position | 526 // The cursor position of the current selection start, or the caret position |
| 521 // if nothing is selected | 527 // if nothing is selected |
| 522 IPC_STRUCT_MEMBER(int, selection_start) | 528 IPC_STRUCT_MEMBER(int, selection_start) |
| 523 | 529 |
| 524 // The cursor position of the current selection end, or the caret position | 530 // The cursor position of the current selection end, or the caret position |
| 525 // if nothing is selected | 531 // if nothing is selected |
| 526 IPC_STRUCT_MEMBER(int, selection_end) | 532 IPC_STRUCT_MEMBER(int, selection_end) |
| (...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1305 bool /* enable_hiding */, | 1311 bool /* enable_hiding */, |
| 1306 bool /* enable_showing */, | 1312 bool /* enable_showing */, |
| 1307 bool /* animate */) | 1313 bool /* animate */) |
| 1308 | 1314 |
| 1309 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) | 1315 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) |
| 1310 | 1316 |
| 1311 // Sent by the browser when the renderer should generate a new frame. | 1317 // Sent by the browser when the renderer should generate a new frame. |
| 1312 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, | 1318 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, |
| 1313 cc::BeginFrameArgs /* args */) | 1319 cc::BeginFrameArgs /* args */) |
| 1314 | 1320 |
| 1315 // Sent by the browser when an IME update that requires acknowledgement has been | |
| 1316 // processed on the browser side. | |
| 1317 IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck) | |
| 1318 | |
| 1319 // Sent by the browser when we should pause video playback. | 1321 // Sent by the browser when we should pause video playback. |
| 1320 IPC_MESSAGE_ROUTED0(ViewMsg_PauseVideo); | 1322 IPC_MESSAGE_ROUTED0(ViewMsg_PauseVideo); |
| 1321 | 1323 |
| 1322 #elif defined(OS_MACOSX) | 1324 #elif defined(OS_MACOSX) |
| 1323 // Let the RenderView know its window has changed visibility. | 1325 // Let the RenderView know its window has changed visibility. |
| 1324 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, | 1326 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, |
| 1325 bool /* visibile */) | 1327 bool /* visibile */) |
| 1326 | 1328 |
| 1327 // Let the RenderView know its window's frame has changed. | 1329 // Let the RenderView know its window's frame has changed. |
| 1328 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, | 1330 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, |
| 1329 gfx::Rect /* window frame */, | 1331 gfx::Rect /* window frame */, |
| 1330 gfx::Rect /* content view frame */) | 1332 gfx::Rect /* content view frame */) |
| 1331 | 1333 |
| 1332 // Message sent from the browser to the renderer when the user starts or stops | 1334 // Message sent from the browser to the renderer when the user starts or stops |
| 1333 // resizing the view. | 1335 // resizing the view. |
| 1334 IPC_MESSAGE_ROUTED1(ViewMsg_SetInLiveResize, | 1336 IPC_MESSAGE_ROUTED1(ViewMsg_SetInLiveResize, |
| 1335 bool /* enable */) | 1337 bool /* enable */) |
| 1336 | 1338 |
| 1337 // Tell the renderer that plugin IME has completed. | 1339 // Tell the renderer that plugin IME has completed. |
| 1338 IPC_MESSAGE_ROUTED2(ViewMsg_PluginImeCompositionCompleted, | 1340 IPC_MESSAGE_ROUTED2(ViewMsg_PluginImeCompositionCompleted, |
| 1339 string16 /* text */, | 1341 string16 /* text */, |
| 1340 int /* plugin_id */) | 1342 int /* plugin_id */) |
| 1341 | 1343 |
| 1342 // External popup menus. | 1344 // External popup menus. |
| 1343 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, | 1345 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, |
| 1344 int /* selected index, -1 means no selection */) | 1346 int /* selected index, -1 means no selection */) |
| 1345 #endif | 1347 #endif |
| 1346 | 1348 |
| 1349 #if defined(ANDROID) || defined(USE_AURA) |
| 1350 // Sent by the browser when an IME update that requires acknowledgement has been |
| 1351 // processed on the browser side. |
| 1352 IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck) |
| 1353 #endif |
| 1354 |
| 1347 // Sent by the browser as a reply to ViewHostMsg_SwapCompositorFrame. | 1355 // Sent by the browser as a reply to ViewHostMsg_SwapCompositorFrame. |
| 1348 IPC_MESSAGE_ROUTED2(ViewMsg_SwapCompositorFrameAck, | 1356 IPC_MESSAGE_ROUTED2(ViewMsg_SwapCompositorFrameAck, |
| 1349 uint32 /* output_surface_id */, | 1357 uint32 /* output_surface_id */, |
| 1350 cc::CompositorFrameAck /* ack */) | 1358 cc::CompositorFrameAck /* ack */) |
| 1351 | 1359 |
| 1352 // Sent by browser to tell renderer compositor that some resources that were | 1360 // Sent by browser to tell renderer compositor that some resources that were |
| 1353 // given to the browser in a swap are not being used anymore. | 1361 // given to the browser in a swap are not being used anymore. |
| 1354 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources, | 1362 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources, |
| 1355 uint32 /* output_surface_id */, | 1363 uint32 /* output_surface_id */, |
| 1356 cc::CompositorFrameAck /* ack */) | 1364 cc::CompositorFrameAck /* ack */) |
| (...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2364 // synchronously (see crbug.com/120597). This IPC message sends the character | 2372 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 2365 // bounds after every composition change to always have correct bound info. | 2373 // bounds after every composition change to always have correct bound info. |
| 2366 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2374 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 2367 gfx::Range /* composition range */, | 2375 gfx::Range /* composition range */, |
| 2368 std::vector<gfx::Rect> /* character bounds */) | 2376 std::vector<gfx::Rect> /* character bounds */) |
| 2369 #endif | 2377 #endif |
| 2370 | 2378 |
| 2371 // Adding a new message? Stick to the sort order above: first platform | 2379 // Adding a new message? Stick to the sort order above: first platform |
| 2372 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2380 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 2373 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2381 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |