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

Issue 9235002: Enable devtools via context menu in platform apps and popup extensions. (Closed)

Created:
8 years, 11 months ago by benwells
Modified:
8 years, 10 months ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, brettw-cc_chromium.org, jam, mihaip+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org, jeremya
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Enable devtools via context menu in platform apps and popup extensions. This is useful to allow developers of apps and extensions to easily use the devtools in platform apps and popup extensions. To enable devtools to work on popup extensions a new notification NOTIFICATION_DEVTOOLS_WINDOW_OPENING has been added. This lets the popup become aware it is being debugged, which allows it to stay up when it loses focus (e.g. when the devtools are clicked). BUG=53518, 111017 TEST=Manual testing on Windows that dev tools are usable via the context menu in these situations, and they are still disabled when they should be. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=121145

Patch Set 1 #

Patch Set 2 : Keep inspect popup command working #

Total comments: 14

Patch Set 3 : Updated for feedback #

Total comments: 2

Patch Set 4 : Disable devtools on extension popups for gtk and mac #

Patch Set 5 : Nit #

Patch Set 6 : Rebased [but now broken for extension popups] #

Patch Set 7 : Menu for popup extensions #

Total comments: 21

Patch Set 8 : Feedback response #

Patch Set 9 : Fixed stuffup and tests #

Total comments: 11

Patch Set 10 : More feedback response #

Total comments: 1

Patch Set 11 : Comment typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -64 lines) Patch
M chrome/browser/extensions/extension_host.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 5 6 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/extensions/platform_app_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 3 4 5 6 7 8 9 7 chunks +68 lines, -36 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_popup.cc View 1 2 3 4 5 6 7 8 9 3 chunks +26 lines, -6 lines 0 comments Download
M content/browser/debugger/render_view_devtools_agent_host.cc View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M content/public/browser/notification_types.h View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
benwells
8 years, 11 months ago (2012-01-23 04:21:33 UTC) #1
not at google - send to devlin
Just a bunch of sanity-checking nits. http://codereview.chromium.org/9235002/diff/2001/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): http://codereview.chromium.org/9235002/diff/2001/chrome/browser/tab_contents/render_view_context_menu.cc#newcode650 chrome/browser/tab_contents/render_view_context_menu.cc:650: } nit sort ...
8 years, 11 months ago (2012-01-23 05:43:51 UTC) #2
benwells
http://codereview.chromium.org/9235002/diff/2001/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): http://codereview.chromium.org/9235002/diff/2001/chrome/browser/tab_contents/render_view_context_menu.cc#newcode650 chrome/browser/tab_contents/render_view_context_menu.cc:650: } On 2012/01/23 05:43:51, kalman wrote: > nit sort ...
8 years, 11 months ago (2012-01-23 06:42:22 UTC) #3
Aaron Boodman
What is the effect of this for browser action popups? Can you right-click on the ...
8 years, 11 months ago (2012-01-23 06:49:05 UTC) #4
benwells
On 2012/01/23 06:49:05, Aaron Boodman wrote: > What is the effect of this for browser ...
8 years, 11 months ago (2012-01-23 06:54:53 UTC) #5
not at google - send to devlin
cool, lgtm (from a sanity perspective, I don't know the high-level context of this code ...
8 years, 11 months ago (2012-01-23 23:05:52 UTC) #6
benwells
+mihai for apps review +ben as browser/ui owner +avi as browser/tab_contents owner
8 years, 11 months ago (2012-01-23 23:11:11 UTC) #7
Mihai Parparita -not on Chrome
LGTM http://codereview.chromium.org/9235002/diff/5001/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): http://codereview.chromium.org/9235002/diff/5001/chrome/browser/tab_contents/render_view_context_menu.cc#newcode1873 chrome/browser/tab_contents/render_view_context_menu.cc:1873: // for a popup extension or a platform ...
8 years, 11 months ago (2012-01-23 23:17:29 UTC) #8
Ben Goodger (Google)
LGTM for browser/ui
8 years, 11 months ago (2012-01-23 23:46:54 UTC) #9
benwells
-avi as reviewer who is on leave +brettw as owner of chrome/browser/tab_contents
8 years, 11 months ago (2012-01-25 00:21:07 UTC) #10
benwells
I just realised today that this only has the necessary changes in the views implementation ...
8 years, 11 months ago (2012-01-25 08:11:52 UTC) #11
benwells
For now I've kept the Inspect Element command disabled on GTK and mac. I'd like ...
8 years, 11 months ago (2012-01-27 07:15:57 UTC) #12
benwells
-brettw who is on leave +avi who is not on leave any more +msw who ...
8 years, 10 months ago (2012-02-03 05:39:40 UTC) #13
msw
Awesome, this seems like a better solution than what I had before. http://codereview.chromium.org/9235002/diff/29002/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc ...
8 years, 10 months ago (2012-02-03 07:57:24 UTC) #14
benwells
http://codereview.chromium.org/9235002/diff/29002/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): http://codereview.chromium.org/9235002/diff/29002/chrome/browser/tab_contents/render_view_context_menu.cc#newcode650 chrome/browser/tab_contents/render_view_context_menu.cc:650: const Extension* extension = host->extension(); On 2012/02/03 07:57:24, msw ...
8 years, 10 months ago (2012-02-06 03:40:46 UTC) #15
benwells
http://codereview.chromium.org/9235002/diff/29002/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): http://codereview.chromium.org/9235002/diff/29002/chrome/browser/tab_contents/render_view_context_menu.cc#newcode679 chrome/browser/tab_contents/render_view_context_menu.cc:679: if (spelling_menu_observer_.get()) { On 2012/02/06 03:40:46, benwells wrote: > ...
8 years, 10 months ago (2012-02-06 04:31:26 UTC) #16
msw
http://codereview.chromium.org/9235002/diff/29004/chrome/browser/extensions/platform_app_browsertest.cc File chrome/browser/extensions/platform_app_browsertest.cc (right): http://codereview.chromium.org/9235002/diff/29004/chrome/browser/extensions/platform_app_browsertest.cc#newcode168 chrome/browser/extensions/platform_app_browsertest.cc:168: // The context_menu app has one context menu item. ...
8 years, 10 months ago (2012-02-07 00:34:57 UTC) #17
benwells
http://codereview.chromium.org/9235002/diff/29004/chrome/browser/extensions/platform_app_browsertest.cc File chrome/browser/extensions/platform_app_browsertest.cc (right): http://codereview.chromium.org/9235002/diff/29004/chrome/browser/extensions/platform_app_browsertest.cc#newcode168 chrome/browser/extensions/platform_app_browsertest.cc:168: // The context_menu app has one context menu item. ...
8 years, 10 months ago (2012-02-08 03:49:16 UTC) #18
msw
LGTM
8 years, 10 months ago (2012-02-08 04:04:42 UTC) #19
Avi (use Gerrit)
lgtm http://codereview.chromium.org/9235002/diff/38001/chrome/browser/extensions/platform_app_browsertest.cc File chrome/browser/extensions/platform_app_browsertest.cc (right): http://codereview.chromium.org/9235002/diff/38001/chrome/browser/extensions/platform_app_browsertest.cc#newcode169 chrome/browser/extensions/platform_app_browsertest.cc:169: // seperator and the developer tools, is all ...
8 years, 10 months ago (2012-02-08 04:26:45 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/9235002/40003
8 years, 10 months ago (2012-02-08 08:34:50 UTC) #21
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
8 years, 10 months ago (2012-02-08 09:38:31 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/9235002/40003
8 years, 10 months ago (2012-02-08 22:37:55 UTC) #23
commit-bot: I haz the power
8 years, 10 months ago (2012-02-09 01:55:36 UTC) #24
Change committed as 121145

Powered by Google App Engine
This is Rietveld 408576698