Chromium Code Reviews| 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 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 877 // process to release the magnified image. | 877 // process to release the magnified image. |
| 878 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, | 878 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, |
| 879 cc::SharedBitmapId /* id */) | 879 cc::SharedBitmapId /* id */) |
| 880 | 880 |
| 881 // Notifies the renderer that a snapshot has been retrieved. | 881 // Notifies the renderer that a snapshot has been retrieved. |
| 882 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, | 882 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, |
| 883 int /* snapshot_id */, | 883 int /* snapshot_id */, |
| 884 gfx::Size /* size */, | 884 gfx::Size /* size */, |
| 885 std::vector<unsigned char> /* png */) | 885 std::vector<unsigned char> /* png */) |
| 886 | 886 |
| 887 // Sends an Async IPC request to webview for complete content of a | |
|
jamesr
2014/07/18 06:05:04
nit: the fact that this is an async IPC and that i
sarka
2014/07/19 06:28:36
Done.
| |
| 888 // web page as plain text. | |
| 889 IPC_MESSAGE_ROUTED0(ViewMsg_GetRenderedText) | |
| 890 | |
| 887 #if defined(OS_MACOSX) | 891 #if defined(OS_MACOSX) |
| 888 IPC_ENUM_TRAITS_MAX_VALUE(blink::ScrollerStyle, blink::ScrollerStyleOverlay) | 892 IPC_ENUM_TRAITS_MAX_VALUE(blink::ScrollerStyle, blink::ScrollerStyleOverlay) |
| 889 | 893 |
| 890 // Notification of a change in scrollbar appearance and/or behavior. | 894 // Notification of a change in scrollbar appearance and/or behavior. |
| 891 IPC_MESSAGE_CONTROL5(ViewMsg_UpdateScrollbarTheme, | 895 IPC_MESSAGE_CONTROL5(ViewMsg_UpdateScrollbarTheme, |
| 892 float /* initial_button_delay */, | 896 float /* initial_button_delay */, |
| 893 float /* autoscroll_button_delay */, | 897 float /* autoscroll_button_delay */, |
| 894 bool /* jump_on_track_click */, | 898 bool /* jump_on_track_click */, |
| 895 blink::ScrollerStyle /* preferred_scroller_style */, | 899 blink::ScrollerStyle /* preferred_scroller_style */, |
| 896 bool /* redraw */) | 900 bool /* redraw */) |
| (...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1664 uint32 /* font id */) | 1668 uint32 /* font id */) |
| 1665 | 1669 |
| 1666 // Informs the browser that a plugin has gained or lost focus. | 1670 // Informs the browser that a plugin has gained or lost focus. |
| 1667 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, | 1671 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, |
| 1668 bool, /* focused */ | 1672 bool, /* focused */ |
| 1669 int /* plugin_id */) | 1673 int /* plugin_id */) |
| 1670 | 1674 |
| 1671 // Instructs the browser to start plugin IME. | 1675 // Instructs the browser to start plugin IME. |
| 1672 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) | 1676 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) |
| 1673 | 1677 |
| 1678 // Receives content of a web page as plain text. | |
| 1679 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); | |
| 1680 | |
| 1674 #elif defined(OS_WIN) | 1681 #elif defined(OS_WIN) |
| 1675 // Request that the given font characters be loaded by the browser so it's | 1682 // Request that the given font characters be loaded by the browser so it's |
| 1676 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 1683 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 1677 // for details. | 1684 // for details. |
| 1678 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 1685 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
| 1679 LOGFONT /* font_data */, | 1686 LOGFONT /* font_data */, |
| 1680 base::string16 /* characters */) | 1687 base::string16 /* characters */) |
| 1681 #endif | 1688 #endif |
| 1682 | 1689 |
| 1683 #if defined(OS_POSIX) | 1690 #if defined(OS_POSIX) |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 1697 // Since the browser keeps handles to the allocated transport DIBs, this | 1704 // Since the browser keeps handles to the allocated transport DIBs, this |
| 1698 // message is sent to tell the browser that it may release them when the | 1705 // message is sent to tell the browser that it may release them when the |
| 1699 // renderer is finished with them. | 1706 // renderer is finished with them. |
| 1700 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1707 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
| 1701 TransportDIB::Id /* DIB id */) | 1708 TransportDIB::Id /* DIB id */) |
| 1702 #endif | 1709 #endif |
| 1703 | 1710 |
| 1704 // Adding a new message? Stick to the sort order above: first platform | 1711 // Adding a new message? Stick to the sort order above: first platform |
| 1705 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1712 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1706 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1713 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |