summaryrefslogtreecommitdiffstats
path: root/views/controls/separator.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/separator.h')
-rw-r--r--views/controls/separator.h28
1 files changed, 19 insertions, 9 deletions
diff --git a/views/controls/separator.h b/views/controls/separator.h
index 866beda..0988d62 100644
--- a/views/controls/separator.h
+++ b/views/controls/separator.h
@@ -5,30 +5,40 @@
#ifndef VIEWS_CONTROLS_SEPARATOR_H_
#define VIEWS_CONTROLS_SEPARATOR_H_
-#include "views/controls/native_control.h"
+#include <string>
+
+#include "views/view.h"
namespace views {
// The Separator class is a view that shows a line used to visually separate
// other views. The current implementation is only horizontal.
-class Separator : public NativeControl {
+class Separator : public View {
public:
+ // The separator's class name.
+ static const char kViewClassName[];
+
Separator();
virtual ~Separator();
- // NativeControl overrides:
- virtual HWND CreateNativeControl(HWND parent_container);
- virtual LRESULT OnNotify(int w_param, LPNMHDR l_param);
-
- // View overrides:
+ // Overridden from View:
+ virtual void Layout();
virtual gfx::Size GetPreferredSize();
+ protected:
+ virtual void ViewHierarchyChanged(bool is_add, View* parent,
+ View* child);
+ virtual std::string GetClassName() const;
private:
+ void CreateNativeWrapper();
+
+ // The native view.
+ View* native_wrapper_;
- DISALLOW_EVIL_CONSTRUCTORS(Separator);
+ DISALLOW_COPY_AND_ASSIGN(Separator);
};
} // namespace views
-#endif // #define VIEWS_CONTROLS_SEPARATOR_H_
+#endif // VIEWS_CONTROLS_SEPARATOR_H_