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

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

Issue 63173016: DevTools: place DevTools WebContents underneath inspected WebContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the preference. Created 7 years, 1 month 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_DEVTOOLS_CONTAINER_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_DEVTOOLS_CONTAINER_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "ui/views/view.h"
13
14 // DevToolsContainer is managing WebContents atop of the DevTools if present.
pfeldman 2013/11/18 14:18:27 I am not sure you should introduce it. it does not
15 // Otherwise, it has the only child: active WebContents.
16 class DevToolsContainer : public views::View {
17 public:
18 explicit DevToolsContainer(
19 views::View* contents_view, views::View* devtools_view);
20 virtual ~DevToolsContainer();
21
22 void SetContentsViewOffsets(
23 const gfx::Size& top_left, const gfx::Size& bottom_right);
24
25 // Overridden from views::View:
26 virtual void Layout() OVERRIDE;
27 virtual const char* GetClassName() const OVERRIDE;
28
29 private:
30 views::View* contents_view_;
31 views::View* devtools_view_;
32
33 gfx::Size top_left_;
34 gfx::Size bottom_right_;
35
36 DISALLOW_COPY_AND_ASSIGN(DevToolsContainer);
37 };
38
39 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_DEVTOOLS_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698