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

Side by Side Diff: chrome/views/separator.h

Issue 7344: Convert GetPreferredSize from:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_VIEWS_SEPARATOR_H__ 5 #ifndef CHROME_VIEWS_SEPARATOR_H__
6 #define CHROME_VIEWS_SEPARATOR_H__ 6 #define CHROME_VIEWS_SEPARATOR_H__
7 7
8 #include "chrome/views/native_control.h" 8 #include "chrome/views/native_control.h"
9 9
10 namespace ChromeViews { 10 namespace ChromeViews {
11 11
12 // The Separator class is a view that shows a line used to visually separate 12 // The Separator class is a view that shows a line used to visually separate
13 // other views. The current implementation is only horizontal. 13 // other views. The current implementation is only horizontal.
14 14
15 class Separator : public NativeControl { 15 class Separator : public NativeControl {
16 public: 16 public:
17 Separator(); 17 Separator();
18 virtual ~Separator(); 18 virtual ~Separator();
19 19
20 // NativeControl overrides: 20 // NativeControl overrides:
21 virtual HWND CreateNativeControl(HWND parent_container); 21 virtual HWND CreateNativeControl(HWND parent_container);
22 virtual LRESULT OnNotify(int w_param, LPNMHDR l_param); 22 virtual LRESULT OnNotify(int w_param, LPNMHDR l_param);
23 23
24 // View overrides: 24 // View overrides:
25 virtual void GetPreferredSize(CSize* out); 25 virtual gfx::Size GetPreferredSize();
26 26
27 private: 27 private:
28 28
29 DISALLOW_EVIL_CONSTRUCTORS(Separator); 29 DISALLOW_EVIL_CONSTRUCTORS(Separator);
30 }; 30 };
31 31
32 } 32 }
33 #endif // #define CHROME_VIEWS_SEPARATOR_H__ 33 #endif // #define CHROME_VIEWS_SEPARATOR_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698