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

Issue 17165004: <webview>: Partially migrate loadcommit event from content to chrome (Closed)

Created:
7 years, 6 months ago by Fady Samuel
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, chromium-apps-reviews_chromium.org, darin-cc_chromium.org, jam, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

<webview>: Partially migrate loadcommit event from content to chrome All the pieces are now in place for upstreaming the big content->chrome <webview> refactor. This first patch puts in the first set of pieces in place for migrating loadcommit to chrome. BUG=166165 Test=WebViewTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208542

Patch Set 1 #

Patch Set 2 : Removed unnecessary line of code #

Total comments: 10

Patch Set 3 : Addressed lazyboy@'s comments #

Total comments: 2

Patch Set 4 : Addressed comments #

Total comments: 2

Patch Set 5 : Addressed nit #

Total comments: 4

Patch Set 6 : Addressed nits + removed irrelevant tests #

Patch Set 7 : Test CL #

Patch Set 8 : Fixed <adview> tests #

Patch Set 9 : Added missing json file #

Patch Set 10 : Diff against right CL #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : Merge with ToT #

Total comments: 14

Patch Set 14 : Addressed sky@'s comments #

Patch Set 15 : Merge with ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -196 lines) Patch
A chrome/browser/adview/adview_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/adview/adview_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/browser/adview/adview_guest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +71 lines, -0 lines 0 comments Download
A chrome/browser/adview/adview_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +89 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +24 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/webview/webview_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_renderer_state.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/webview/webview_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/browser/webview/webview_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/browser/webview/webview_guest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/webview/webview_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +32 lines, -10 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
A + chrome/common/extensions/api/adview.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/ad_view.js View 1 2 3 4 5 6 7 8 9 10 4 chunks +24 lines, -2 lines 0 comments Download
M chrome/renderer/resources/extensions/web_view.js View 1 2 3 4 5 6 7 8 9 10 3 chunks +23 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_host_browsertest.cc View 1 2 3 4 5 2 chunks +1 line, -24 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_constants.h View 1 2 3 4 5 6 8 9 3 chunks +4 lines, -2 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_constants.cc View 1 2 3 4 5 6 8 9 3 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.h View 1 2 3 4 5 6 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -7 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -120 lines 0 comments Download
M content/test/data/browser_plugin_embedder.html View 1 2 2 chunks +0 lines, -8 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
Fady Samuel
Hi Istiaque, Now that all the pieces towards the API migration are upstream, this is ...
7 years, 6 months ago (2013-06-19 18:13:48 UTC) #1
Fady Samuel
Sorry, that should've said content->chrome not chrome->content.
7 years, 6 months ago (2013-06-19 18:14:29 UTC) #2
lazyboy
Looks good from browser plugin/web_view.js perspective, some comments. Feel free to add someone to review ...
7 years, 6 months ago (2013-06-19 19:22:16 UTC) #3
Fady Samuel
+mpcomplete@: Could you please look at web_view.js. In particular the way I create an eventBinding.Event. ...
7 years, 6 months ago (2013-06-19 19:42:11 UTC) #4
Matt Perry
Right, you can only have 1 chrome.Event with a given name. https://codereview.chromium.org/17165004/diff/1011/chrome/browser/extensions/api/webview/webview_api_constants.cc File chrome/browser/extensions/api/webview/webview_api_constants.cc (right): ...
7 years, 6 months ago (2013-06-19 22:47:50 UTC) #5
Fady Samuel
PTAL. Istiaque, are you happy with this now? https://codereview.chromium.org/17165004/diff/1011/chrome/browser/extensions/api/webview/webview_api_constants.cc File chrome/browser/extensions/api/webview/webview_api_constants.cc (right): https://codereview.chromium.org/17165004/diff/1011/chrome/browser/extensions/api/webview/webview_api_constants.cc#newcode10 chrome/browser/extensions/api/webview/webview_api_constants.cc:10: const ...
7 years, 6 months ago (2013-06-20 00:26:55 UTC) #6
Matt Perry
LGTM for */extensions https://codereview.chromium.org/17165004/diff/2002/chrome/renderer/resources/extensions/web_view.js File chrome/renderer/resources/extensions/web_view.js (right): https://codereview.chromium.org/17165004/diff/2002/chrome/renderer/resources/extensions/web_view.js#newcode52 chrome/renderer/resources/extensions/web_view.js:52: var loadCommitEvent = createEvent('LoadCommit'); I would ...
7 years, 6 months ago (2013-06-20 00:31:34 UTC) #7
Fady Samuel
https://codereview.chromium.org/17165004/diff/2002/chrome/renderer/resources/extensions/web_view.js File chrome/renderer/resources/extensions/web_view.js (right): https://codereview.chromium.org/17165004/diff/2002/chrome/renderer/resources/extensions/web_view.js#newcode52 chrome/renderer/resources/extensions/web_view.js:52: var loadCommitEvent = createEvent('LoadCommit'); On 2013/06/20 00:31:34, Matt Perry ...
7 years, 6 months ago (2013-06-20 00:55:14 UTC) #8
lazyboy
lgtm lgtm with couple comments. https://chromiumcodereview.appspot.com/17165004/diff/16001/chrome/browser/extensions/api/webview/webview_api_constants.h File chrome/browser/extensions/api/webview/webview_api_constants.h (right): https://chromiumcodereview.appspot.com/17165004/diff/16001/chrome/browser/extensions/api/webview/webview_api_constants.h#newcode1 chrome/browser/extensions/api/webview/webview_api_constants.h:1: // Copyright (c) 2013 ...
7 years, 6 months ago (2013-06-20 02:37:05 UTC) #9
Fady Samuel
PTAL Istiaque. Thanks. https://codereview.chromium.org/17165004/diff/16001/chrome/browser/extensions/api/webview/webview_api_constants.h File chrome/browser/extensions/api/webview/webview_api_constants.h (right): https://codereview.chromium.org/17165004/diff/16001/chrome/browser/extensions/api/webview/webview_api_constants.h#newcode1 chrome/browser/extensions/api/webview/webview_api_constants.h:1: // Copyright (c) 2013 The Chromium ...
7 years, 6 months ago (2013-06-20 03:58:28 UTC) #10
lazyboy
lgtm
7 years, 6 months ago (2013-06-20 04:01:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/17165004/20001
7 years, 6 months ago (2013-06-20 04:04:38 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-20 04:35:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/17165004/20001
7 years, 6 months ago (2013-06-20 04:49:12 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-20 05:05:36 UTC) #15
Fady Samuel
Doh, it looks like this CL will break <adview>. Adding rpaquay@ as reviewer. We'll need ...
7 years, 6 months ago (2013-06-20 05:07:26 UTC) #16
Fady Samuel
+kalman@ to continue a discussion we had yesterday. It turns out that ad_view.json was required ...
7 years, 6 months ago (2013-06-21 14:19:03 UTC) #17
not at google - send to devlin
https://chromiumcodereview.appspot.com/17165004/diff/48002/chrome/common/extensions/api/adview.json File chrome/common/extensions/api/adview.json (right): https://chromiumcodereview.appspot.com/17165004/diff/48002/chrome/common/extensions/api/adview.json#newcode8 chrome/common/extensions/api/adview.json:8: "nodoc": true not needed, since if you don't add ...
7 years, 6 months ago (2013-06-21 16:09:53 UTC) #18
not at google - send to devlin
> +kalman@ to continue a discussion we had yesterday. > Yep. I'm happy to land ...
7 years, 6 months ago (2013-06-21 16:10:24 UTC) #19
lazyboy
Some more comments for newly added files. Still lgtm. https://chromiumcodereview.appspot.com/17165004/diff/48002/chrome/browser/adview/adview_guest.h File chrome/browser/adview/adview_guest.h (right): https://chromiumcodereview.appspot.com/17165004/diff/48002/chrome/browser/adview/adview_guest.h#newcode15 chrome/browser/adview/adview_guest.h:15: ...
7 years, 6 months ago (2013-06-21 17:56:23 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/17165004/61001
7 years, 6 months ago (2013-06-25 14:44:12 UTC) #21
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=12099
7 years, 6 months ago (2013-06-25 14:56:00 UTC) #22
Fady Samuel
+sky@ for chrome OWNER review. It seems I need someone to sign off on the ...
7 years, 6 months ago (2013-06-25 14:59:01 UTC) #23
sky
https://chromiumcodereview.appspot.com/17165004/diff/61001/chrome/browser/adview/adview_constants.h File chrome/browser/adview/adview_constants.h (right): https://chromiumcodereview.appspot.com/17165004/diff/61001/chrome/browser/adview/adview_constants.h#newcode10 chrome/browser/adview/adview_constants.h:10: namespace adview_constants { namespace is wrong here. Should be ...
7 years, 6 months ago (2013-06-25 16:16:51 UTC) #24
Fady Samuel
PTAL https://codereview.chromium.org/17165004/diff/61001/chrome/browser/adview/adview_constants.h File chrome/browser/adview/adview_constants.h (right): https://codereview.chromium.org/17165004/diff/61001/chrome/browser/adview/adview_constants.h#newcode10 chrome/browser/adview/adview_constants.h:10: namespace adview_constants { On 2013/06/25 16:16:52, sky wrote: ...
7 years, 6 months ago (2013-06-25 16:54:40 UTC) #25
sky
LGTM
7 years, 6 months ago (2013-06-25 17:51:40 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/17165004/73001
7 years, 6 months ago (2013-06-25 17:53:09 UTC) #27
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chrome_content_browser_client.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 6 months ago (2013-06-25 17:53:19 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/17165004/84002
7 years, 6 months ago (2013-06-25 18:15:16 UTC) #29
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=169147
7 years, 6 months ago (2013-06-25 19:06:52 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/17165004/84002
7 years, 6 months ago (2013-06-25 19:08:29 UTC) #31
commit-bot: I haz the power
7 years, 6 months ago (2013-06-25 20:42:58 UTC) #32
Message was sent while issue was closed.
Change committed as 208542

Powered by Google App Engine
This is Rietveld 408576698