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

Issue 63173016: DevTools: place DevTools WebContents underneath inspected WebContents. (Closed)

Created:
7 years, 1 month ago by dgozman
Modified:
7 years ago
CC:
chromium-reviews, vsevik, tfarina, yurys, paulirish+reviews_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, pfeldman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Place DevTools WebContents underneath inspected WebContents. DevTools window: split width and height are gone, and instead contents insets are introduced. These insets are used for layout in browser window. Having insets instead of rect allows for faster regular-case resize occuring immediately in layout: we keep DevTools of the same size and resize the page contents. Views: removed SplitView and ContentsContainer, but instead added ContentsLayoutManager which layouts DevTools and page contents taking insets into account. It also supports active top margin, moved from ContentsContainer. Mac: removed NSSplitView, but instead added DevToolsContainerView which resizes subviews manually taking page insets into account. Gtk: removed both contents_vsplit and contents_hsplit, but instead added devtools_floating_container which positions page contents taking insets into account. Next step will remove dock side knowledge from the browser, and leave it on frontend only. BUG=318751 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242071

Patch Set 1 #

Patch Set 2 : Removed the preference. #

Total comments: 12

Patch Set 3 : Fixed unit tests #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 3

Patch Set 7 : Gtk #

Total comments: 4

Patch Set 8 : Views fixes #

Total comments: 12

Patch Set 9 : Fixed comments. Switched to Insets #

Patch Set 10 : Insets on Mac #

Patch Set 11 : View ID test fix in Gtk #

Patch Set 12 : #

Total comments: 2

Patch Set 13 : #

Total comments: 31

Patch Set 14 : Fixed comments on Mac #

Patch Set 15 : Rebase #

Patch Set 16 : Rebase #

Patch Set 17 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+480 lines, -731 lines) Patch
M chrome/browser/devtools/devtools_embedder_message_dispatcher.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/devtools/devtools_embedder_message_dispatcher.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/devtools/devtools_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +14 lines, -21 lines 0 comments Download
M chrome/browser/devtools/devtools_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +22 lines, -64 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/browser_ui_prefs.cc View 1 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_unittest.mm View 1 2 3 4 5 2 chunks +0 lines, -22 lines 0 comments Download
M chrome/browser/ui/cocoa/dev_tools_controller.h View 1 2 3 4 5 3 chunks +4 lines, -11 lines 0 comments Download
M chrome/browser/ui/cocoa/dev_tools_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +95 lines, -156 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +55 lines, -117 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +20 lines, -41 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 16 chunks +63 lines, -128 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_interactive_uitest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +16 lines, -20 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout_unittest.cc View 1 2 3 4 5 6 7 8 chunks +22 lines, -16 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +12 lines, -5 lines 0 comments Download
D chrome/browser/ui/views/frame/contents_container.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -41 lines 0 comments Download
D chrome/browser/ui/views/frame/contents_container.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -40 lines 0 comments Download
A chrome/browser/ui/views/frame/contents_layout_manager.h View 1 2 3 4 5 6 7 8 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/frame/contents_layout_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +68 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +0 lines, -6 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
dgozman
Take a first look please.
7 years, 1 month ago (2013-11-13 15:09:42 UTC) #1
pfeldman
Overall, it looks promising! https://codereview.chromium.org/63173016/diff/40001/chrome/browser/devtools/devtools_embedder_message_dispatcher.h File chrome/browser/devtools/devtools_embedder_message_dispatcher.h (right): https://codereview.chromium.org/63173016/diff/40001/chrome/browser/devtools/devtools_embedder_message_dispatcher.h#newcode31 chrome/browser/devtools/devtools_embedder_message_dispatcher.h:31: virtual void SetContentsOffsets( I'd do ...
7 years, 1 month ago (2013-11-18 14:18:26 UTC) #2
dgozman
https://codereview.chromium.org/63173016/diff/40001/chrome/browser/devtools/devtools_window.h File chrome/browser/devtools/devtools_window.h (right): https://codereview.chromium.org/63173016/diff/40001/chrome/browser/devtools/devtools_window.h#newcode115 chrome/browser/devtools/devtools_window.h:115: gfx::Size GetTopLeftContentsOffset() const; On 2013/11/18 14:18:27, pfeldman wrote: > ...
7 years, 1 month ago (2013-11-18 14:37:14 UTC) #3
pfeldman
https://codereview.chromium.org/63173016/diff/40001/chrome/browser/devtools/devtools_window.h File chrome/browser/devtools/devtools_window.h (right): https://codereview.chromium.org/63173016/diff/40001/chrome/browser/devtools/devtools_window.h#newcode115 chrome/browser/devtools/devtools_window.h:115: gfx::Size GetTopLeftContentsOffset() const; Ok, sgtm. Did you measure the ...
7 years, 1 month ago (2013-11-20 15:02:08 UTC) #4
dgozman
https://codereview.chromium.org/63173016/diff/40001/chrome/browser/devtools/devtools_window.h File chrome/browser/devtools/devtools_window.h (right): https://codereview.chromium.org/63173016/diff/40001/chrome/browser/devtools/devtools_window.h#newcode115 chrome/browser/devtools/devtools_window.h:115: gfx::Size GetTopLeftContentsOffset() const; On 2013/11/20 15:02:08, pfeldman wrote: > ...
7 years, 1 month ago (2013-11-21 15:08:54 UTC) #5
pfeldman
Overall looks good. I don't think landing this w/o GTK on board is a good ...
7 years ago (2013-12-05 15:54:07 UTC) #6
dgozman
Hello, pfeldman@, please take a look at devtools side. avi@, please take a look at ...
7 years ago (2013-12-05 15:54:36 UTC) #7
dgozman
Hi, erg@, please look at the GTK stuff. tsepez@, please look at c/b/devtools/devtools_embedder_message_dispatcher.h Thanks, Dmitry
7 years ago (2013-12-05 16:21:45 UTC) #8
pfeldman
Overall approach and devtools lgtm
7 years ago (2013-12-05 17:23:24 UTC) #9
Tom Sepez
devtools_embedder_message_dispatcher LGTM.
7 years ago (2013-12-05 18:37:56 UTC) #10
Elliot Glaysher
gtk lgtm
7 years ago (2013-12-05 20:17:50 UTC) #11
sky
https://codereview.chromium.org/63173016/diff/240001/chrome/browser/ui/views/frame/devtools_container.h File chrome/browser/ui/views/frame/devtools_container.h (right): https://codereview.chromium.org/63173016/diff/240001/chrome/browser/ui/views/frame/devtools_container.h#newcode14 chrome/browser/ui/views/frame/devtools_container.h:14: // DevToolsContainer is managing WebContents atop of the DevTools ...
7 years ago (2013-12-05 20:56:40 UTC) #12
dgozman
avi@, sky@, PTAL. https://codereview.chromium.org/63173016/diff/240001/chrome/browser/ui/views/frame/devtools_container.h File chrome/browser/ui/views/frame/devtools_container.h (right): https://codereview.chromium.org/63173016/diff/240001/chrome/browser/ui/views/frame/devtools_container.h#newcode14 chrome/browser/ui/views/frame/devtools_container.h:14: // DevToolsContainer is managing WebContents atop ...
7 years ago (2013-12-06 13:24:00 UTC) #13
sky
https://codereview.chromium.org/63173016/diff/260001/chrome/browser/ui/views/frame/browser_view.h File chrome/browser/ui/views/frame/browser_view.h (right): https://codereview.chromium.org/63173016/diff/260001/chrome/browser/ui/views/frame/browser_view.h#newcode96 chrome/browser/ui/views/frame/browser_view.h:96: public views::SingleSplitViewListener, I don't believe this is needed anymore. ...
7 years ago (2013-12-06 17:25:44 UTC) #14
dgozman
I've changed everything from offsets to insets. avi@, sky@, PTAL. https://codereview.chromium.org/63173016/diff/260001/chrome/browser/ui/views/frame/browser_view.h File chrome/browser/ui/views/frame/browser_view.h (right): https://codereview.chromium.org/63173016/diff/260001/chrome/browser/ui/views/frame/browser_view.h#newcode96 ...
7 years ago (2013-12-09 13:19:18 UTC) #15
sky
https://codereview.chromium.org/63173016/diff/340001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/63173016/diff/340001/chrome/browser/ui/views/frame/browser_view.cc#newcode849 chrome/browser/ui/views/frame/browser_view.cc:849: // Layout for DevTools _before_ setting the both main ...
7 years ago (2013-12-09 15:05:11 UTC) #16
dgozman
https://codereview.chromium.org/63173016/diff/340001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/63173016/diff/340001/chrome/browser/ui/views/frame/browser_view.cc#newcode849 chrome/browser/ui/views/frame/browser_view.cc:849: // Layout for DevTools _before_ setting the both main ...
7 years ago (2013-12-09 15:09:51 UTC) #17
sky
Ok, LGTM then. Wait for Avi to review Cocoa side.
7 years ago (2013-12-09 15:14:00 UTC) #18
Avi (use Gerrit)
https://codereview.chromium.org/63173016/diff/360001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm File chrome/browser/ui/cocoa/browser_window_controller_unittest.mm (left): https://codereview.chromium.org/63173016/diff/360001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm#oldcode636 chrome/browser/ui/cocoa/browser_window_controller_unittest.mm:636: // Tests that status bubble's base frame does move ...
7 years ago (2013-12-09 16:13:35 UTC) #19
dgozman
Thank you for review, I will fix everything. One question below though. https://codereview.chromium.org/63173016/diff/360001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm File chrome/browser/ui/cocoa/browser_window_controller_unittest.mm ...
7 years ago (2013-12-09 21:09:10 UTC) #20
dgozman
https://codereview.chromium.org/63173016/diff/360001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm File chrome/browser/ui/cocoa/browser_window_controller_unittest.mm (left): https://codereview.chromium.org/63173016/diff/360001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm#oldcode636 chrome/browser/ui/cocoa/browser_window_controller_unittest.mm:636: // Tests that status bubble's base frame does move ...
7 years ago (2013-12-10 14:51:46 UTC) #21
Avi (use Gerrit)
Cocoa LGTM. https://codereview.chromium.org/63173016/diff/360001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm File chrome/browser/ui/cocoa/browser_window_controller_unittest.mm (left): https://codereview.chromium.org/63173016/diff/360001/chrome/browser/ui/cocoa/browser_window_controller_unittest.mm#oldcode636 chrome/browser/ui/cocoa/browser_window_controller_unittest.mm:636: // Tests that status bubble's base frame ...
7 years ago (2013-12-10 16:32:39 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/63173016/400001
7 years ago (2013-12-13 13:12:34 UTC) #23
commit-bot: I haz the power
Change committed as 240653
7 years ago (2013-12-13 15:09:04 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/63173016/420001
7 years ago (2013-12-16 12:38:24 UTC) #25
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204686
7 years ago (2013-12-16 14:20:33 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/63173016/420001
7 years ago (2013-12-16 19:31:29 UTC) #27
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=106938
7 years ago (2013-12-17 00:34:35 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/63173016/420001
7 years ago (2013-12-17 05:56:45 UTC) #29
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=203775
7 years ago (2013-12-17 07:58:42 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/63173016/420001
7 years ago (2013-12-17 08:45:35 UTC) #31
commit-bot: I haz the power
Change committed as 241223
7 years ago (2013-12-17 08:47:36 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/63173016/430001
7 years ago (2013-12-20 10:59:23 UTC) #33
commit-bot: I haz the power
7 years ago (2013-12-20 12:24:02 UTC) #34
Message was sent while issue was closed.
Change committed as 242071

Powered by Google App Engine
This is Rietveld 408576698