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

Side by Side Diff: chrome/views/combo_box.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_COMBO_BOX_H__ 5 #ifndef CHROME_VIEWS_COMBO_BOX_H__
6 #define CHROME_VIEWS_COMBO_BOX_H__ 6 #define CHROME_VIEWS_COMBO_BOX_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 {
(...skipping 23 matching lines...) Expand all
34 }; 34 };
35 35
36 // |model is not owned by the combo box. 36 // |model is not owned by the combo box.
37 explicit ComboBox(Model* model); 37 explicit ComboBox(Model* model);
38 virtual ~ComboBox(); 38 virtual ~ComboBox();
39 39
40 // Register |listener| for item change events. 40 // Register |listener| for item change events.
41 void SetListener(Listener* listener); 41 void SetListener(Listener* listener);
42 42
43 // Overriden from View. 43 // Overriden from View.
44 virtual void GetPreferredSize(CSize* out); 44 virtual gfx::Size GetPreferredSize();
45 45
46 // Overriden from NativeControl 46 // Overriden from NativeControl
47 virtual HWND CreateNativeControl(HWND parent_container); 47 virtual HWND CreateNativeControl(HWND parent_container);
48 virtual LRESULT OnCommand(UINT code, int id, HWND source); 48 virtual LRESULT OnCommand(UINT code, int id, HWND source);
49 virtual LRESULT OnNotify(int w_param, LPNMHDR l_param); 49 virtual LRESULT OnNotify(int w_param, LPNMHDR l_param);
50 50
51 // Inform the combo box that its model changed. 51 // Inform the combo box that its model changed.
52 void ModelChanged(); 52 void ModelChanged();
53 53
54 // Set / Get the selected item. 54 // Set / Get the selected item.
(...skipping 15 matching lines...) Expand all
70 70
71 // The min width, in pixels, for the text content. 71 // The min width, in pixels, for the text content.
72 int content_width_; 72 int content_width_;
73 73
74 DISALLOW_EVIL_CONSTRUCTORS(ComboBox); 74 DISALLOW_EVIL_CONSTRUCTORS(ComboBox);
75 }; 75 };
76 } 76 }
77 77
78 #endif // CHROME_VIEWS_COMBO_BOX_H__ 78 #endif // CHROME_VIEWS_COMBO_BOX_H__
79 79
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698