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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/devtools_container.h
diff --git a/chrome/browser/ui/views/frame/devtools_container.h b/chrome/browser/ui/views/frame/devtools_container.h
new file mode 100644
index 0000000000000000000000000000000000000000..90d9b3808d5152894dac2c0e97dae2750b4a0b34
--- /dev/null
+++ b/chrome/browser/ui/views/frame/devtools_container.h
@@ -0,0 +1,39 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_VIEWS_FRAME_DEVTOOLS_CONTAINER_H_
+#define CHROME_BROWSER_UI_VIEWS_FRAME_DEVTOOLS_CONTAINER_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "ui/views/view.h"
+
+// 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
+// Otherwise, it has the only child: active WebContents.
+class DevToolsContainer : public views::View {
+ public:
+ explicit DevToolsContainer(
+ views::View* contents_view, views::View* devtools_view);
+ virtual ~DevToolsContainer();
+
+ void SetContentsViewOffsets(
+ const gfx::Size& top_left, const gfx::Size& bottom_right);
+
+ // Overridden from views::View:
+ virtual void Layout() OVERRIDE;
+ virtual const char* GetClassName() const OVERRIDE;
+
+ private:
+ views::View* contents_view_;
+ views::View* devtools_view_;
+
+ gfx::Size top_left_;
+ gfx::Size bottom_right_;
+
+ DISALLOW_COPY_AND_ASSIGN(DevToolsContainer);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_FRAME_DEVTOOLS_CONTAINER_H_

Powered by Google App Engine
This is Rietveld 408576698