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

Side by Side Diff: chrome/views/hwnd_view_container.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_HWND_VIEW_CONTAINER_H_ 5 #ifndef CHROME_VIEWS_HWND_VIEW_CONTAINER_H_
6 #define CHROME_VIEWS_HWND_VIEW_CONTAINER_H_ 6 #define CHROME_VIEWS_HWND_VIEW_CONTAINER_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcrack.h> 9 #include <atlcrack.h>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // sized to match the bounds of its parent. 53 // sized to match the bounds of its parent.
54 // 54 //
55 /////////////////////////////////////////////////////////////////////////////// 55 ///////////////////////////////////////////////////////////////////////////////
56 class FillLayout : public LayoutManager { 56 class FillLayout : public LayoutManager {
57 public: 57 public:
58 FillLayout(); 58 FillLayout();
59 virtual ~FillLayout(); 59 virtual ~FillLayout();
60 60
61 // Overridden from LayoutManager: 61 // Overridden from LayoutManager:
62 virtual void Layout(View* host); 62 virtual void Layout(View* host);
63 virtual void GetPreferredSize(View* host, CSize* out); 63 virtual gfx::Size GetPreferredSize(View* host);
64 64
65 private: 65 private:
66 DISALLOW_EVIL_CONSTRUCTORS(FillLayout); 66 DISALLOW_EVIL_CONSTRUCTORS(FillLayout);
67 }; 67 };
68 68
69 /////////////////////////////////////////////////////////////////////////////// 69 ///////////////////////////////////////////////////////////////////////////////
70 // 70 //
71 // HWNDViewContainer 71 // HWNDViewContainer
72 // A container for a ChromeViews hierarchy used to represent anything that can 72 // A container for a ChromeViews hierarchy used to represent anything that can
73 // be contained within an HWND, e.g. a control, a window, etc. Specializations 73 // be contained within an HWND, e.g. a control, a window, etc. Specializations
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 CComPtr<IAccessible> accessibility_root_; 577 CComPtr<IAccessible> accessibility_root_;
578 578
579 // Our hwnd. 579 // Our hwnd.
580 HWND hwnd_; 580 HWND hwnd_;
581 }; 581 };
582 582
583 } // namespace ChromeViews 583 } // namespace ChromeViews
584 584
585 #endif // #ifndef CHROME_VIEWS_HWND_VIEW_CONTAINER_H_ 585 #endif // #ifndef CHROME_VIEWS_HWND_VIEW_CONTAINER_H_
586 586
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698