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

Issue 10918103: Give platform apps control over launcher right-click context menu. (Closed)

Created:
8 years, 3 months ago by Marijn Kruisselbrink
Modified:
8 years, 2 months ago
CC:
chromium-reviews, Avi (use Gerrit), mihaip-chromium-reviews_chromium.org, creis+watch_chromium.org, ben+watch_chromium.org, tfarina, Aaron Boodman, ajwong+watch_chromium.org, sadrul
Visibility:
Public.

Description

Give platform apps control over launcher right-click context menu. This moves most of the extension context menu related code from RenderViewContextMenu to a seperate class, which is then used in two other places as well. BUG=143222 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158691

Patch Set 1 #

Total comments: 17

Patch Set 2 : fix some nits/comments, and rebase #

Patch Set 3 : implement antony's comments and rebase #

Total comments: 2

Patch Set 4 : don't have presence of menu items depend on item_.type #

Patch Set 5 : rebase and fix conflicts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+473 lines, -274 lines) Patch
M chrome/browser/extensions/api/context_menu/context_menu_api.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/extensions/context_menu_matcher.h View 1 2 1 chunk +86 lines, -0 lines 0 comments Download
A chrome/browser/extensions/context_menu_matcher.cc View 1 2 3 1 chunk +231 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_context_menu_browsertest.cc View 1 2 7 chunks +56 lines, -45 lines 0 comments Download
M chrome/browser/extensions/menu_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.h View 1 2 3 4 5 chunks +4 lines, -25 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 3 4 9 chunks +18 lines, -198 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_item.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_item.cc View 1 2 3 4 7 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 1 2 3 5 chunks +27 lines, -3 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/context_menus.json View 1 3 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Marijn Kruisselbrink
A first attempt at making it possible for platform apps to add items to the ...
8 years, 3 months ago (2012-09-06 17:54:50 UTC) #1
asargent_no_longer_on_chrome
I like the overall approach - I think that it's really useful to pull out ...
8 years, 3 months ago (2012-09-10 20:25:19 UTC) #2
Marijn Kruisselbrink
http://codereview.chromium.org/10918103/diff/1/chrome/browser/extensions/context_menu_manager.h File chrome/browser/extensions/context_menu_manager.h (right): http://codereview.chromium.org/10918103/diff/1/chrome/browser/extensions/context_menu_manager.h#newcode21 chrome/browser/extensions/context_menu_manager.h:21: class ContextMenuManager { On 2012/09/10 20:25:20, Antony Sargent wrote: ...
8 years, 3 months ago (2012-09-10 23:16:56 UTC) #3
Mihai Parparita -not on Chrome
Unfortunately I won't be able to review this before I leave for vacation, so I'm ...
8 years, 3 months ago (2012-09-16 06:47:41 UTC) #4
asargent_no_longer_on_chrome
LGTM http://codereview.chromium.org/10918103/diff/1/chrome/browser/extensions/context_menu_manager.h File chrome/browser/extensions/context_menu_manager.h (right): http://codereview.chromium.org/10918103/diff/1/chrome/browser/extensions/context_menu_manager.h#newcode21 chrome/browser/extensions/context_menu_manager.h:21: class ContextMenuManager { On 2012/09/10 23:16:57, Marijn Kruisselbrink ...
8 years, 3 months ago (2012-09-21 19:44:22 UTC) #5
Marijn Kruisselbrink
xiyuan: can you review the chrome/browser/ui/app_list/ part? sky: can you review the chrome/browser/ui/ash/launcher/ part? brettw: ...
8 years, 3 months ago (2012-09-21 22:27:17 UTC) #6
xiyuan
chrome/browser/ui/app_list/ LGTM
8 years, 3 months ago (2012-09-21 22:43:19 UTC) #7
sky
http://codereview.chromium.org/10918103/diff/15001/chrome/browser/ui/ash/launcher/launcher_context_menu.cc File chrome/browser/ui/ash/launcher/launcher_context_menu.cc (right): http://codereview.chromium.org/10918103/diff/15001/chrome/browser/ui/ash/launcher/launcher_context_menu.cc#newcode32 chrome/browser/ui/ash/launcher/launcher_context_menu.cc:32: extension_items_(new extensions::ContextMenuMatcher( Having code specific to the item type ...
8 years, 3 months ago (2012-09-21 23:30:01 UTC) #8
Marijn Kruisselbrink
http://codereview.chromium.org/10918103/diff/15001/chrome/browser/ui/ash/launcher/launcher_context_menu.cc File chrome/browser/ui/ash/launcher/launcher_context_menu.cc (right): http://codereview.chromium.org/10918103/diff/15001/chrome/browser/ui/ash/launcher/launcher_context_menu.cc#newcode32 chrome/browser/ui/ash/launcher/launcher_context_menu.cc:32: extension_items_(new extensions::ContextMenuMatcher( On 2012/09/21 23:30:01, sky wrote: > Having ...
8 years, 3 months ago (2012-09-22 01:01:18 UTC) #9
sky
On Fri, Sep 21, 2012 at 6:01 PM, <mek@chromium.org> wrote: > > http://codereview.chromium.org/10918103/diff/15001/chrome/browser/ui/ash/launcher/launcher_context_menu.cc > File ...
8 years, 3 months ago (2012-09-24 13:53:48 UTC) #10
Marijn Kruisselbrink
On 2012/09/24 13:53:48, sky wrote: > On Fri, Sep 21, 2012 at 6:01 PM, <mailto:mek@chromium.org> ...
8 years, 3 months ago (2012-09-24 18:23:06 UTC) #11
sky
I am OK with LauncherContextMenu taking additional menus, but I don't want it to have ...
8 years, 3 months ago (2012-09-24 21:05:35 UTC) #12
Marijn Kruisselbrink
On 2012/09/24 21:05:35, sky wrote: > I am OK with LauncherContextMenu taking additional menus, but ...
8 years, 3 months ago (2012-09-24 23:17:44 UTC) #13
sky
You convinced me what you have is best. Thanks for trying. LGTM
8 years, 3 months ago (2012-09-25 00:00:33 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mek@chromium.org/10918103/22004
8 years, 2 months ago (2012-09-25 20:18:59 UTC) #15
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/api/context_menu/context_menu_api.cc: While running patch -p1 --forward --force; patching file chrome/browser/extensions/api/context_menu/context_menu_api.cc ...
8 years, 2 months ago (2012-09-25 20:19:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mek@chromium.org/10918103/28001
8 years, 2 months ago (2012-09-25 20:49:21 UTC) #17
commit-bot: I haz the power
8 years, 2 months ago (2012-09-25 23:51:19 UTC) #18
Change committed as 158691

Powered by Google App Engine
This is Rietveld 408576698