Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: content/common/view_messages.h

Issue 10905058: Upstream the Android port find-in-page feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fixes. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "webkit/glue/webcookie.h" 44 #include "webkit/glue/webcookie.h"
45 #include "webkit/glue/webmenuitem.h" 45 #include "webkit/glue/webmenuitem.h"
46 #include "webkit/glue/webpreferences.h" 46 #include "webkit/glue/webpreferences.h"
47 #include "webkit/plugins/npapi/webplugin.h" 47 #include "webkit/plugins/npapi/webplugin.h"
48 48
49 #if defined(OS_MACOSX) 49 #if defined(OS_MACOSX)
50 #include "content/common/mac/font_descriptor.h" 50 #include "content/common/mac/font_descriptor.h"
51 #endif 51 #endif
52 52
53 #if defined(OS_ANDROID) 53 #if defined(OS_ANDROID)
54 #include "ui/gfx/rect_f.h"
joth 2012/09/04 22:43:31 (ditto)
Leandro GraciĆ” Gil 2012/09/05 00:57:09 Done.
54 #include "webkit/media/android/media_metadata_android.h" 55 #include "webkit/media/android/media_metadata_android.h"
55 #endif 56 #endif
56 57
57 #undef IPC_MESSAGE_EXPORT 58 #undef IPC_MESSAGE_EXPORT
58 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 59 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
59 60
60 #define IPC_MESSAGE_START ViewMsgStart 61 #define IPC_MESSAGE_START ViewMsgStart
61 62
62 IPC_ENUM_TRAITS(AccessibilityMode) 63 IPC_ENUM_TRAITS(AccessibilityMode)
63 IPC_ENUM_TRAITS(ChannelLayout) 64 IPC_ENUM_TRAITS(ChannelLayout)
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698