OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_VIEWS_LAYOUT_FILL_LAYOUT_H_ |
| 6 #define UI_VIEWS_LAYOUT_FILL_LAYOUT_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/logging.h" |
| 10 #include "ui/views/layout/layout_manager.h" |
| 11 |
| 12 namespace ui { |
| 13 |
| 14 //////////////////////////////////////////////////////////////////////////////// |
| 15 // FillLayout class |
| 16 // |
| 17 // A simple LayoutManager that compels a single view to fit its parent. |
| 18 // |
| 19 class FillLayout : public LayoutManager { |
| 20 public: |
| 21 FillLayout(); |
| 22 virtual ~FillLayout(); |
| 23 |
| 24 // Overridden from LayoutManager: |
| 25 virtual void Layout(View* host); |
| 26 virtual gfx::Size GetPreferredSize(View* host); |
| 27 |
| 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(FillLayout); |
| 30 }; |
| 31 |
| 32 } // namespace ui |
| 33 |
| 34 #endif // UI_VIEWS_LAYOUT_FILL_LAYOUT_H_ |
| 35 |
OLD | NEW |