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 // Multiply-included file, no traditional include guard. | 5 // Multiply-included file, no traditional include guard. |
6 #include "android_webview/common/aw_hit_test_data.h" | 6 #include "android_webview/common/aw_hit_test_data.h" |
7 #include "content/public/common/common_param_traits.h" | 7 #include "content/public/common/common_param_traits.h" |
8 #include "ipc/ipc_channel_handle.h" | 8 #include "ipc/ipc_channel_handle.h" |
9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
10 #include "ipc/ipc_platform_file.h" | 10 #include "ipc/ipc_platform_file.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // Sets the zoom level for text only. Used in layout modes other than | 62 // Sets the zoom level for text only. Used in layout modes other than |
63 // Text Autosizing. | 63 // Text Autosizing. |
64 IPC_MESSAGE_ROUTED1(AwViewMsg_SetTextZoomLevel, | 64 IPC_MESSAGE_ROUTED1(AwViewMsg_SetTextZoomLevel, |
65 double /* zoom_level */) | 65 double /* zoom_level */) |
66 | 66 |
67 // Resets WebKit WebView scrolling and scale state. We need to send this | 67 // Resets WebKit WebView scrolling and scale state. We need to send this |
68 // message whenever we want to guarantee that page's scale will be | 68 // message whenever we want to guarantee that page's scale will be |
69 // recalculated by WebKit. | 69 // recalculated by WebKit. |
70 IPC_MESSAGE_ROUTED0(AwViewMsg_ResetScrollAndScaleState) | 70 IPC_MESSAGE_ROUTED0(AwViewMsg_ResetScrollAndScaleState) |
71 | 71 |
72 // Set whether fixed layout mode is enabled. Must be updated together | |
73 // with WebSettings.viewport_enabled. Only WebView switches this mode | |
74 // dynamically, thus there is no support for this in the common code. | |
75 IPC_MESSAGE_ROUTED1(AwViewMsg_SetEnableFixedLayoutMode, | |
76 bool /* enabled */) | |
77 | |
78 // Sets the initial page scale. This overrides initial scale set by | 72 // Sets the initial page scale. This overrides initial scale set by |
79 // the meta viewport tag. | 73 // the meta viewport tag. |
80 IPC_MESSAGE_ROUTED1(AwViewMsg_SetInitialPageScale, | 74 IPC_MESSAGE_ROUTED1(AwViewMsg_SetInitialPageScale, |
81 double /* page_scale_factor */) | 75 double /* page_scale_factor */) |
82 | 76 |
83 //----------------------------------------------------------------------------- | 77 //----------------------------------------------------------------------------- |
84 // RenderView messages | 78 // RenderView messages |
85 // These are messages sent from the renderer to the browser process. | 79 // These are messages sent from the renderer to the browser process. |
86 | 80 |
87 // Response to AwViewMsg_DocumentHasImages request. | 81 // Response to AwViewMsg_DocumentHasImages request. |
88 IPC_MESSAGE_ROUTED2(AwViewHostMsg_DocumentHasImagesResponse, | 82 IPC_MESSAGE_ROUTED2(AwViewHostMsg_DocumentHasImagesResponse, |
89 int, /* id */ | 83 int, /* id */ |
90 bool /* has_images */) | 84 bool /* has_images */) |
91 | 85 |
92 // Response to AwViewMsg_DoHitTest. | 86 // Response to AwViewMsg_DoHitTest. |
93 IPC_MESSAGE_ROUTED1(AwViewHostMsg_UpdateHitTestData, | 87 IPC_MESSAGE_ROUTED1(AwViewHostMsg_UpdateHitTestData, |
94 android_webview::AwHitTestData) | 88 android_webview::AwHitTestData) |
95 | 89 |
96 // Notification that a new picture becomes available. It is only sent if | 90 // Notification that a new picture becomes available. It is only sent if |
97 // AwViewMsg_EnableCapturePictureCallback was previously enabled. | 91 // AwViewMsg_EnableCapturePictureCallback was previously enabled. |
98 IPC_MESSAGE_ROUTED0(AwViewHostMsg_PictureUpdated) | 92 IPC_MESSAGE_ROUTED0(AwViewHostMsg_PictureUpdated) |
99 | 93 |
100 // Sent by the renderer when accelerated compositing is enabled, allowing the | 94 // Sent by the renderer when accelerated compositing is enabled, allowing the |
101 // browser to perform synchronous input event filtering. | 95 // browser to perform synchronous input event filtering. |
102 IPC_MESSAGE_ROUTED1(AwViewHostMsg_DidActivateAcceleratedCompositing, | 96 IPC_MESSAGE_ROUTED1(AwViewHostMsg_DidActivateAcceleratedCompositing, |
103 int /* input_handler_id */) | 97 int /* input_handler_id */) |
104 | 98 |
105 | 99 |
OLD | NEW |