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

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

Issue 10941015: [Android] Upstream the WebView find-in-page API implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 1000
1001 // Tells the renderer to perform the specified navigation, interrupting any 1001 // Tells the renderer to perform the specified navigation, interrupting any
1002 // existing navigation. 1002 // existing navigation.
1003 IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params) 1003 IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params)
1004 1004
1005 IPC_MESSAGE_ROUTED0(ViewMsg_Stop) 1005 IPC_MESSAGE_ROUTED0(ViewMsg_Stop)
1006 1006
1007 // Tells the renderer to reload the current focused frame 1007 // Tells the renderer to reload the current focused frame
1008 IPC_MESSAGE_ROUTED0(ViewMsg_ReloadFrame) 1008 IPC_MESSAGE_ROUTED0(ViewMsg_ReloadFrame)
1009 1009
1010 #if defined(OS_ANDROID)
jam 2012/09/19 16:55:43 nit: put all the android specific messages togethe
Leandro Graciá Gil 2012/09/19 18:08:59 Done.
1011 // Sent when the user wants to search for all occurrences of a word or find
1012 // the next result in a synchronous way. This method forces the UI thread in
1013 // the browser to wait for the renderer to reply, therefore blocking the UI.
1014 //
1015 // This functionality is required for compatibility with the legacy Android
1016 // WebView API. As this goes strongly against the Chromium design guidelines,
1017 // this message should not be used for any other purposes.
jam 2012/09/19 16:55:43 nit: this message _can't_ be used for any other pu
Leandro Graciá Gil 2012/09/19 18:08:59 Done.
1018 //
1019 IPC_SYNC_MESSAGE_ROUTED3_2(ViewMsg_SynchronousFind,
1020 int /* request_id */,
1021 string16 /* search_string */,
1022 WebKit::WebFindOptions /* options */,
1023 int /* Out: Number of occurrences found */,
jam 2012/09/19 16:55:43 nit: skip the "Out:". also, the convention is to p
Leandro Graciá Gil 2012/09/19 18:08:59 Done.
1024 int /* Out: Active ordinal */)
1025 #endif
1026
1010 // Sent when the user wants to search for a word on the page (find in page). 1027 // Sent when the user wants to search for a word on the page (find in page).
1011 IPC_MESSAGE_ROUTED3(ViewMsg_Find, 1028 IPC_MESSAGE_ROUTED3(ViewMsg_Find,
1012 int /* request_id */, 1029 int /* request_id */,
1013 string16 /* search_text */, 1030 string16 /* search_text */,
1014 WebKit::WebFindOptions) 1031 WebKit::WebFindOptions)
1015 1032
1016 // This message notifies the renderer that the user has closed the FindInPage 1033 // This message notifies the renderer that the user has closed the FindInPage
1017 // window (and what action to take regarding the selection). 1034 // window (and what action to take regarding the selection).
1018 IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding, 1035 IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding,
1019 content::StopFindAction /* action */) 1036 content::StopFindAction /* action */)
(...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after
2365 // custom normalized fractions of the document size. The rects will be sorted by 2382 // custom normalized fractions of the document size. The rects will be sorted by
2366 // frame traversal order starting in the main frame, then by dom order. 2383 // frame traversal order starting in the main frame, then by dom order.
2367 // 2384 //
2368 // |active_rect| will contain the bounding box of the active find-in-page match 2385 // |active_rect| will contain the bounding box of the active find-in-page match
2369 // marker, in similarly normalized coords (or an empty rect if there isn't one). 2386 // marker, in similarly normalized coords (or an empty rect if there isn't one).
2370 IPC_MESSAGE_ROUTED3(ViewHostMsg_FindMatchRects_Reply, 2387 IPC_MESSAGE_ROUTED3(ViewHostMsg_FindMatchRects_Reply,
2371 int /* version */, 2388 int /* version */,
2372 std::vector<gfx::RectF> /* rects */, 2389 std::vector<gfx::RectF> /* rects */,
2373 gfx::RectF /* active_rect */) 2390 gfx::RectF /* active_rect */)
2374 #endif 2391 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698