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

Unified Diff: chrome/browser/ui/views/frame/contents_layout_manager.h

Issue 137483007: [DevTools] Use special resizing strategy instead of insets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed more comments Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/contents_layout_manager.h
diff --git a/chrome/browser/ui/views/frame/contents_layout_manager.h b/chrome/browser/ui/views/frame/contents_layout_manager.h
index 6f2995ba2910dbf439755b6608dc0eb550ab5082..40d6440ea5c9262e9b279be0b27af3f43f6a5d8e 100644
--- a/chrome/browser/ui/views/frame/contents_layout_manager.h
+++ b/chrome/browser/ui/views/frame/contents_layout_manager.h
@@ -7,7 +7,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
-#include "ui/gfx/insets.h"
+#include "chrome/browser/devtools/devtools_contents_resizing_strategy.h"
#include "ui/views/layout/layout_manager.h"
// ContentsLayoutManager positions the WebContents and devtools WebContents.
@@ -20,8 +20,9 @@ class ContentsLayoutManager : public views::LayoutManager {
// pushed down vertically by |margin|.
void SetActiveTopMargin(int margin);
- // Sets the contents insets from the sides.
- void SetContentsViewInsets(const gfx::Insets& insets);
+ // Sets the contents resizing strategy.
+ void SetContentsResizingStrategy(
+ const DevToolsContentsResizingStrategy& strategy);
// views::LayoutManager overrides:
virtual void Layout(views::View* host) OVERRIDE;
@@ -35,7 +36,7 @@ class ContentsLayoutManager : public views::LayoutManager {
views::View* host_;
- gfx::Insets insets_;
+ DevToolsContentsResizingStrategy strategy_;
int active_top_margin_;
DISALLOW_COPY_AND_ASSIGN(ContentsLayoutManager);
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/frame/contents_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698