Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |