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

Side by Side Diff: chrome/browser/ui/views/frame/contents_layout_manager.h

Issue 63173016: DevTools: place DevTools WebContents underneath inspected WebContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_LAYOUT_MANAGER_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_LAYOUT_MANAGER_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/gfx/insets.h"
11 #include "ui/views/layout/layout_manager.h"
12
13 // ContentsLayoutManager positions the WebContents and devtools WebContents.
14 class ContentsLayoutManager : public views::LayoutManager {
15 public:
16 ContentsLayoutManager(views::View* devtools_view, views::View* contents_view);
17 virtual ~ContentsLayoutManager();
18
19 // Sets the active top margin; both devtools_view and contents_view will be
20 // pushed down vertically by |margin|.
21 void SetActiveTopMargin(int margin);
22
23 // Sets the contents insets from the sides.
24 void SetContentsViewInsets(const gfx::Insets& insets);
25
26 // views::LayoutManager overrides:
27 virtual void Layout(views::View* host) OVERRIDE;
28 virtual gfx::Size GetPreferredSize(views::View* host) OVERRIDE;
29 virtual void Installed(views::View* host) OVERRIDE;
30 virtual void Uninstalled(views::View* host) OVERRIDE;
31
32 private:
33 views::View* devtools_view_;
34 views::View* contents_view_;
35
36 views::View* host_;
37
38 gfx::Insets insets_;
39 int active_top_margin_;
40
41 DISALLOW_COPY_AND_ASSIGN(ContentsLayoutManager);
42 };
43
44 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/contents_container.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