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 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1642 IPC_STRUCT_BEGIN(ViewHostMsg_BeginSmoothScroll_Params) | 1642 IPC_STRUCT_BEGIN(ViewHostMsg_BeginSmoothScroll_Params) |
1643 IPC_STRUCT_MEMBER(bool, scroll_down) | 1643 IPC_STRUCT_MEMBER(bool, scroll_down) |
1644 IPC_STRUCT_MEMBER(int, pixels_to_scroll) | 1644 IPC_STRUCT_MEMBER(int, pixels_to_scroll) |
1645 IPC_STRUCT_MEMBER(int, mouse_event_x) | 1645 IPC_STRUCT_MEMBER(int, mouse_event_x) |
1646 IPC_STRUCT_MEMBER(int, mouse_event_y) | 1646 IPC_STRUCT_MEMBER(int, mouse_event_y) |
1647 IPC_STRUCT_END() | 1647 IPC_STRUCT_END() |
1648 | 1648 |
1649 IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginSmoothScroll, | 1649 IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginSmoothScroll, |
1650 ViewHostMsg_BeginSmoothScroll_Params /* params */) | 1650 ViewHostMsg_BeginSmoothScroll_Params /* params */) |
1651 | 1651 |
| 1652 // Sent to make host accept image of a certain expected size instead of current |
| 1653 // view size. This is essential to emulate device metrics, where render widget |
| 1654 // renders only a part of the hosting view. Empty |size| means that default view |
| 1655 // size is expected. |
| 1656 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetExpectedSize, |
| 1657 gfx::Size /* size */) |
| 1658 |
1652 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) | 1659 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) |
1653 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) | 1660 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) |
1654 | 1661 |
1655 // Message sent from renderer to the browser when focus changes inside the | 1662 // Message sent from renderer to the browser when focus changes inside the |
1656 // webpage. The parameter says whether the newly focused element needs | 1663 // webpage. The parameter says whether the newly focused element needs |
1657 // keyboard input (true for textfields, text areas and content editable divs). | 1664 // keyboard input (true for textfields, text areas and content editable divs). |
1658 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged, | 1665 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged, |
1659 bool /* is_editable_node */) | 1666 bool /* is_editable_node */) |
1660 | 1667 |
1661 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, | 1668 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2369 // synchronously (see crbug.com/120597). This IPC message sends the character | 2376 // synchronously (see crbug.com/120597). This IPC message sends the character |
2370 // bounds after every composition change to always have correct bound info. | 2377 // bounds after every composition change to always have correct bound info. |
2371 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2378 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2372 ui::Range /* composition range */, | 2379 ui::Range /* composition range */, |
2373 std::vector<gfx::Rect> /* character bounds */) | 2380 std::vector<gfx::Rect> /* character bounds */) |
2374 #endif | 2381 #endif |
2375 | 2382 |
2376 // Adding a new message? Stick to the sort order above: first platform | 2383 // Adding a new message? Stick to the sort order above: first platform |
2377 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2384 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2378 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2385 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |