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

Issue 11362183: [Android WebView] AwContentsClient.shouldCreateWindow callback part 1. (Closed)

Created:
8 years, 1 month ago by benm (inactive)
Modified:
8 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, android-webview-reviews_chromium.org
Visibility:
Public.

Description

[Android WebView] AwContentsClient.shouldCreateWindow callback part 1. Provide the plumbing from WebContentsDelegate out to AwContentsClient to allow the embedder to respond to requests to create pop up windows. For now we only support the embedder blocking the pop up window; code to support showing the window to follow in a later patch. Note that the AwResourceDispatcherHostDelegate is refactored to support lazily checking the AwContentsIoThreadClient, as we may receive resource requests for the popup window before the Java side has been entirely hooked up. Android bots happy. NOTRY=true Note: part 2 is at https://chromiumcodereview.appspot.com/11348075/ Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167933

Patch Set 1 #

Patch Set 2 : Style nits. #

Total comments: 9

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Fix a wonky indent and add a TODO for mkosiba's comment. #

Total comments: 1

Patch Set 5 : joth comments #

Patch Set 6 : should return after cancelling requests. #

Patch Set 7 : rebase for landing #

Messages

Total messages: 9 (0 generated)
benm (inactive)
d'oh, forgot to add you on this on Friday joth. PTAL!
8 years, 1 month ago (2012-11-13 16:59:46 UTC) #1
mkosiba (inactive)
lgtm https://codereview.chromium.org/11362183/diff/2012/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc File android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc (right): https://codereview.chromium.org/11362183/diff/2012/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc#newcode62 android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc:62: if (!GetIoThreadClient() || ShouldCancel()) { I'd prefer to ...
8 years, 1 month ago (2012-11-13 17:25:10 UTC) #2
benm (inactive)
http://codereview.chromium.org/11362183/diff/2012/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc File android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc (right): http://codereview.chromium.org/11362183/diff/2012/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc#newcode62 android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc:62: if (!GetIoThreadClient() || ShouldCancel()) { I changed it to ...
8 years, 1 month ago (2012-11-13 17:34:10 UTC) #3
joth
https://codereview.chromium.org/11362183/diff/13/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/11362183/diff/13/android_webview/browser/aw_content_browser_client.cc#newcode243 android_webview/browser/aw_content_browser_client.cc:243: // AwContentsClient.shouldCreateWindow callback). I think Bo's TODO still stands: ...
8 years, 1 month ago (2012-11-14 18:34:52 UTC) #4
joth
https://codereview.chromium.org/11362183/diff/8001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/11362183/diff/8001/android_webview/browser/aw_content_browser_client.cc#newcode243 android_webview/browser/aw_content_browser_client.cc:243: // AwContentsClient.onCreateWindow callback). (maybe comment that WebKit already handles ...
8 years, 1 month ago (2012-11-14 18:40:03 UTC) #5
benm (inactive)
thanks joth! http://codereview.chromium.org/11362183/diff/13/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): http://codereview.chromium.org/11362183/diff/13/android_webview/browser/aw_content_browser_client.cc#newcode243 android_webview/browser/aw_content_browser_client.cc:243: // AwContentsClient.shouldCreateWindow callback). Will update the TODO ...
8 years, 1 month ago (2012-11-14 18:42:34 UTC) #6
joth
lgtm
8 years, 1 month ago (2012-11-15 14:54:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benm@chromium.org/11362183/14001
8 years, 1 month ago (2012-11-15 16:39:19 UTC) #8
commit-bot: I haz the power
8 years, 1 month ago (2012-11-15 16:39:50 UTC) #9
Change committed as 167933

Powered by Google App Engine
This is Rietveld 408576698