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

Issue 10941015: [Android] Upstream the WebView find-in-page API implementation. (Closed)

Created:
8 years, 3 months ago by Leandro Graciá Gil
Modified:
8 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

[Android] Upstream the WebView find-in-page API implementation. This API requires implementing a browser -> renderer synchronous findAll message. While this method is deprecated and an alternative asynchronous version is suggested we still need to implement it for legacy WebView compatibility. BUG=136762 TEST=3 new java tests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=157975

Patch Set 1 #

Total comments: 25

Patch Set 2 : review fixes. #

Total comments: 6

Patch Set 3 : review fixes + command line switch for synchronous APIs #

Total comments: 4

Patch Set 4 : nit fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1251 lines, -192 lines) Patch
M android_webview/android_webview.gyp View 1 1 chunk +3 lines, -0 lines 0 comments Download
M android_webview/browser/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
A android_webview/browser/find_helper.h View 1 chunk +77 lines, -0 lines 0 comments Download
A android_webview/browser/find_helper.cc View 1 chunk +173 lines, -0 lines 0 comments Download
A android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h View 1 chunk +20 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 3 chunks +28 lines, -1 line 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsClient.java View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AndroidWebViewTestBase.java View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/NullContentsClient.java View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A android_webview/javatests/src/org/chromium/android_webview/test/WebViewAsynchronousFindApisTest.java View 1 chunk +141 lines, -0 lines 0 comments Download
A android_webview/javatests/src/org/chromium/android_webview/test/WebViewFindApisTestBase.java View 1 chunk +184 lines, -0 lines 0 comments Download
A android_webview/javatests/src/org/chromium/android_webview/test/WebViewMixedFindApisTest.java View 1 chunk +42 lines, -0 lines 0 comments Download
A android_webview/javatests/src/org/chromium/android_webview/test/WebViewSynchronousFindApisTest.java View 1 chunk +141 lines, -0 lines 0 comments Download
M android_webview/lib/main/webview_entry_point.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 3 4 chunks +16 lines, -2 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 10 chunks +67 lines, -19 lines 0 comments Download
M android_webview/native/aw_web_contents_delegate.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M android_webview/native/aw_web_contents_delegate.cc View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download
M android_webview/native/cookie_manager.cc View 2 chunks +1 line, -10 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 3 chunks +17 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 8 chunks +77 lines, -68 lines 0 comments Download
M content/public/browser/render_view_host.h View 1 chunk +8 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 10 chunks +44 lines, -29 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 12 chunks +117 lines, -59 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Leandro Graciá Gil
joth: the android_webview code. jam: the content code, which basically involves the synchronous IPC we ...
8 years, 3 months ago (2012-09-18 16:08:53 UTC) #1
Leandro Graciá Gil
I forgot joth was OOO. Marcin, could you please take a look to the WebView ...
8 years, 3 months ago (2012-09-18 16:38:58 UTC) #2
mkosiba (inactive)
LGTM for android_webview/ https://codereview.chromium.org/10941015/diff/1/android_webview/browser/DEPS File android_webview/browser/DEPS (right): https://codereview.chromium.org/10941015/diff/1/android_webview/browser/DEPS#newcode7 android_webview/browser/DEPS:7: "+third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h", nit: should be OK to ...
8 years, 3 months ago (2012-09-19 12:28:38 UTC) #3
Leandro Graciá Gil
https://codereview.chromium.org/10941015/diff/1/android_webview/browser/DEPS File android_webview/browser/DEPS (right): https://codereview.chromium.org/10941015/diff/1/android_webview/browser/DEPS#newcode7 android_webview/browser/DEPS:7: "+third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h", On 2012/09/19 12:28:38, Martin Kosiba wrote: > nit: ...
8 years, 3 months ago (2012-09-19 12:35:09 UTC) #4
jam
https://codereview.chromium.org/10941015/diff/1/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/10941015/diff/1/content/browser/renderer_host/render_process_host_impl.cc#newcode460 content/browser/renderer_host/render_process_host_impl.cc:460: channel_.reset(new IPC::SyncChannel( please make this conditional on webview (either ...
8 years, 3 months ago (2012-09-19 16:55:43 UTC) #5
Leandro Graciá Gil
https://codereview.chromium.org/10941015/diff/1/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/10941015/diff/1/content/browser/renderer_host/render_process_host_impl.cc#newcode460 content/browser/renderer_host/render_process_host_impl.cc:460: channel_.reset(new IPC::SyncChannel( On 2012/09/19 16:55:43, John Abd-El-Malek wrote: > ...
8 years, 3 months ago (2012-09-19 18:08:59 UTC) #6
jam
https://codereview.chromium.org/10941015/diff/1/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/10941015/diff/1/content/browser/renderer_host/render_process_host_impl.cc#newcode460 content/browser/renderer_host/render_process_host_impl.cc:460: channel_.reset(new IPC::SyncChannel( On 2012/09/19 18:08:59, Leandro Graciá Gil wrote: ...
8 years, 3 months ago (2012-09-19 19:37:56 UTC) #7
Leandro Graciá Gil
On 2012/09/19 19:37:56, John Abd-El-Malek wrote: > I'm very wary of adding this without such ...
8 years, 3 months ago (2012-09-19 20:34:04 UTC) #8
Leandro Graciá Gil
I've added a new command line switch to enable the WebView synchronous APIs. It should ...
8 years, 3 months ago (2012-09-20 16:05:05 UTC) #9
Leandro Graciá Gil
Marcin: there's a new change in the android_webview folder, the initialization of the command line ...
8 years, 3 months ago (2012-09-20 16:07:20 UTC) #10
jam
lgtm On 2012/09/20 16:05:05, Leandro Graciá Gil wrote: > I've added a new command line ...
8 years, 3 months ago (2012-09-21 00:57:23 UTC) #11
mkosiba (inactive)
lgtm
8 years, 3 months ago (2012-09-21 09:10:10 UTC) #12
Leandro Graciá Gil
At least the command line flag explicitly mentions WebView, so that it's clear that it's ...
8 years, 3 months ago (2012-09-21 11:48:09 UTC) #13
darin (slow to review)
8 years, 2 months ago (2012-09-25 22:33:10 UTC) #14
Just a note from the peanut gallery:  I think there's a real opportunity here to
factor the find-in-page code out of RenderViewImpl and WebViewImpl.  Ideally,
we'd have some tear-off helper classes associated with both that can be used to
drive find-in-page.  I bet we could make the code a lot less complicated and
perhaps even isolate the OS-specific bits into separate source files.

Powered by Google App Engine
This is Rietveld 408576698