Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 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_EXTENSIONS_EXTENSION_VIEW_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_H_ | |
| 7 | |
| 8 #include "ui/gfx/native_widget_types.h" | |
| 9 | |
| 10 class Browser; | |
| 11 class ExtensionViewContainer; | |
| 12 | |
| 13 namespace content { | |
| 14 class RenderViewHost; | |
| 15 } | |
| 16 | |
| 17 namespace extensions { | |
| 18 class ExtensionHost; | |
| 19 } | |
| 20 | |
| 21 namespace gfx { | |
| 22 class Size; | |
| 23 } | |
| 24 | |
| 25 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.
| |
| 26 public: | |
| 27 static ExtensionView* Create(extensions::ExtensionHost* host, | |
| 28 Browser* browser); | |
| 29 | |
| 30 virtual ~ExtensionView() {} | |
| 31 | |
| 32 virtual Browser* GetBrowser() = 0; | |
| 33 | |
| 34 virtual const Browser* GetBrowser() const = 0; | |
| 35 | |
| 36 virtual gfx::NativeView GetNativeView() = 0; | |
| 37 | |
| 38 virtual content::RenderViewHost* GetRenderViewHost() const = 0; | |
| 39 | |
| 40 virtual void SetContainer(ExtensionViewContainer* container) = 0; | |
| 41 | |
| 42 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) = 0; | |
| 43 | |
| 44 virtual void RenderViewCreated() = 0; | |
| 45 | |
| 46 virtual void DidStopLoading() = 0; | |
| 47 | |
| 48 virtual void WindowFrameChanged() = 0; | |
| 49 }; | |
| 50 | |
| 51 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_H_ | |
| OLD | NEW |