diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-29 06:02:19 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-29 06:02:19 +0000 |
commit | 17dee5e7005a82e08d11be50d56477939124a6b7 (patch) | |
tree | 7133a5d7a086ce238057cb82e0e81d332dafba8f /chrome/common | |
parent | bf0136d62bfe02f57821ce026c04b6e8204eb482 (diff) | |
download | chromium_src-17dee5e7005a82e08d11be50d56477939124a6b7.zip chromium_src-17dee5e7005a82e08d11be50d56477939124a6b7.tar.gz chromium_src-17dee5e7005a82e08d11be50d56477939124a6b7.tar.bz2 |
Refactors HWNDView, NativeViewHostGtk and NativeViewHost so that they match the NativeControl pattern established for NativeButtons. NativeViewHost is a platform-neutral class that clients instantiate. Behind the scenes the platform instantiates the appropriate NativeViewHostWrapper implementation, either NativeViewHostGtk (as before) or NativeViewHostWin (replaces HWNDView).
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/114059
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17169 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/temp_scaffolding_stubs.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.h b/chrome/common/temp_scaffolding_stubs.h index 7af52bc..662e166 100644 --- a/chrome/common/temp_scaffolding_stubs.h +++ b/chrome/common/temp_scaffolding_stubs.h @@ -423,28 +423,4 @@ class OSExchangeData { class BaseDragSource { }; -//--------------------------------------------------------------------------- -// These stubs are for extensions - -namespace views { -class HWNDView { - public: - int width() { NOTIMPLEMENTED(); return 0; } - int height() { NOTIMPLEMENTED(); return 0; } - void InitHidden() { NOTIMPLEMENTED(); } - void SetPreferredSize(const gfx::Size& size) { NOTIMPLEMENTED(); } - virtual void SetBackground(const SkBitmap&) { NOTIMPLEMENTED(); } - virtual void SetVisible(bool flag) { NOTIMPLEMENTED(); } - void SizeToPreferredSize() { NOTIMPLEMENTED(); } - bool IsVisible() const { NOTIMPLEMENTED(); return false; } - void Layout() { NOTIMPLEMENTED(); } - void SchedulePaint() { NOTIMPLEMENTED(); } - HWNDView* GetParent() const { NOTIMPLEMENTED(); return NULL; } - virtual gfx::Size GetPreferredSize() { NOTIMPLEMENTED(); return gfx::Size(); } - gfx::NativeWindow GetHWND() { NOTIMPLEMENTED(); return 0; } - void Detach() { NOTIMPLEMENTED(); } - gfx::Widget* GetWidget() { NOTIMPLEMENTED(); return NULL; } -}; -} // namespace views - #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |