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

Issue 492753002: Add support to populate custom context menu items. (Closed)

Created:
6 years, 4 months ago by pals
Modified:
6 years, 3 months ago
Reviewers:
tkent
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Add support to populate custom context menu items. contextmenu attribute which enables web pages to specify custom context menu along with or in place of default platform context menu for a particular element. The value of the contextmenu attribute must be the ID of menu element with type popup. This CL enables ContextMenuController to populate custom context menu items specified by contextmenu attribute on any element. Specifications: http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#context-menus BUG=87553 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180896

Patch Set 1 : #

Total comments: 22

Patch Set 2 : Menu builder algorithm #

Total comments: 29

Patch Set 3 : Fixed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -2 lines) Patch
A LayoutTests/fast/dom/HTMLMenuElement/custom-context-menu.html View 1 2 1 chunk +161 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLMenuElement/custom-context-menu-expected.txt View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/page/ContextMenuController.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/page/ContextMenuController.cpp View 1 2 2 chunks +29 lines, -2 lines 0 comments Download
A Source/core/page/CustomContextMenuProvider.h View 1 1 chunk +45 lines, -0 lines 0 comments Download
A Source/core/page/CustomContextMenuProvider.cpp View 1 2 1 chunk +120 lines, -0 lines 0 comments Download
M Source/platform/ContextMenu.h View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
pals
PTAL.
6 years, 4 months ago (2014-08-20 12:43:33 UTC) #1
tkent
> Specifications: > http://www.whatwg.org/specs/web-apps/current-work/#context-menus Please do not refer to the single-page version. We should refer ...
6 years, 4 months ago (2014-08-21 01:34:39 UTC) #2
pals
Updated the menu builder algorithm as per specification except "If the child is a menuitem ...
6 years, 4 months ago (2014-08-25 14:19:41 UTC) #3
tkent
https://codereview.chromium.org/492753002/diff/40001/LayoutTests/contextmenu/custom-context-menu.html File LayoutTests/contextmenu/custom-context-menu.html (right): https://codereview.chromium.org/492753002/diff/40001/LayoutTests/contextmenu/custom-context-menu.html#newcode1 LayoutTests/contextmenu/custom-context-menu.html:1: <!DOCTYPE html> Making LayoutTests/contextmenu/ only for this test doesn't ...
6 years, 4 months ago (2014-08-25 23:07:42 UTC) #4
pals
Please take a look. https://codereview.chromium.org/492753002/diff/40001/LayoutTests/contextmenu/custom-context-menu.html File LayoutTests/contextmenu/custom-context-menu.html (right): https://codereview.chromium.org/492753002/diff/40001/LayoutTests/contextmenu/custom-context-menu.html#newcode1 LayoutTests/contextmenu/custom-context-menu.html:1: <!DOCTYPE html> On 2014/08/25 23:07:41, ...
6 years, 4 months ago (2014-08-26 07:13:23 UTC) #5
tkent
https://codereview.chromium.org/492753002/diff/40001/Source/core/page/CustomContextMenuProvider.cpp File Source/core/page/CustomContextMenuProvider.cpp (right): https://codereview.chromium.org/492753002/diff/40001/Source/core/page/CustomContextMenuProvider.cpp#newcode87 Source/core/page/CustomContextMenuProvider.cpp:87: if (labelString.isNull() || labelString.isEmpty()) { On 2014/08/26 07:13:23, sanjoy_pal ...
6 years, 4 months ago (2014-08-26 08:11:27 UTC) #6
tkent
lgtm!
6 years, 4 months ago (2014-08-26 08:12:03 UTC) #7
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 4 months ago (2014-08-26 08:12:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sanjoy.pal@samsung.com/492753002/60001
6 years, 4 months ago (2014-08-26 08:12:54 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-08-26 10:47:55 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (60001) as 180896

Powered by Google App Engine
This is Rietveld 408576698