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

Unified Diff: chrome/common/temp_scaffolding_stubs.h

Issue 92043: Refactor ExtensionView to support a UI-less extension instance.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/test/data/extensions/good/extension2/2/background.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/temp_scaffolding_stubs.h
===================================================================
--- chrome/common/temp_scaffolding_stubs.h (revision 14851)
+++ chrome/common/temp_scaffolding_stubs.h (working copy)
@@ -39,6 +39,7 @@
namespace gfx {
class Rect;
+class Widget;
}
namespace IPC {
@@ -478,26 +479,38 @@
//---------------------------------------------------------------------------
// These stubs are for extensions
-class HWNDHtmlView {
+namespace views {
+class HWNDView {
public:
- HWNDHtmlView(const GURL& content_url, RenderViewHostDelegate* delegate,
- bool allow_dom_ui_bindings, SiteInstance* instance) {
- NOTIMPLEMENTED();
- }
- virtual ~HWNDHtmlView() {}
-
+ int width() { NOTIMPLEMENTED(); return 0; }
int height() { NOTIMPLEMENTED(); return 0; }
- RenderViewHost* render_view_host() { NOTIMPLEMENTED(); return NULL; }
void InitHidden() { NOTIMPLEMENTED(); }
void set_preferred_size(const gfx::Size& size) { NOTIMPLEMENTED(); }
virtual void SetBackground(const SkBitmap&) { NOTIMPLEMENTED(); }
virtual void SetVisible(bool flag) { NOTIMPLEMENTED(); }
void SizeToPreferredSize() { NOTIMPLEMENTED(); }
- HWNDHtmlView* GetParent() const { NOTIMPLEMENTED(); return NULL; }
bool IsVisible() const { NOTIMPLEMENTED(); return false; }
void Layout() { NOTIMPLEMENTED(); }
void SchedulePaint() { NOTIMPLEMENTED(); }
+ HWNDView* GetParent() const { NOTIMPLEMENTED(); return NULL; }
+
+ gfx::NativeWindow GetHWND() { NOTIMPLEMENTED(); return 0; }
+ void Detach() { NOTIMPLEMENTED(); }
+ gfx::Widget* GetWidget() { NOTIMPLEMENTED(); return NULL; }
+};
+} // namespace views
+
+class HWNDHtmlView : public views::HWNDView {
+ public:
+ HWNDHtmlView(const GURL& content_url, RenderViewHostDelegate* delegate,
+ bool allow_dom_ui_bindings, SiteInstance* instance) {
+ NOTIMPLEMENTED();
+ }
+ virtual ~HWNDHtmlView() {}
+
+ RenderViewHost* render_view_host() { NOTIMPLEMENTED(); return NULL; }
SiteInstance* site_instance() { NOTIMPLEMENTED(); return NULL; }
};
+
#endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/test/data/extensions/good/extension2/2/background.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698