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

Issue 8834008: Hide default context menu for platform apps. (Closed)

Created:
9 years ago by benwells
Modified:
9 years ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org, jeremya, sky, miket_OOO
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Hide default context menu for platform apps. Platform apps can provide their own context menu by overriding the contextmenu event. If they don't override this event, the default Chrome menu should not be shown. BUG=106687 TEST=Manually tested, and new browser test cases added. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114162

Patch Set 1 #

Total comments: 1

Patch Set 2 : Implemented differently #

Total comments: 1

Patch Set 3 : Rebased to origin #

Patch Set 4 : Compile on non-Windows OS #

Total comments: 6

Patch Set 5 : Rebase to origin #

Patch Set 6 : Response to comments #

Patch Set 7 : Moved code out of Browser #

Total comments: 1

Messages

Total messages: 17 (0 generated)
benwells
Will look at adding tests for this tomorrow, any comments on the approach in the ...
9 years ago (2011-12-07 10:35:48 UTC) #1
Mihai Parparita -not on Chrome
+Anthony since he knows context menus better than me http://codereview.chromium.org/8834008/diff/1/chrome/browser/renderer_host/chrome_render_view_host_observer.cc File chrome/browser/renderer_host/chrome_render_view_host_observer.cc (right): http://codereview.chromium.org/8834008/diff/1/chrome/browser/renderer_host/chrome_render_view_host_observer.cc#newcode69 chrome/browser/renderer_host/chrome_render_view_host_observer.cc:69: ...
9 years ago (2011-12-08 03:34:52 UTC) #2
benwells
On 2011/12/08 03:34:52, Mihai Parparita wrote: > +Anthony since he knows context menus better than ...
9 years ago (2011-12-08 03:47:11 UTC) #3
asargent_no_longer_on_chrome
I like approach 2 - let platform apps control what goes into the "native" menu. ...
9 years ago (2011-12-08 18:50:46 UTC) #4
benwells
Implemented using approach #2. I haven't changed the way platform apps context menus work to ...
9 years ago (2011-12-09 03:29:16 UTC) #5
asargent_no_longer_on_chrome
Testing question: we recently added the extension_function_test_utils.{h,cc} file with utilities that make some kinds of ...
9 years ago (2011-12-09 05:34:21 UTC) #6
asargent_no_longer_on_chrome
> I haven't changed the way platform apps context menus work to address the issues ...
9 years ago (2011-12-09 05:36:16 UTC) #7
benwells
I checked out the extension_function_test stuff but couldn't see how it would help the tests ...
9 years ago (2011-12-12 05:30:39 UTC) #8
asargent_no_longer_on_chrome
As it stands, LGTM. My thinking with the suggestion about using ExtensionService::GetInstalledApp was that it ...
9 years ago (2011-12-12 18:17:42 UTC) #9
sky
GetPlatformApp feels like it should be a utility some where rather than a method in ...
9 years ago (2011-12-12 22:04:44 UTC) #10
benwells
Moved code out of browser.cc into render_view_context_menu.cc. If this chunk of code becomes common I'll ...
9 years ago (2011-12-12 23:53:51 UTC) #11
sky
LGTM
9 years ago (2011-12-13 00:15:11 UTC) #12
Avi (use Gerrit)
context menu lgtm
9 years ago (2011-12-13 00:41:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/8834008/19002
9 years ago (2011-12-13 00:43:48 UTC) #14
Mihai Parparita -not on Chrome
Feel free to fix this in a follow-up CL. http://codereview.chromium.org/8834008/diff/19002/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): http://codereview.chromium.org/8834008/diff/19002/chrome/browser/tab_contents/render_view_context_menu.cc#newcode524 chrome/browser/tab_contents/render_view_context_menu.cc:524: ...
9 years ago (2011-12-13 01:12:44 UTC) #15
Mihai Parparita -not on Chrome
LGTM in case my comment angers the commit bot.
9 years ago (2011-12-13 01:13:08 UTC) #16
commit-bot: I haz the power
9 years ago (2011-12-13 02:53:24 UTC) #17
Change committed as 114162

Powered by Google App Engine
This is Rietveld 408576698