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

Issue 10823233: Close detached DevTools window (rather than open a new instance) when it receives an F12 keypress (Closed)

Created:
8 years, 4 months ago by apavlov
Modified:
8 years, 3 months ago
Reviewers:
Nico, yurys, pfeldman
CC:
chromium-reviews, tfarina, mazda+watch_chromium.org, yusukes+watch_chromium.org, derat+watch_chromium.org
Visibility:
Public.

Description

Close detached DevTools window (rather than open a new instance) when it receives an F12 keypress BUG=139581 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154694

Patch Set 1 #

Total comments: 3

Patch Set 2 : Comments addressed (AsDevToolsWindow() is necessary, since the DevToolsWindow* result is used in te… #

Total comments: 7

Patch Set 3 : Comments addressed #

Patch Set 4 : Return NULL as the ToggleDevToolsWindow() result for DevTools windows #

Total comments: 3

Patch Set 5 : Fixed if-conditions #

Patch Set 6 : Compilation fix: !g_instances does not compile #

Patch Set 7 : Test compilability fixed #

Patch Set 8 : Views build fix #

Patch Set 9 : Win compilation fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -36 lines) Patch
M chrome/app/chrome_command_ids.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/debugger/devtools_sanity_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/debugger/devtools_toggle_action.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/debugger/devtools_window.h View 1 2 3 4 5 6 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/debugger/devtools_window.cc View 1 2 3 4 5 6 7 8 8 chunks +32 lines, -19 lines 0 comments Download
M chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/ui/gtk/accelerators_gtk.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/accelerator_table.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_popup.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/external_tab_container_win.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
apavlov
Folks, could you take a look at the patch? This is take 2 of fixing ...
8 years, 4 months ago (2012-08-08 15:41:24 UTC) #1
Nico
(I'm waiting for pfeldman to look first. I suppose you're intentionally not changing any mac ...
8 years, 4 months ago (2012-08-13 22:45:50 UTC) #2
pfeldman
http://codereview.chromium.org/10823233/diff/1/chrome/browser/debugger/devtools_toggle_action.h File chrome/browser/debugger/devtools_toggle_action.h (right): http://codereview.chromium.org/10823233/diff/1/chrome/browser/debugger/devtools_toggle_action.h#newcode12 chrome/browser/debugger/devtools_toggle_action.h:12: DEVTOOLS_TOGGLE_ACTION_TOGGLE_INSPECTOR I'd rename _NONE to _SHOW and add _TOGGLE ...
8 years, 4 months ago (2012-08-14 11:04:11 UTC) #3
pfeldman
http://codereview.chromium.org/10823233/diff/6001/chrome/browser/debugger/devtools_window.cc File chrome/browser/debugger/devtools_window.cc (right): http://codereview.chromium.org/10823233/diff/6001/chrome/browser/debugger/devtools_window.cc#newcode106 chrome/browser/debugger/devtools_window.cc:106: return AsDevToolsWindow(window_rvh) != NULL; drop the != NULL http://codereview.chromium.org/10823233/diff/6001/chrome/browser/debugger/devtools_window.cc#newcode151 ...
8 years, 4 months ago (2012-08-24 10:16:14 UTC) #4
apavlov
http://codereview.chromium.org/10823233/diff/6001/chrome/browser/debugger/devtools_window.cc File chrome/browser/debugger/devtools_window.cc (right): http://codereview.chromium.org/10823233/diff/6001/chrome/browser/debugger/devtools_window.cc#newcode106 chrome/browser/debugger/devtools_window.cc:106: return AsDevToolsWindow(window_rvh) != NULL; On 2012/08/24 10:16:14, pfeldman wrote: ...
8 years, 4 months ago (2012-08-24 11:02:13 UTC) #5
pfeldman
http://codereview.chromium.org/10823233/diff/6001/chrome/browser/debugger/devtools_window.cc File chrome/browser/debugger/devtools_window.cc (right): http://codereview.chromium.org/10823233/diff/6001/chrome/browser/debugger/devtools_window.cc#newcode151 chrome/browser/debugger/devtools_window.cc:151: return AsDevToolsWindow(inspected_rvh); - So browser _is_ the devtools window ...
8 years, 4 months ago (2012-08-24 11:23:19 UTC) #6
apavlov
On 2012/08/24 11:23:19, pfeldman wrote: > http://codereview.chromium.org/10823233/diff/6001/chrome/browser/debugger/devtools_window.cc > File chrome/browser/debugger/devtools_window.cc (right): > > http://codereview.chromium.org/10823233/diff/6001/chrome/browser/debugger/devtools_window.cc#newcode151 > ...
8 years, 4 months ago (2012-08-24 11:34:39 UTC) #7
pfeldman
http://codereview.chromium.org/10823233/diff/7002/chrome/browser/debugger/devtools_window.cc File chrome/browser/debugger/devtools_window.cc (right): http://codereview.chromium.org/10823233/diff/7002/chrome/browser/debugger/devtools_window.cc#newcode626 chrome/browser/debugger/devtools_window.cc:626: if (host && window) { !window http://codereview.chromium.org/10823233/diff/7002/chrome/browser/debugger/devtools_window.cc#newcode669 chrome/browser/debugger/devtools_window.cc:669: DevToolsWindow* ...
8 years, 3 months ago (2012-08-27 09:21:33 UTC) #8
apavlov
On 2012/08/27 09:21:33, pfeldman wrote: http://codereview.chromium.org/10823233/diff/7002/chrome/browser/debugger/devtools_window.cc#newcode670 > chrome/browser/debugger/devtools_window.cc:670: if (g_instances == NULL) > if (!g_instance) ...
8 years, 3 months ago (2012-08-30 14:58:40 UTC) #9
pfeldman
lgtm
8 years, 3 months ago (2012-08-30 14:59:54 UTC) #10
Nico
lgtm
8 years, 3 months ago (2012-08-30 15:32:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/apavlov@chromium.org/10823233/11012
8 years, 3 months ago (2012-08-30 16:11:45 UTC) #12
commit-bot: I haz the power
Try job failure for 10823233-11012 (retry) on linux_clang for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-08-30 16:42:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/apavlov@chromium.org/10823233/22002
8 years, 3 months ago (2012-08-31 16:20:33 UTC) #14
commit-bot: I haz the power
Try job failure for 10823233-22002 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-08-31 17:04:05 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/apavlov@chromium.org/10823233/25003
8 years, 3 months ago (2012-08-31 17:36:33 UTC) #16
commit-bot: I haz the power
Try job failure for 10823233-25003 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-08-31 18:41:13 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/apavlov@chromium.org/10823233/20006
8 years, 3 months ago (2012-09-03 11:59:57 UTC) #18
commit-bot: I haz the power
8 years, 3 months ago (2012-09-03 14:25:12 UTC) #19
Change committed as 154694

Powered by Google App Engine
This is Rietveld 408576698