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 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 887 // process to release the magnified image. | 887 // process to release the magnified image. |
| 888 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, | 888 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap, |
| 889 cc::SharedBitmapId /* id */) | 889 cc::SharedBitmapId /* id */) |
| 890 | 890 |
| 891 // Notifies the renderer that a snapshot has been retrieved. | 891 // Notifies the renderer that a snapshot has been retrieved. |
| 892 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, | 892 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, |
| 893 int /* snapshot_id */, | 893 int /* snapshot_id */, |
| 894 gfx::Size /* size */, | 894 gfx::Size /* size */, |
| 895 std::vector<unsigned char> /* png */) | 895 std::vector<unsigned char> /* png */) |
| 896 | 896 |
| 897 // Extracts the data at the given rect, returning it through the | |
| 898 // ViewHostMsg_SmartClipDataExtracted IPC. | |
| 899 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData, | |
| 900 gfx::Rect /* rect */) | |
| 901 | |
|
Alexei Svitkine (slow)
2014/06/19 14:55:09
Nit: Extra whitespace here
| |
| 902 | |
| 903 | |
| 897 #if defined(OS_MACOSX) | 904 #if defined(OS_MACOSX) |
| 898 IPC_ENUM_TRAITS_MAX_VALUE(blink::ScrollerStyle, blink::ScrollerStyleOverlay); | 905 IPC_ENUM_TRAITS_MAX_VALUE(blink::ScrollerStyle, blink::ScrollerStyleOverlay); |
| 899 | 906 |
| 900 // Notification of a change in scrollbar appearance and/or behavior. | 907 // Notification of a change in scrollbar appearance and/or behavior. |
| 901 IPC_MESSAGE_CONTROL5(ViewMsg_UpdateScrollbarTheme, | 908 IPC_MESSAGE_CONTROL5(ViewMsg_UpdateScrollbarTheme, |
| 902 float /* initial_button_delay */, | 909 float /* initial_button_delay */, |
| 903 float /* autoscroll_button_delay */, | 910 float /* autoscroll_button_delay */, |
| 904 bool /* jump_on_track_click */, | 911 bool /* jump_on_track_click */, |
| 905 blink::ScrollerStyle /* preferred_scroller_style */, | 912 blink::ScrollerStyle /* preferred_scroller_style */, |
| 906 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 */) | |
| 907 #endif | 916 #endif |
| 908 | 917 |
| 909 #if defined(OS_ANDROID) | 918 #if defined(OS_ANDROID) |
| 910 // Tells the renderer to suspend/resume the webkit timers. | 919 // Tells the renderer to suspend/resume the webkit timers. |
| 911 IPC_MESSAGE_CONTROL1(ViewMsg_SetWebKitSharedTimersSuspended, | 920 IPC_MESSAGE_CONTROL1(ViewMsg_SetWebKitSharedTimersSuspended, |
| 912 bool /* suspend */) | 921 bool /* suspend */) |
| 913 | 922 |
| 914 // 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. |
| 915 // | 924 // |
| 916 // 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... | |
| 939 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) | 948 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) |
| 940 | 949 |
| 941 // 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. |
| 942 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, | 951 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, |
| 943 cc::BeginFrameArgs /* args */) | 952 cc::BeginFrameArgs /* args */) |
| 944 | 953 |
| 945 // 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 |
| 946 // processed on the browser side. | 955 // processed on the browser side. |
| 947 IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck) | 956 IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck) |
| 948 | 957 |
| 949 // Extracts the data at the given rect, returning it through the | |
| 950 // ViewHostMsg_SmartClipDataExtracted IPC. | |
| 951 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData, | |
| 952 gfx::Rect /* rect */) | |
| 953 | |
| 954 #elif defined(OS_MACOSX) | 958 #elif defined(OS_MACOSX) |
| 955 // Let the RenderView know its window has changed visibility. | 959 // Let the RenderView know its window has changed visibility. |
| 956 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, | 960 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, |
| 957 bool /* visibile */) | 961 bool /* visibile */) |
| 958 | 962 |
| 959 // Let the RenderView know its window's frame has changed. | 963 // Let the RenderView know its window's frame has changed. |
| 960 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, | 964 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, |
| 961 gfx::Rect /* window frame */, | 965 gfx::Rect /* window frame */, |
| 962 gfx::Rect /* content view frame */) | 966 gfx::Rect /* content view frame */) |
| 963 | 967 |
| (...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1674 base::SharedMemoryHandle /* font data */, | 1678 base::SharedMemoryHandle /* font data */, |
| 1675 uint32 /* font id */) | 1679 uint32 /* font id */) |
| 1676 | 1680 |
| 1677 // Informs the browser that a plugin has gained or lost focus. | 1681 // Informs the browser that a plugin has gained or lost focus. |
| 1678 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, | 1682 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, |
| 1679 bool, /* focused */ | 1683 bool, /* focused */ |
| 1680 int /* plugin_id */) | 1684 int /* plugin_id */) |
| 1681 | 1685 |
| 1682 // Instructs the browser to start plugin IME. | 1686 // Instructs the browser to start plugin IME. |
| 1683 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) | 1687 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) |
| 1688 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractedDataFromRect, std::string); | |
| 1684 | 1689 |
| 1685 #elif defined(OS_WIN) | 1690 #elif defined(OS_WIN) |
| 1686 // 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 |
| 1687 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 1692 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 1688 // for details. | 1693 // for details. |
| 1689 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 1694 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
| 1690 LOGFONT /* font_data */, | 1695 LOGFONT /* font_data */, |
| 1691 base::string16 /* characters */) | 1696 base::string16 /* characters */) |
| 1692 #endif | 1697 #endif |
| 1693 | 1698 |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 1717 // synchronously (see crbug.com/120597). This IPC message sends the character | 1722 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 1718 // bounds after every composition change to always have correct bound info. | 1723 // bounds after every composition change to always have correct bound info. |
| 1719 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1724 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 1720 gfx::Range /* composition range */, | 1725 gfx::Range /* composition range */, |
| 1721 std::vector<gfx::Rect> /* character bounds */) | 1726 std::vector<gfx::Rect> /* character bounds */) |
| 1722 #endif | 1727 #endif |
| 1723 | 1728 |
| 1724 // 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 |
| 1725 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1730 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1726 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1731 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |