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 /views/controls/scrollbar | |
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 'views/controls/scrollbar')
-rw-r--r-- | views/controls/scrollbar/native_scroll_bar.cc | 4 | ||||
-rw-r--r-- | views/controls/scrollbar/native_scroll_bar.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/views/controls/scrollbar/native_scroll_bar.cc b/views/controls/scrollbar/native_scroll_bar.cc index 52ddd91..15cfa8f 100644 --- a/views/controls/scrollbar/native_scroll_bar.cc +++ b/views/controls/scrollbar/native_scroll_bar.cc @@ -13,7 +13,7 @@ #include <string> #include "base/message_loop.h" -#include "views/controls/hwnd_view.h" +#include "views/controls/native/native_view_host.h" #include "views/widget/widget.h" namespace views { @@ -231,7 +231,7 @@ void NativeScrollBar::ViewHierarchyChanged(bool is_add, View *parent, View *child) { Widget* widget; if (is_add && (widget = GetWidget()) && !sb_view_) { - sb_view_ = new HWNDView(); + sb_view_ = new NativeViewHost; AddChildView(sb_view_); sb_container_ = new ScrollBarContainer(this); sb_view_->Attach(*sb_container_); diff --git a/views/controls/scrollbar/native_scroll_bar.h b/views/controls/scrollbar/native_scroll_bar.h index 2747bce..85a0453 100644 --- a/views/controls/scrollbar/native_scroll_bar.h +++ b/views/controls/scrollbar/native_scroll_bar.h @@ -11,7 +11,7 @@ namespace views { -class HWNDView; +class NativeViewHost; class ScrollBarContainer; ///////////////////////////////////////////////////////////////////////////// @@ -53,7 +53,7 @@ class NativeScrollBar : public ScrollBar { #if defined(OS_WIN) // The sb_view_ takes care of keeping sb_container in sync with the // view hierarchy - HWNDView* sb_view_; + NativeViewHost* sb_view_; #endif // defined(OS_WIN) // sb_container_ is a custom hwnd that we use to wrap the real |