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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 // The entire list of items in the popup menu. | 359 // The entire list of items in the popup menu. |
360 IPC_STRUCT_MEMBER(std::vector<content::MenuItem>, popup_items) | 360 IPC_STRUCT_MEMBER(std::vector<content::MenuItem>, popup_items) |
361 | 361 |
362 // Whether items should be right-aligned. | 362 // Whether items should be right-aligned. |
363 IPC_STRUCT_MEMBER(bool, right_aligned) | 363 IPC_STRUCT_MEMBER(bool, right_aligned) |
364 | 364 |
365 // Whether this is a multi-select popup. | 365 // Whether this is a multi-select popup. |
366 IPC_STRUCT_MEMBER(bool, allow_multiple_selection) | 366 IPC_STRUCT_MEMBER(bool, allow_multiple_selection) |
367 IPC_STRUCT_END() | 367 IPC_STRUCT_END() |
368 | 368 |
| 369 IPC_STRUCT_BEGIN(ViewHostMsg_SmartClip_Params) |
| 370 // Clip rect bounds on the screen |
| 371 IPC_STRUCT_MEMBER(gfx::Rect, clip_rect) |
| 372 |
| 373 // The data in the clip_rect from the webpage |
| 374 IPC_STRUCT_MEMBER(base::string16, clip_data) |
| 375 IPC_STRUCT_END() |
| 376 |
369 IPC_STRUCT_BEGIN(ViewHostMsg_TextInputState_Params) | 377 IPC_STRUCT_BEGIN(ViewHostMsg_TextInputState_Params) |
370 // The type of input field | 378 // The type of input field |
371 IPC_STRUCT_MEMBER(ui::TextInputType, type) | 379 IPC_STRUCT_MEMBER(ui::TextInputType, type) |
372 | 380 |
373 // The value of the input field | 381 // The value of the input field |
374 IPC_STRUCT_MEMBER(std::string, value) | 382 IPC_STRUCT_MEMBER(std::string, value) |
375 | 383 |
376 // The cursor position of the current selection start, or the caret position | 384 // The cursor position of the current selection start, or the caret position |
377 // if nothing is selected | 385 // if nothing is selected |
378 IPC_STRUCT_MEMBER(int, selection_start) | 386 IPC_STRUCT_MEMBER(int, selection_start) |
(...skipping 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1736 base::FileDescriptor /* pcm_output */, | 1744 base::FileDescriptor /* pcm_output */, |
1737 uint32_t /* data_size*/) | 1745 uint32_t /* data_size*/) |
1738 | 1746 |
1739 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming | 1747 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming |
1740 // display events. If |enabled| is true, the BeginFrame message will continue | 1748 // display events. If |enabled| is true, the BeginFrame message will continue |
1741 // to be be delivered until the notification is disabled. | 1749 // to be be delivered until the notification is disabled. |
1742 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, | 1750 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, |
1743 bool /* enabled */) | 1751 bool /* enabled */) |
1744 | 1752 |
1745 // Reply to the ViewMsg_ExtractSmartClipData message. | 1753 // Reply to the ViewMsg_ExtractSmartClipData message. |
1746 // TODO(juhui24.lee@samsung.com): this should be changed to a vector of structs | 1754 IPC_MESSAGE_ROUTED1(ViewHostMsg_SmartClipDataExtracted, |
1747 // instead of encoding the data as a string which is not allowed normally. Since | 1755 ViewHostMsg_SmartClip_Params) |
1748 // ths is only used in Android WebView, it's allowed temporarily. | |
1749 // http://crbug.com/330872 | |
1750 IPC_MESSAGE_ROUTED1(ViewHostMsg_SmartClipDataExtracted, base::string16) | |
1751 | 1756 |
1752 #elif defined(OS_MACOSX) | 1757 #elif defined(OS_MACOSX) |
1753 // Request that the browser load a font into shared memory for us. | 1758 // Request that the browser load a font into shared memory for us. |
1754 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, | 1759 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, |
1755 FontDescriptor /* font to load */, | 1760 FontDescriptor /* font to load */, |
1756 uint32 /* buffer size */, | 1761 uint32 /* buffer size */, |
1757 base::SharedMemoryHandle /* font data */, | 1762 base::SharedMemoryHandle /* font data */, |
1758 uint32 /* font id */) | 1763 uint32 /* font id */) |
1759 | 1764 |
1760 // Informs the browser that a plugin has gained or lost focus. | 1765 // Informs the browser that a plugin has gained or lost focus. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1800 // synchronously (see crbug.com/120597). This IPC message sends the character | 1805 // synchronously (see crbug.com/120597). This IPC message sends the character |
1801 // bounds after every composition change to always have correct bound info. | 1806 // bounds after every composition change to always have correct bound info. |
1802 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1807 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
1803 gfx::Range /* composition range */, | 1808 gfx::Range /* composition range */, |
1804 std::vector<gfx::Rect> /* character bounds */) | 1809 std::vector<gfx::Rect> /* character bounds */) |
1805 #endif | 1810 #endif |
1806 | 1811 |
1807 // Adding a new message? Stick to the sort order above: first platform | 1812 // Adding a new message? Stick to the sort order above: first platform |
1808 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1813 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1809 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1814 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |