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

Issue 526001: Mac: Make devtools window dockable. (Closed)

Created:
10 years, 11 months ago by Nico
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Mac: Make devtools window dockable. xib change: Deleted NSBox, added NSSplitView instead (with a thin divider and without any child views). I added the devtools tabcontents to TabContentsController; windows and linux instead add it to the browser window and switch it on every tab change. What I've done makes more sense to me and might work better with a) dragging a tab with docked devtools into a new window and b) toggling fullscreen. BUG=17368 TEST= * Inspect element, click the "attach" item in the lower left corner. Devtools should attach to the tab. Click it again, should detach. Re-attach, switch tabs. Should only be in the tab it was attached to. Open another devtools window in another tab, should be attached there. Drag tab with attached devtools into a new window, should work. * Inspect element with docked devtools, close devtools, inspect another element. devtools should open with the same size it had when it was closed, and should still be docked. * Hover link with docked devtools. Status bubble should not overlap devtools. * Go to http://www.pagetutor.com/keeper/http_authentication/index.html and make sure the http auth sheet still shows up Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35576

Patch Set 1 #

Patch Set 2 : kinda works #

Patch Set 3 : persist size #

Patch Set 4 : status bubble #

Patch Set 5 : dcheck #

Patch Set 6 : dragging out works #

Total comments: 14

Patch Set 7 : address comments, fix unit tests #

Total comments: 19

Patch Set 8 : rohit's comments #

Total comments: 4

Patch Set 9 : more comments #

Total comments: 2

Patch Set 10 : doh #

Patch Set 11 : copyediting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -107 lines) Patch
M chrome/app/nibs/TabContents.xib View 1 2 3 4 5 6 7 11 chunks +28 lines, -73 lines 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.mm View 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/cocoa/browser_window_controller.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/cocoa/browser_window_controller.mm View 1 2 3 4 5 6 7 8 4 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/tab_contents_controller.h View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -6 lines 0 comments Download
M chrome/browser/cocoa/tab_contents_controller.mm View 1 2 3 4 5 6 7 8 3 chunks +74 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_controller.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +16 lines, -6 lines 0 comments Download
M chrome/browser/cocoa/tab_strip_controller.mm View 1 2 3 4 5 6 7 8 9 7 chunks +45 lines, -4 lines 0 comments Download
M chrome/browser/debugger/devtools_manager.cc View 2 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/debugger/devtools_window.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ipc/ipc_message.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/devtools/js/devtools.js View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Nico
10 years, 11 months ago (2010-01-04 22:09:29 UTC) #1
pink (ping after 24hrs)
Per IRC, this feels like the wrong place to put the concept of the dev ...
10 years, 11 months ago (2010-01-04 22:23:15 UTC) #2
Nico
Controlling a tab is next to no work (case in point: TabContents.xib didn't contain anything ...
10 years, 11 months ago (2010-01-04 22:28:34 UTC) #3
viettrungluu
As Nico points out, a |TabContents| doesn't really need to be controlled (being rather controller-like ...
10 years, 11 months ago (2010-01-04 22:46:42 UTC) #4
Nico
http://codereview.chromium.org/526001/diff/3012/2029 File chrome/browser/cocoa/tab_contents_controller.h (right): http://codereview.chromium.org/526001/diff/3012/2029#newcode19 chrome/browser/cocoa/tab_contents_controller.h:19: // the render widget host view. On 2010/01/04 22:23:15, ...
10 years, 11 months ago (2010-01-04 23:06:40 UTC) #5
pfeldman
http://codereview.chromium.org/526001/diff/1014/1023 File chrome/browser/debugger/devtools_manager.cc (left): http://codereview.chromium.org/526001/diff/1014/1023#oldcode345 chrome/browser/debugger/devtools_manager.cc:345: #if defined OS_MACOSX Yeah, sorry for not pointing you ...
10 years, 11 months ago (2010-01-05 12:13:44 UTC) #6
Nico
http://codereview.chromium.org/526001/diff/1014/1024 File chrome/browser/debugger/devtools_window.cc (right): http://codereview.chromium.org/526001/diff/1014/1024#newcode36 chrome/browser/debugger/devtools_window.cc:36: return NULL; // Happens only in tests. On 2010/01/05 ...
10 years, 11 months ago (2010-01-05 15:07:25 UTC) #7
rohitrao (ping after 24h)
Bunch of comments, mostly just places to double-check and make sure things aren't broken. I ...
10 years, 11 months ago (2010-01-05 18:40:07 UTC) #8
pfeldman
http://codereview.chromium.org/526001/diff/1014/1024 File chrome/browser/debugger/devtools_window.cc (right): http://codereview.chromium.org/526001/diff/1014/1024#newcode36 chrome/browser/debugger/devtools_window.cc:36: return NULL; // Happens only in tests. It is ...
10 years, 11 months ago (2010-01-05 18:49:37 UTC) #9
Nico
http://codereview.chromium.org/526001/diff/1014/1019 File chrome/browser/cocoa/tab_contents_controller.h (right): http://codereview.chromium.org/526001/diff/1014/1019#newcode27 chrome/browser/cocoa/tab_contents_controller.h:27: IBOutlet NSSplitView* contentsBox_; On 2010/01/05 18:40:07, rohitrao wrote: > ...
10 years, 11 months ago (2010-01-05 19:39:49 UTC) #10
Nico
I filed http://code.google.com/p/chromium/issues/detail?id=31633 . Hooray?
10 years, 11 months ago (2010-01-05 21:29:11 UTC) #11
pink (ping after 24hrs)
LGTM http://codereview.chromium.org/526001/diff/7002/6006 File chrome/browser/cocoa/tab_contents_controller.h (right): http://codereview.chromium.org/526001/diff/7002/6006#newcode54 chrome/browser/cocoa/tab_contents_controller.h:54: // split view if |devtoolsContents| is NULL. Can ...
10 years, 11 months ago (2010-01-05 21:58:28 UTC) #12
rohitrao (ping after 24h)
http://codereview.chromium.org/526001/diff/1014/1022 File chrome/browser/cocoa/tab_strip_controller.mm (right): http://codereview.chromium.org/526001/diff/1014/1022#newcode1617 chrome/browser/cocoa/tab_strip_controller.mm:1617: return [tabContentsArray_ objectAtIndex:tabStripModel_->selected_index()]; On 2010/01/05 19:39:49, Nico wrote: > ...
10 years, 11 months ago (2010-01-05 22:05:16 UTC) #13
Nico
Thanks! http://codereview.chromium.org/526001/diff/1014/1022 File chrome/browser/cocoa/tab_strip_controller.mm (right): http://codereview.chromium.org/526001/diff/1014/1022#newcode1617 chrome/browser/cocoa/tab_strip_controller.mm:1617: return [tabContentsArray_ objectAtIndex:tabStripModel_->selected_index()]; On 2010/01/05 22:05:16, rohitrao wrote: ...
10 years, 11 months ago (2010-01-05 22:22:39 UTC) #14
pink (ping after 24hrs)
http://codereview.chromium.org/526001/diff/29/1035 File chrome/browser/cocoa/tab_strip_controller.h (right): http://codereview.chromium.org/526001/diff/29/1035#newcode61 chrome/browser/cocoa/tab_strip_controller.h:61: // |TabStripModel| and this array are identical. tabStripModel_? Maybe ...
10 years, 11 months ago (2010-01-05 22:34:30 UTC) #15
rohitrao (ping after 24h)
LGTM Looking at the other calls to indexFromModelIndex, I think the new DCHECK is ok.
10 years, 11 months ago (2010-01-05 22:38:56 UTC) #16
Nico
10 years, 11 months ago (2010-01-05 22:40:18 UTC) #17
Thanks again.

Submitting once the most recent version is through the trybots.

http://codereview.chromium.org/526001/diff/29/1035
File chrome/browser/cocoa/tab_strip_controller.h (right):

http://codereview.chromium.org/526001/diff/29/1035#newcode61
chrome/browser/cocoa/tab_strip_controller.h:61: // |TabStripModel| and this
array are identical.
On 2010/01/05 22:34:30, pink wrote:
> tabStripModel_? Maybe add that, for instance, they won't be identical when
tabs
> are animating closed.

Done.

Powered by Google App Engine
This is Rietveld 408576698