| 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" |
| 11 #include "third_party/skia/include/core/SkColor.h" |
| 11 | 12 |
| 12 // Singly-included section for enums and custom IPC traits. | 13 // Singly-included section for enums and custom IPC traits. |
| 13 #ifndef ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_ | 14 #ifndef ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_ |
| 14 #define ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_ | 15 #define ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_ |
| 15 | 16 |
| 16 namespace IPC { | 17 namespace IPC { |
| 17 | 18 |
| 18 // TODO - add enums and custom IPC traits here when needed. | 19 // TODO - add enums and custom IPC traits here when needed. |
| 19 | 20 |
| 20 } // namespace IPC | 21 } // namespace IPC |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // 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 |
| 60 // 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 |
| 61 // recalculated by WebKit. | 62 // recalculated by WebKit. |
| 62 IPC_MESSAGE_ROUTED0(AwViewMsg_ResetScrollAndScaleState) | 63 IPC_MESSAGE_ROUTED0(AwViewMsg_ResetScrollAndScaleState) |
| 63 | 64 |
| 64 // Sets the initial page scale. This overrides initial scale set by | 65 // Sets the initial page scale. This overrides initial scale set by |
| 65 // the meta viewport tag. | 66 // the meta viewport tag. |
| 66 IPC_MESSAGE_ROUTED1(AwViewMsg_SetInitialPageScale, | 67 IPC_MESSAGE_ROUTED1(AwViewMsg_SetInitialPageScale, |
| 67 double /* page_scale_factor */) | 68 double /* page_scale_factor */) |
| 68 | 69 |
| 70 // Sets the base background color for this view. |
| 71 IPC_MESSAGE_ROUTED1(AwViewMsg_SetBackgroundColor, |
| 72 SkColor); |
| 73 |
| 69 //----------------------------------------------------------------------------- | 74 //----------------------------------------------------------------------------- |
| 70 // RenderView messages | 75 // RenderView messages |
| 71 // These are messages sent from the renderer to the browser process. | 76 // These are messages sent from the renderer to the browser process. |
| 72 | 77 |
| 73 // Response to AwViewMsg_DocumentHasImages request. | 78 // Response to AwViewMsg_DocumentHasImages request. |
| 74 IPC_MESSAGE_ROUTED2(AwViewHostMsg_DocumentHasImagesResponse, | 79 IPC_MESSAGE_ROUTED2(AwViewHostMsg_DocumentHasImagesResponse, |
| 75 int, /* id */ | 80 int, /* id */ |
| 76 bool /* has_images */) | 81 bool /* has_images */) |
| 77 | 82 |
| 78 // Response to AwViewMsg_DoHitTest. | 83 // Response to AwViewMsg_DoHitTest. |
| 79 IPC_MESSAGE_ROUTED1(AwViewHostMsg_UpdateHitTestData, | 84 IPC_MESSAGE_ROUTED1(AwViewHostMsg_UpdateHitTestData, |
| 80 android_webview::AwHitTestData) | 85 android_webview::AwHitTestData) |
| 81 | 86 |
| 82 // Sent whenever the page scale factor (as seen by RenderView) is changed. | 87 // Sent whenever the page scale factor (as seen by RenderView) is changed. |
| 83 IPC_MESSAGE_ROUTED1(AwViewHostMsg_PageScaleFactorChanged, | 88 IPC_MESSAGE_ROUTED1(AwViewHostMsg_PageScaleFactorChanged, |
| 84 float /* page_scale_factor */) | 89 float /* page_scale_factor */) |
| 85 | 90 |
| OLD | NEW |