From 17dee5e7005a82e08d11be50d56477939124a6b7 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Fri, 29 May 2009 06:02:19 +0000 Subject: 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 --- views/controls/native_control_win.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'views/controls/native_control_win.h') diff --git a/views/controls/native_control_win.h b/views/controls/native_control_win.h index 6f9923f..eee4ded8 100644 --- a/views/controls/native_control_win.h +++ b/views/controls/native_control_win.h @@ -5,12 +5,12 @@ #ifndef VIEWS_CONTROLS_NATIVE_CONTROL_WIN_H_ #define VIEWS_CONTROLS_NATIVE_CONTROL_WIN_H_ -#include "views/controls/hwnd_view.h" +#include "views/controls/native/native_view_host.h" namespace views { // A View that hosts a native Windows control. -class NativeControlWin : public HWNDView { +class NativeControlWin : public NativeViewHost { public: static const wchar_t* kNativeControlWinKey; @@ -60,7 +60,7 @@ class NativeControlWin : public HWNDView { // MUST be called by the subclass implementation of |CreateNativeControl| // immediately after creating the control HWND, otherwise it won't be attached - // to the HWNDView and will be effectively orphaned. + // to the NativeViewHost and will be effectively orphaned. virtual void NativeControlCreated(HWND native_control); // Returns additional extended style flags. When subclasses call -- cgit v1.1