Place DevTools WebContents underneath inspected WebContents.
commitbd156acdb0abe5f3e6cfa3b35a1af1a248249158
authordgozman@chromium.org <dgozman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 17 Dec 2013 08:47:33 +0000 (17 08:47 +0000)
committerdgozman@chromium.org <dgozman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 17 Dec 2013 08:47:33 +0000 (17 08:47 +0000)
tree094ebe14bbc0b959e355aec00ded5855bec82ec5
parentd96f36012927a164297f0f4127eea9cca6bb9541
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

Review URL: https://codereview.chromium.org/63173016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241223 0039d316-1c4b-4281-b951-d872f2087c98
26 files changed:
chrome/browser/devtools/devtools_embedder_message_dispatcher.cc
chrome/browser/devtools/devtools_embedder_message_dispatcher.h
chrome/browser/devtools/devtools_window.cc
chrome/browser/devtools/devtools_window.h
chrome/browser/prefs/browser_prefs.cc
chrome/browser/ui/browser_ui_prefs.cc
chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm
chrome/browser/ui/cocoa/browser_window_controller_unittest.mm
chrome/browser/ui/cocoa/dev_tools_controller.h
chrome/browser/ui/cocoa/dev_tools_controller.mm
chrome/browser/ui/gtk/browser_window_gtk.cc
chrome/browser/ui/gtk/browser_window_gtk.h
chrome/browser/ui/views/frame/browser_view.cc
chrome/browser/ui/views/frame/browser_view.h
chrome/browser/ui/views/frame/browser_view_interactive_uitest.cc
chrome/browser/ui/views/frame/browser_view_layout.cc
chrome/browser/ui/views/frame/browser_view_layout.h
chrome/browser/ui/views/frame/browser_view_layout_unittest.cc
chrome/browser/ui/views/frame/browser_view_unittest.cc
chrome/browser/ui/views/frame/contents_container.cc [deleted file]
chrome/browser/ui/views/frame/contents_container.h [deleted file]
chrome/browser/ui/views/frame/contents_layout_manager.cc [new file with mode: 0644]
chrome/browser/ui/views/frame/contents_layout_manager.h [new file with mode: 0644]
chrome/chrome_browser_ui.gypi
chrome/common/pref_names.cc
chrome/common/pref_names.h