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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 // The end position of the current composition, or -1 if there is none | 522 // The end position of the current composition, or -1 if there is none |
523 IPC_STRUCT_MEMBER(int, composition_end) | 523 IPC_STRUCT_MEMBER(int, composition_end) |
524 | 524 |
525 // Whether or not inline composition can be performed for the current input. | 525 // Whether or not inline composition can be performed for the current input. |
526 IPC_STRUCT_MEMBER(bool, can_compose_inline) | 526 IPC_STRUCT_MEMBER(bool, can_compose_inline) |
527 | 527 |
528 // Whether or not the IME should be shown as a result of this update. Even if | 528 // Whether or not the IME should be shown as a result of this update. Even if |
529 // true, the IME will only be shown if the type is appropriate (e.g. not | 529 // true, the IME will only be shown if the type is appropriate (e.g. not |
530 // TEXT_INPUT_TYPE_NONE). | 530 // TEXT_INPUT_TYPE_NONE). |
531 IPC_STRUCT_MEMBER(bool, show_ime_if_needed) | 531 IPC_STRUCT_MEMBER(bool, show_ime_if_needed) |
| 532 |
| 533 // Whether an acknowledgement is required for this update. |
| 534 IPC_STRUCT_MEMBER(bool, require_ack) |
532 IPC_STRUCT_END() | 535 IPC_STRUCT_END() |
533 | 536 |
534 IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params) | 537 IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params) |
535 // The bitmap to be painted into the view at the locations specified by | 538 // The bitmap to be painted into the view at the locations specified by |
536 // update_rects. | 539 // update_rects. |
537 IPC_STRUCT_MEMBER(TransportDIB::Id, bitmap) | 540 IPC_STRUCT_MEMBER(TransportDIB::Id, bitmap) |
538 | 541 |
539 // The position and size of the bitmap. | 542 // The position and size of the bitmap. |
540 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect) | 543 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect) |
541 | 544 |
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1297 bool /* enable_hiding */, | 1300 bool /* enable_hiding */, |
1298 bool /* enable_showing */, | 1301 bool /* enable_showing */, |
1299 bool /* animate */) | 1302 bool /* animate */) |
1300 | 1303 |
1301 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) | 1304 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) |
1302 | 1305 |
1303 // Sent by the browser when the renderer should generate a new frame. | 1306 // Sent by the browser when the renderer should generate a new frame. |
1304 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, | 1307 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, |
1305 cc::BeginFrameArgs /* args */) | 1308 cc::BeginFrameArgs /* args */) |
1306 | 1309 |
| 1310 // Sent by the browser when an IME update that requires acknowledgement has been |
| 1311 // processed on the browser side. |
| 1312 IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck) |
| 1313 |
1307 #elif defined(OS_MACOSX) | 1314 #elif defined(OS_MACOSX) |
1308 // Let the RenderView know its window has changed visibility. | 1315 // Let the RenderView know its window has changed visibility. |
1309 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, | 1316 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, |
1310 bool /* visibile */) | 1317 bool /* visibile */) |
1311 | 1318 |
1312 // Let the RenderView know its window's frame has changed. | 1319 // Let the RenderView know its window's frame has changed. |
1313 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, | 1320 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, |
1314 gfx::Rect /* window frame */, | 1321 gfx::Rect /* window frame */, |
1315 gfx::Rect /* content view frame */) | 1322 gfx::Rect /* content view frame */) |
1316 | 1323 |
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2356 // synchronously (see crbug.com/120597). This IPC message sends the character | 2363 // synchronously (see crbug.com/120597). This IPC message sends the character |
2357 // bounds after every composition change to always have correct bound info. | 2364 // bounds after every composition change to always have correct bound info. |
2358 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2365 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2359 ui::Range /* composition range */, | 2366 ui::Range /* composition range */, |
2360 std::vector<gfx::Rect> /* character bounds */) | 2367 std::vector<gfx::Rect> /* character bounds */) |
2361 #endif | 2368 #endif |
2362 | 2369 |
2363 // Adding a new message? Stick to the sort order above: first platform | 2370 // Adding a new message? Stick to the sort order above: first platform |
2364 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2371 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2365 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2372 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |