| 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 |
| 12 namespace gfx { |
| 13 class Size; |
| 14 } |
| 15 |
| 16 namespace extensions { |
| 17 class ExtensionHost; |
| 18 } |
| 19 |
| 20 class ExtensionView { |
| 21 public: |
| 22 static ExtensionView* Create(extensions::ExtensionHost* host, |
| 23 Browser* browser); |
| 24 |
| 25 virtual ~ExtensionView() {} |
| 26 |
| 27 virtual Browser* GetBrowser() = 0; |
| 28 |
| 29 virtual const Browser* GetBrowser() const = 0; |
| 30 |
| 31 virtual gfx::NativeView GetNativeView() = 0; |
| 32 |
| 33 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) = 0; |
| 34 |
| 35 virtual void RenderViewCreated() = 0; |
| 36 |
| 37 virtual void DidStopLoading() = 0; |
| 38 }; |
| 39 |
| 40 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_H_ |
| OLD | NEW |