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

Issue 8318005: Show both custom and default menu items when selection is present. (Closed)

Created:
9 years, 2 months ago by caseq
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Avi (use Gerrit), ajwong+watch_chromium.org, creis+watch_chromium.org, brettw-cc_chromium.org, pfeldman
Visibility:
Public.

Description

Show both custom and default menu items when selection is present. BUG=none TEST=none We used to omit default context menu items if custom items are present. Now we include both custom and default items in case there's an active selection. We need this to be able to show custom context menu items on selection in DevTools. Here's the WebKit part of the change: https://bugs.webkit.org/show_bug.cgi?id=69924 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106902

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 chunk +8 lines, -4 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
caseq
9 years, 2 months ago (2011-10-17 16:26:52 UTC) #1
caseq
ping ;)
9 years, 2 months ago (2011-10-20 14:47:40 UTC) #2
brettw
I'm having a hard time reconciling your CL description with the code. You say "include ...
9 years, 2 months ago (2011-10-20 18:27:02 UTC) #3
caseq
On 2011/10/20 18:27:02, brettw wrote: > I'm having a hard time reconciling your CL description ...
9 years, 2 months ago (2011-10-21 12:57:28 UTC) #4
brettw
9 years, 2 months ago (2011-10-21 20:24:26 UTC) #5
lgtm

http://codereview.chromium.org/8318005/diff/1/chrome/browser/tab_contents/ren...
File chrome/browser/tab_contents/render_view_context_menu.cc (right):

http://codereview.chromium.org/8318005/diff/1/chrome/browser/tab_contents/ren...
chrome/browser/tab_contents/render_view_context_menu.cc:513:
menu_model_.AddSeparator();
I get it. Can we have a comment here like:
  // If there's a selection, don't early return when there are custom items, but
fall through to adding the normal ones after the custom ones.

Powered by Google App Engine
This is Rietveld 408576698