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

Issue 948243005: Merge custom bindings for context menus (Closed)

Created:
5 years, 10 months ago by robwu
Modified:
5 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Merge custom bindings for context menus De-duplicated the logic for contextMenus custom bindings. And changed the contextMenus.update method, so that calling it with "onclick: null" will remove the onclick handler. BUG=461869 TEST=browser_tests ExtensionContextMenuBrowserTest.UpdateOnclick Committed: https://crrev.com/6e3c0446a84339e95996e9cafd6e5e72c0698827 Cr-Commit-Position: refs/heads/master@{#323880}

Patch Set 1 #

Patch Set 2 : $Array.unshift -> $Array.concat #

Total comments: 27

Patch Set 3 : Nits and tests #

Total comments: 8

Patch Set 4 : Address all comments up to #9 #

Total comments: 2

Patch Set 5 : isWebview=true -> false #

Patch Set 6 : rebase #

Patch Set 7 : Fix ExtensionContextMenuBrowserTest.UpdateOnclick test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -228 lines) Patch
M chrome/browser/extensions/extension_context_menu_browsertest.cc View 1 2 3 4 5 6 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/web_view/chrome_web_view_internal_custom_bindings.js View 1 2 3 4 5 1 chunk +8 lines, -125 lines 0 comments Download
A + chrome/test/data/extensions/context_menus/onclick_null/manifest.json View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/context_menus/onclick_null/test.js View 1 2 3 4 5 6 1 chunk +45 lines, -0 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/renderer/resources/context_menus_custom_bindings.js View 1 2 3 4 1 chunk +7 lines, -102 lines 0 comments Download
A extensions/renderer/resources/context_menus_handlers.js View 1 2 3 1 chunk +141 lines, -0 lines 0 comments Download
M extensions/renderer/resources/extensions_renderer_resources.grd View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 29 (9 generated)
robwu
5 years, 10 months ago (2015-02-24 21:37:14 UTC) #2
lazyboy
Hi robwu, thanks for your patch. I've partially looked at it and got stuck on ...
5 years, 10 months ago (2015-02-25 17:58:43 UTC) #4
robwu
A few replies to your review. I'll make the code changes after a few more ...
5 years, 10 months ago (2015-02-25 18:25:31 UTC) #5
not at google - send to devlin
Two small comments, but I'm happy to give my stamp once lazyboy@ is happy. This ...
5 years, 10 months ago (2015-02-25 19:03:53 UTC) #6
lazyboy
Some more comments/answers. I'm OK /w the approach here. https://codereview.chromium.org/948243005/diff/20001/extensions/renderer/resources/context_menus_handlers.js File extensions/renderer/resources/context_menus_handlers.js (right): https://codereview.chromium.org/948243005/diff/20001/extensions/renderer/resources/context_menus_handlers.js#newcode29 extensions/renderer/resources/context_menus_handlers.js:29: ...
5 years, 10 months ago (2015-02-25 22:52:48 UTC) #7
robwu
https://codereview.chromium.org/948243005/diff/20001/extensions/renderer/resources/context_menus_handlers.js File extensions/renderer/resources/context_menus_handlers.js (right): https://codereview.chromium.org/948243005/diff/20001/extensions/renderer/resources/context_menus_handlers.js#newcode5 extensions/renderer/resources/context_menus_handlers.js:5: // Implementation of custom bindings for the contextMenus API. ...
5 years, 10 months ago (2015-02-26 00:15:11 UTC) #8
lazyboy
Thanks for the test, I guess you missed addressing comments from patchset #2? https://codereview.chromium.org/948243005/diff/40001/chrome/browser/extensions/extension_context_menu_browsertest.cc File ...
5 years, 10 months ago (2015-02-26 00:39:47 UTC) #9
robwu
https://codereview.chromium.org/948243005/diff/20001/chrome/renderer/resources/extensions/chrome_web_view_internal_custom_bindings.js File chrome/renderer/resources/extensions/chrome_web_view_internal_custom_bindings.js (right): https://codereview.chromium.org/948243005/diff/20001/chrome/renderer/resources/extensions/chrome_web_view_internal_custom_bindings.js#newcode6 chrome/renderer/resources/extensions/chrome_web_view_internal_custom_bindings.js:6: var createContextMenusHandlers = require('contextMenusHandlers').create; On 2015/02/25 19:03:53, kalman wrote: ...
5 years, 10 months ago (2015-02-26 09:33:46 UTC) #10
lazyboy
https://codereview.chromium.org/948243005/diff/60001/extensions/renderer/resources/context_menus_custom_bindings.js File extensions/renderer/resources/context_menus_custom_bindings.js (right): https://codereview.chromium.org/948243005/diff/60001/extensions/renderer/resources/context_menus_custom_bindings.js#newcode13 extensions/renderer/resources/context_menus_custom_bindings.js:13: var handlers = contextMenusHandlers.create(true /* isWebview */); This should ...
5 years, 10 months ago (2015-02-26 18:04:38 UTC) #11
robwu
https://codereview.chromium.org/948243005/diff/60001/extensions/renderer/resources/context_menus_custom_bindings.js File extensions/renderer/resources/context_menus_custom_bindings.js (right): https://codereview.chromium.org/948243005/diff/60001/extensions/renderer/resources/context_menus_custom_bindings.js#newcode13 extensions/renderer/resources/context_menus_custom_bindings.js:13: var handlers = contextMenusHandlers.create(true /* isWebview */); On 2015/02/26 ...
5 years, 10 months ago (2015-02-26 22:51:23 UTC) #12
lazyboy
lgtm
5 years, 10 months ago (2015-02-26 22:55:17 UTC) #13
robwu
kalman: lazyboy approved this patch, could you give your lg as well?
5 years, 8 months ago (2015-04-02 11:58:32 UTC) #14
not at google - send to devlin
lgtm
5 years, 8 months ago (2015-04-02 14:22:48 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/948243005/80001
5 years, 8 months ago (2015-04-02 14:50:17 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/11257)
5 years, 8 months ago (2015-04-02 14:55:23 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/948243005/100001
5 years, 8 months ago (2015-04-02 21:59:34 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/42788) linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 8 months ago (2015-04-03 05:31:37 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/948243005/120001
5 years, 8 months ago (2015-04-04 08:49:19 UTC) #27
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 8 months ago (2015-04-04 10:43:12 UTC) #28
commit-bot: I haz the power
5 years, 8 months ago (2015-04-04 10:43:57 UTC) #29
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/6e3c0446a84339e95996e9cafd6e5e72c0698827
Cr-Commit-Position: refs/heads/master@{#323880}

Powered by Google App Engine
This is Rietveld 408576698