| 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 #include "third_party/skia/include/core/SkColor.h" |
| 12 #include "ui/gfx/geometry/point_f.h" |
| 13 #include "ui/gfx/geometry/size_f.h" |
| 12 | 14 |
| 13 // Singly-included section for enums and custom IPC traits. | 15 // Singly-included section for enums and custom IPC traits. |
| 14 #ifndef ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_ | 16 #ifndef ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_ |
| 15 #define ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_ | 17 #define ANDROID_WEBVIEW_COMMON_RENDER_VIEW_MESSAGES_H_ |
| 16 | 18 |
| 17 namespace IPC { | 19 namespace IPC { |
| 18 | 20 |
| 19 // TODO - add enums and custom IPC traits here when needed. | 21 // TODO - add enums and custom IPC traits here when needed. |
| 20 | 22 |
| 21 } // namespace IPC | 23 } // namespace IPC |
| (...skipping 20 matching lines...) Expand all Loading... |
| 42 // Request for the renderer to determine if the document contains any image | 44 // Request for the renderer to determine if the document contains any image |
| 43 // elements. The id should be passed in the response message so the response | 45 // elements. The id should be passed in the response message so the response |
| 44 // can be associated with the request. | 46 // can be associated with the request. |
| 45 IPC_MESSAGE_ROUTED1(AwViewMsg_DocumentHasImages, | 47 IPC_MESSAGE_ROUTED1(AwViewMsg_DocumentHasImages, |
| 46 int /* id */) | 48 int /* id */) |
| 47 | 49 |
| 48 // Do hit test at the given webview coordinate. "Webview" coordinates are | 50 // Do hit test at the given webview coordinate. "Webview" coordinates are |
| 49 // physical pixel values with the 0,0 at the top left of the current displayed | 51 // physical pixel values with the 0,0 at the top left of the current displayed |
| 50 // view (ie 0,0 is not the top left of the page if the page is scrolled). | 52 // view (ie 0,0 is not the top left of the page if the page is scrolled). |
| 51 IPC_MESSAGE_ROUTED2(AwViewMsg_DoHitTest, | 53 IPC_MESSAGE_ROUTED2(AwViewMsg_DoHitTest, |
| 52 int /* view_x */, | 54 gfx::PointF /* touch_center */, |
| 53 int /* view_y */) | 55 gfx::SizeF /* touch_area */) |
| 54 | 56 |
| 55 // Sets the zoom factor for text only. Used in layout modes other than | 57 // Sets the zoom factor for text only. Used in layout modes other than |
| 56 // Text Autosizing. | 58 // Text Autosizing. |
| 57 IPC_MESSAGE_ROUTED1(AwViewMsg_SetTextZoomFactor, | 59 IPC_MESSAGE_ROUTED1(AwViewMsg_SetTextZoomFactor, |
| 58 float /* zoom_factor */) | 60 float /* zoom_factor */) |
| 59 | 61 |
| 60 // Resets WebKit WebView scrolling and scale state. We need to send this | 62 // 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 | 63 // message whenever we want to guarantee that page's scale will be |
| 62 // recalculated by WebKit. | 64 // recalculated by WebKit. |
| 63 IPC_MESSAGE_ROUTED0(AwViewMsg_ResetScrollAndScaleState) | 65 IPC_MESSAGE_ROUTED0(AwViewMsg_ResetScrollAndScaleState) |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // or creating a URLRequest for the main frame resource. | 105 // or creating a URLRequest for the main frame resource. |
| 104 IPC_SYNC_MESSAGE_CONTROL2_1(AwViewHostMsg_ShouldOverrideUrlLoading, | 106 IPC_SYNC_MESSAGE_CONTROL2_1(AwViewHostMsg_ShouldOverrideUrlLoading, |
| 105 int /* render_frame_id id */, | 107 int /* render_frame_id id */, |
| 106 base::string16 /* in - url */, | 108 base::string16 /* in - url */, |
| 107 bool /* out - result */) | 109 bool /* out - result */) |
| 108 | 110 |
| 109 // Sent when a subframe is created. | 111 // Sent when a subframe is created. |
| 110 IPC_MESSAGE_CONTROL2(AwViewHostMsg_SubFrameCreated, | 112 IPC_MESSAGE_CONTROL2(AwViewHostMsg_SubFrameCreated, |
| 111 int /* parent_render_frame_id */, | 113 int /* parent_render_frame_id */, |
| 112 int /* child_render_frame_id */) | 114 int /* child_render_frame_id */) |
| OLD | NEW |