| 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 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 // process to release the magnified image. | 890 // process to release the magnified image. |
| 891 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, | 891 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, |
| 892 cc::SharedBitmapId /* id */) | 892 cc::SharedBitmapId /* id */) |
| 893 | 893 |
| 894 // Notifies the renderer that a snapshot has been retrieved. | 894 // Notifies the renderer that a snapshot has been retrieved. |
| 895 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, | 895 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, |
| 896 int /* snapshot_id */, | 896 int /* snapshot_id */, |
| 897 gfx::Size /* size */, | 897 gfx::Size /* size */, |
| 898 std::vector<unsigned char> /* png */) | 898 std::vector<unsigned char> /* png */) |
| 899 | 899 |
| 900 // Extracts the data at the given rect, returning it through the |
| 901 // ViewHostMsg_SmartClipDataExtracted IPC. |
| 902 IPC_MESSAGE_ROUTED0(ViewMsg_GetRenderedText) |
| 903 |
| 900 #if defined(OS_MACOSX) | 904 #if defined(OS_MACOSX) |
| 901 IPC_ENUM_TRAITS_MAX_VALUE(blink::ScrollerStyle, blink::ScrollerStyleOverlay); | 905 IPC_ENUM_TRAITS_MAX_VALUE(blink::ScrollerStyle, blink::ScrollerStyleOverlay); |
| 902 | 906 |
| 903 // Notification of a change in scrollbar appearance and/or behavior. | 907 // Notification of a change in scrollbar appearance and/or behavior. |
| 904 IPC_MESSAGE_CONTROL5(ViewMsg_UpdateScrollbarTheme, | 908 IPC_MESSAGE_CONTROL5(ViewMsg_UpdateScrollbarTheme, |
| 905 float /* initial_button_delay */, | 909 float /* initial_button_delay */, |
| 906 float /* autoscroll_button_delay */, | 910 float /* autoscroll_button_delay */, |
| 907 bool /* jump_on_track_click */, | 911 bool /* jump_on_track_click */, |
| 908 blink::ScrollerStyle /* preferred_scroller_style */, | 912 blink::ScrollerStyle /* preferred_scroller_style */, |
| 909 bool /* redraw */) | 913 bool /* redraw */) |
| 914 // For now using a different IPC_Message for extracting smart clip on mac. |
| 915 IPC_MESSAGE_ROUTED1(ViewMsg_GetSmartClipDataFromRect, gfx::Rect /* rect */) |
| 910 #endif | 916 #endif |
| 911 | 917 |
| 912 #if defined(OS_ANDROID) | 918 #if defined(OS_ANDROID) |
| 913 // Tells the renderer to suspend/resume the webkit timers. | 919 // Tells the renderer to suspend/resume the webkit timers. |
| 914 IPC_MESSAGE_CONTROL1(ViewMsg_SetWebKitSharedTimersSuspended, | 920 IPC_MESSAGE_CONTROL1(ViewMsg_SetWebKitSharedTimersSuspended, |
| 915 bool /* suspend */) | 921 bool /* suspend */) |
| 916 | 922 |
| 917 // Sent when the browser wants the bounding boxes of the current find matches. | 923 // Sent when the browser wants the bounding boxes of the current find matches. |
| 918 // | 924 // |
| 919 // If match rects are already cached on the browser side, |current_version| | 925 // If match rects are already cached on the browser side, |current_version| |
| (...skipping 22 matching lines...) Expand all Loading... |
| 942 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) | 948 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) |
| 943 | 949 |
| 944 // Sent by the browser when the renderer should generate a new frame. | 950 // Sent by the browser when the renderer should generate a new frame. |
| 945 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, | 951 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, |
| 946 cc::BeginFrameArgs /* args */) | 952 cc::BeginFrameArgs /* args */) |
| 947 | 953 |
| 948 // Sent by the browser when an IME update that requires acknowledgement has been | 954 // Sent by the browser when an IME update that requires acknowledgement has been |
| 949 // processed on the browser side. | 955 // processed on the browser side. |
| 950 IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck) | 956 IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck) |
| 951 | 957 |
| 952 // Extracts the data at the given rect, returning it through the | |
| 953 // ViewHostMsg_SmartClipDataExtracted IPC. | |
| 954 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData, | |
| 955 gfx::Rect /* rect */) | |
| 956 | |
| 957 #elif defined(OS_MACOSX) | 958 #elif defined(OS_MACOSX) |
| 958 // Let the RenderView know its window has changed visibility. | 959 // Let the RenderView know its window has changed visibility. |
| 959 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, | 960 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, |
| 960 bool /* visibile */) | 961 bool /* visibile */) |
| 961 | 962 |
| 962 // Let the RenderView know its window's frame has changed. | 963 // Let the RenderView know its window's frame has changed. |
| 963 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, | 964 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, |
| 964 gfx::Rect /* window frame */, | 965 gfx::Rect /* window frame */, |
| 965 gfx::Rect /* content view frame */) | 966 gfx::Rect /* content view frame */) |
| 966 | 967 |
| (...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1677 base::SharedMemoryHandle /* font data */, | 1678 base::SharedMemoryHandle /* font data */, |
| 1678 uint32 /* font id */) | 1679 uint32 /* font id */) |
| 1679 | 1680 |
| 1680 // Informs the browser that a plugin has gained or lost focus. | 1681 // Informs the browser that a plugin has gained or lost focus. |
| 1681 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, | 1682 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, |
| 1682 bool, /* focused */ | 1683 bool, /* focused */ |
| 1683 int /* plugin_id */) | 1684 int /* plugin_id */) |
| 1684 | 1685 |
| 1685 // Instructs the browser to start plugin IME. | 1686 // Instructs the browser to start plugin IME. |
| 1686 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) | 1687 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) |
| 1688 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string); |
| 1687 | 1689 |
| 1688 #elif defined(OS_WIN) | 1690 #elif defined(OS_WIN) |
| 1689 // Request that the given font characters be loaded by the browser so it's | 1691 // Request that the given font characters be loaded by the browser so it's |
| 1690 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 1692 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 1691 // for details. | 1693 // for details. |
| 1692 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 1694 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
| 1693 LOGFONT /* font_data */, | 1695 LOGFONT /* font_data */, |
| 1694 base::string16 /* characters */) | 1696 base::string16 /* characters */) |
| 1695 #endif | 1697 #endif |
| 1696 | 1698 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1720 // synchronously (see crbug.com/120597). This IPC message sends the character | 1722 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 1721 // bounds after every composition change to always have correct bound info. | 1723 // bounds after every composition change to always have correct bound info. |
| 1722 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1724 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 1723 gfx::Range /* composition range */, | 1725 gfx::Range /* composition range */, |
| 1724 std::vector<gfx::Rect> /* character bounds */) | 1726 std::vector<gfx::Rect> /* character bounds */) |
| 1725 #endif | 1727 #endif |
| 1726 | 1728 |
| 1727 // Adding a new message? Stick to the sort order above: first platform | 1729 // Adding a new message? Stick to the sort order above: first platform |
| 1728 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1730 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1729 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1731 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |