| 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/process.h" | 8 #include "base/process.h" |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" |
| 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" | 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" |
| 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
| 39 #include "ui/base/dialogs/selected_file_info.h" | 39 #include "ui/base/dialogs/selected_file_info.h" |
| 40 #include "ui/base/ime/text_input_type.h" | 40 #include "ui/base/ime/text_input_type.h" |
| 41 #include "ui/base/range/range.h" | 41 #include "ui/base/range/range.h" |
| 42 #include "ui/gfx/point.h" | 42 #include "ui/gfx/point.h" |
| 43 #include "ui/gfx/rect.h" | 43 #include "ui/gfx/rect.h" |
| 44 #include "ui/gfx/rect_f.h" |
| 44 #include "webkit/glue/webcookie.h" | 45 #include "webkit/glue/webcookie.h" |
| 45 #include "webkit/glue/webmenuitem.h" | 46 #include "webkit/glue/webmenuitem.h" |
| 46 #include "webkit/glue/webpreferences.h" | 47 #include "webkit/glue/webpreferences.h" |
| 47 #include "webkit/plugins/npapi/webplugin.h" | 48 #include "webkit/plugins/npapi/webplugin.h" |
| 48 | 49 |
| 49 #if defined(OS_MACOSX) | 50 #if defined(OS_MACOSX) |
| 50 #include "content/common/mac/font_descriptor.h" | 51 #include "content/common/mac/font_descriptor.h" |
| 51 #endif | 52 #endif |
| 52 | 53 |
| 53 #if defined(OS_ANDROID) | 54 #if defined(OS_ANDROID) |
| (...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetMonitorColorProfile, | 839 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetMonitorColorProfile, |
| 839 std::vector<char> /* profile */) | 840 std::vector<char> /* profile */) |
| 840 | 841 |
| 841 // Tells the renderer to create a new view. | 842 // Tells the renderer to create a new view. |
| 842 // This message is slightly different, the view it takes (via | 843 // This message is slightly different, the view it takes (via |
| 843 // ViewMsg_New_Params) is the view to create, the message itself is sent as a | 844 // ViewMsg_New_Params) is the view to create, the message itself is sent as a |
| 844 // non-view control message. | 845 // non-view control message. |
| 845 IPC_MESSAGE_CONTROL1(ViewMsg_New, | 846 IPC_MESSAGE_CONTROL1(ViewMsg_New, |
| 846 ViewMsg_New_Params) | 847 ViewMsg_New_Params) |
| 847 | 848 |
| 849 #if defined(OS_ANDROID) |
| 850 // Sent when the user clicks on the find result bar to activate a find result. |
| 851 // The point (x,y) is in fractions of the content document's width and height. |
| 852 IPC_MESSAGE_ROUTED3(ViewMsg_ActivateNearestFindResult, |
| 853 int /* request_id */, |
| 854 float /* x */, |
| 855 float /* y */) |
| 856 |
| 857 // Sent when the browser wants the bounding boxes of the current find matches. |
| 858 // |
| 859 // If match rects are already cached on the browser side, |current_version| |
| 860 // should be the version number from the ViewHostMsg_FindMatchRects_Reply |
| 861 // they came in, so the renderer can tell if it needs to send updated rects. |
| 862 // Otherwise just pass -1 to always receive the list of rects. |
| 863 // |
| 864 // There must be an active search string (it is probably most useful to call |
| 865 // this immediately after a ViewHostMsg_Find_Reply message arrives with |
| 866 // final_update set to true). |
| 867 IPC_MESSAGE_ROUTED1(ViewMsg_FindMatchRects, |
| 868 int /* current_version */) |
| 869 #endif |
| 870 |
| 848 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. | 871 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. |
| 849 // similar to the new command, but used when the renderer created a view | 872 // similar to the new command, but used when the renderer created a view |
| 850 // first, and we need to update it. | 873 // first, and we need to update it. |
| 851 IPC_MESSAGE_ROUTED1(ViewMsg_CreatingNew_ACK, | 874 IPC_MESSAGE_ROUTED1(ViewMsg_CreatingNew_ACK, |
| 852 gfx::NativeViewId /* parent_hwnd */) | 875 gfx::NativeViewId /* parent_hwnd */) |
| 853 | 876 |
| 854 // Sends updated preferences to the renderer. | 877 // Sends updated preferences to the renderer. |
| 855 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs, | 878 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs, |
| 856 content::RendererPreferences) | 879 content::RendererPreferences) |
| 857 | 880 |
| (...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2295 // * id - (integer) the frame identifier in this RenderView | 2318 // * id - (integer) the frame identifier in this RenderView |
| 2296 // * name - (string) the name of the frame, if one has been assigned | 2319 // * name - (string) the name of the frame, if one has been assigned |
| 2297 // * subtree - an array of the same type of objects for each frame that is a | 2320 // * subtree - an array of the same type of objects for each frame that is a |
| 2298 // direct child of the current frame. This property can be omitted if | 2321 // direct child of the current frame. This property can be omitted if |
| 2299 // there are no direct child frames, so less data is transferred. | 2322 // there are no direct child frames, so less data is transferred. |
| 2300 // | 2323 // |
| 2301 // This message must be sent on any events that modify the tree structure or | 2324 // This message must be sent on any events that modify the tree structure or |
| 2302 // the names of any frames. | 2325 // the names of any frames. |
| 2303 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameTreeUpdated, | 2326 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameTreeUpdated, |
| 2304 std::string /* json encoded frame tree */) | 2327 std::string /* json encoded frame tree */) |
| 2328 |
| 2329 #if defined(OS_ANDROID) |
| 2330 // Response to ViewMsg_FindMatchRects. |
| 2331 // |
| 2332 // |version| will contain the current version number of the renderer's find |
| 2333 // match list (incremented whenever they change), which should be passed in the |
| 2334 // next call to ViewMsg_FindMatchRects. |
| 2335 // |
| 2336 // |rects| will either contain a list of the enclosing rects of all matches |
| 2337 // found by the most recent Find operation, or will be empty if |version| is not |
| 2338 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence |
| 2339 // your locally cached rects should still be valid). The rect coords will be |
| 2340 // custom normalized fractions of the document size. The rects will be sorted by |
| 2341 // frame traversal order starting in the main frame, then by dom order. |
| 2342 // |
| 2343 // |active_rect| will contain the bounding box of the active find-in-page match |
| 2344 // marker, in similarly normalized coords (or an empty rect if there isn't one). |
| 2345 IPC_MESSAGE_ROUTED3(ViewHostMsg_FindMatchRects_Reply, |
| 2346 int /* version */, |
| 2347 std::vector<gfx::RectF> /* rects */, |
| 2348 gfx::RectF /* active_rect */) |
| 2349 #endif |
| OLD | NEW |