| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // Resets WebKit WebView scrolling and scale state. We need to send this | 60 // Resets WebKit WebView scrolling and scale state. We need to send this |
| 61 // message whenever we want to guarantee that page's scale will be | 61 // message whenever we want to guarantee that page's scale will be |
| 62 // recalculated by WebKit. | 62 // recalculated by WebKit. |
| 63 IPC_MESSAGE_ROUTED0(AwViewMsg_ResetScrollAndScaleState) | 63 IPC_MESSAGE_ROUTED0(AwViewMsg_ResetScrollAndScaleState) |
| 64 | 64 |
| 65 // Sets the initial page scale. This overrides initial scale set by | 65 // Sets the initial page scale. This overrides initial scale set by |
| 66 // the meta viewport tag. | 66 // the meta viewport tag. |
| 67 IPC_MESSAGE_ROUTED1(AwViewMsg_SetInitialPageScale, | 67 IPC_MESSAGE_ROUTED1(AwViewMsg_SetInitialPageScale, |
| 68 double /* page_scale_factor */) | 68 double /* page_scale_factor */) |
| 69 | 69 |
| 70 // Makes the WebKit::WebView use the given size for layout regardless of what |
| 71 // the size of the RenderWidget or viewport settings are. |
| 72 IPC_MESSAGE_ROUTED1(AwViewMsg_EnableFixedLayoutOverride, |
| 73 gfx::Size /* size */) |
| 74 |
| 75 IPC_MESSAGE_ROUTED0(AwViewMsg_DisableFixedLayoutOverride) |
| 76 |
| 70 // Sets the base background color for this view. | 77 // Sets the base background color for this view. |
| 71 IPC_MESSAGE_ROUTED1(AwViewMsg_SetBackgroundColor, | 78 IPC_MESSAGE_ROUTED1(AwViewMsg_SetBackgroundColor, |
| 72 SkColor); | 79 SkColor); |
| 73 | 80 |
| 74 IPC_MESSAGE_CONTROL1(AwViewMsg_SetJsOnlineProperty, | 81 IPC_MESSAGE_CONTROL1(AwViewMsg_SetJsOnlineProperty, |
| 75 bool /* network_up */) | 82 bool /* network_up */) |
| 76 | 83 |
| 77 //----------------------------------------------------------------------------- | 84 //----------------------------------------------------------------------------- |
| 78 // RenderView messages | 85 // RenderView messages |
| 79 // These are messages sent from the renderer to the browser process. | 86 // These are messages sent from the renderer to the browser process. |
| 80 | 87 |
| 81 // Response to AwViewMsg_DocumentHasImages request. | 88 // Response to AwViewMsg_DocumentHasImages request. |
| 82 IPC_MESSAGE_ROUTED2(AwViewHostMsg_DocumentHasImagesResponse, | 89 IPC_MESSAGE_ROUTED2(AwViewHostMsg_DocumentHasImagesResponse, |
| 83 int, /* id */ | 90 int, /* id */ |
| 84 bool /* has_images */) | 91 bool /* has_images */) |
| 85 | 92 |
| 86 // Response to AwViewMsg_DoHitTest. | 93 // Response to AwViewMsg_DoHitTest. |
| 87 IPC_MESSAGE_ROUTED1(AwViewHostMsg_UpdateHitTestData, | 94 IPC_MESSAGE_ROUTED1(AwViewHostMsg_UpdateHitTestData, |
| 88 android_webview::AwHitTestData) | 95 android_webview::AwHitTestData) |
| 89 | 96 |
| 90 // Sent whenever the page scale factor (as seen by RenderView) is changed. | 97 // Sent whenever the page scale factor (as seen by RenderView) is changed. |
| 91 IPC_MESSAGE_ROUTED1(AwViewHostMsg_PageScaleFactorChanged, | 98 IPC_MESSAGE_ROUTED1(AwViewHostMsg_PageScaleFactorChanged, |
| 92 float /* page_scale_factor */) | 99 float /* page_scale_factor */) |
| OLD | NEW |