Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: chrome/browser/extensions/extension_view.h

Issue 10913243: extensions: Add ExtensionView interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last mac fix Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698