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

Unified Diff: views/controls/separator.h

Issue 119019: Reverting 17368. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 | « no previous file | views/controls/separator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/separator.h
===================================================================
--- views/controls/separator.h (revision 17374)
+++ views/controls/separator.h (working copy)
@@ -5,40 +5,30 @@
#ifndef VIEWS_CONTROLS_SEPARATOR_H_
#define VIEWS_CONTROLS_SEPARATOR_H_
-#include <string>
+#include "views/controls/native_control.h"
-#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 View {
+class Separator : public NativeControl {
public:
- // The separator's class name.
- static const char kViewClassName[];
-
Separator();
virtual ~Separator();
- // Overridden from View:
- virtual void Layout();
+ // NativeControl overrides:
+ virtual HWND CreateNativeControl(HWND parent_container);
+ virtual LRESULT OnNotify(int w_param, LPNMHDR l_param);
+
+ // View overrides:
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_COPY_AND_ASSIGN(Separator);
+ DISALLOW_EVIL_CONSTRUCTORS(Separator);
};
} // namespace views
-#endif // VIEWS_CONTROLS_SEPARATOR_H_
+#endif // #define VIEWS_CONTROLS_SEPARATOR_H_
« no previous file with comments | « no previous file | views/controls/separator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698