| 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.
|
| +// 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_
|
|
|