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

Side by Side Diff: chrome/views/decision.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_DECISION_H__ 5 #ifndef CHROME_VIEWS_DECISION_H__
6 #define CHROME_VIEWS_DECISION_H__ 6 #define CHROME_VIEWS_DECISION_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/views/controller.h" 10 #include "chrome/views/controller.h"
(...skipping 24 matching lines...) Expand all
35 void AppendOption(int command_id, 35 void AppendOption(int command_id,
36 const std::wstring& description, 36 const std::wstring& description,
37 const std::wstring& action); 37 const std::wstring& action);
38 38
39 // Need to override this to call layout. 39 // Need to override this to call layout.
40 virtual void DidChangeBounds(const CRect& old_bounds, 40 virtual void DidChangeBounds(const CRect& old_bounds,
41 const CRect& new_bounds); 41 const CRect& new_bounds);
42 42
43 // Overridden from View for custom layout. 43 // Overridden from View for custom layout.
44 virtual void Layout(); 44 virtual void Layout();
45 virtual void GetPreferredSize(CSize *out); 45 virtual gfx::Size GetPreferredSize();
46 46
47 protected: 47 protected:
48 // Override to call Layout(). 48 // Override to call Layout().
49 virtual void ViewHierarchyChanged(bool is_add, View *parent, View *child); 49 virtual void ViewHierarchyChanged(bool is_add, View *parent, View *child);
50 50
51 private: 51 private:
52 // Our controller. 52 // Our controller.
53 Controller* controller_; 53 Controller* controller_;
54 54
55 // The views. 55 // The views.
56 Label* title_label_; 56 Label* title_label_;
57 Label* details_label_; 57 Label* details_label_;
58 58
59 // The option views that have been added. 59 // The option views that have been added.
60 std::vector<Option*> options_; 60 std::vector<Option*> options_;
61 }; 61 };
62 62
63 } // namespace ChromeViews 63 } // namespace ChromeViews
64 64
65 #endif // CHROME_VIEWS_DECISION_H__ 65 #endif // CHROME_VIEWS_DECISION_H__
66 66
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698