Chromium Code Reviews| Index: chrome/browser/extensions/extension_view.h |
| diff --git a/chrome/browser/extensions/extension_view.h b/chrome/browser/extensions/extension_view.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..29e4bac30215364c60ee3ed12dcb9e3823173cc3 |
| --- /dev/null |
| +++ b/chrome/browser/extensions/extension_view.h |
| @@ -0,0 +1,51 @@ |
| +// Copyright (c) 2012 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_EXTENSIONS_EXTENSION_VIEW_H_ |
| +#define CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_H_ |
| + |
| +#include "ui/gfx/native_widget_types.h" |
| + |
| +class Browser; |
| +class ExtensionViewContainer; |
| + |
| +namespace content { |
| +class RenderViewHost; |
| +} |
| + |
| +namespace extensions { |
| +class ExtensionHost; |
| +} |
| + |
| +namespace gfx { |
| +class Size; |
| +} |
| + |
| +class ExtensionView { |
|
Ben Goodger (Google)
2012/09/17 16:07:17
It'd be good to document this interface, including
tfarina
2012/09/19 01:21:39
Done.
|
| + public: |
| + static ExtensionView* Create(extensions::ExtensionHost* host, |
| + Browser* browser); |
| + |
| + virtual ~ExtensionView() {} |
| + |
| + virtual Browser* GetBrowser() = 0; |
| + |
| + virtual const Browser* GetBrowser() const = 0; |
| + |
| + virtual gfx::NativeView GetNativeView() = 0; |
| + |
| + virtual content::RenderViewHost* GetRenderViewHost() const = 0; |
| + |
| + virtual void SetContainer(ExtensionViewContainer* container) = 0; |
| + |
| + virtual void ResizeDueToAutoResize(const gfx::Size& new_size) = 0; |
| + |
| + virtual void RenderViewCreated() = 0; |
| + |
| + virtual void DidStopLoading() = 0; |
| + |
| + virtual void WindowFrameChanged() = 0; |
| +}; |
| + |
| +#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_H_ |