OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 VIEWS_LAYOUT_MANAGER_H_ | 5 #ifndef VIEWS_LAYOUT_MANAGER_H_ |
6 #define VIEWS_LAYOUT_MANAGER_H_ | 6 #define VIEWS_LAYOUT_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "views/views_api.h" | 9 #include "views/views_export.h" |
10 | 10 |
11 namespace gfx { | 11 namespace gfx { |
12 class Size; | 12 class Size; |
13 } | 13 } |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 | 16 |
17 class View; | 17 class View; |
18 | 18 |
19 ///////////////////////////////////////////////////////////////////////////// | 19 ///////////////////////////////////////////////////////////////////////////// |
20 // | 20 // |
21 // LayoutManager interface | 21 // LayoutManager interface |
22 // | 22 // |
23 // The LayoutManager interface provides methods to handle the sizing of | 23 // The LayoutManager interface provides methods to handle the sizing of |
24 // the children of a View according to implementation-specific heuristics. | 24 // the children of a View according to implementation-specific heuristics. |
25 // | 25 // |
26 ///////////////////////////////////////////////////////////////////////////// | 26 ///////////////////////////////////////////////////////////////////////////// |
27 class VIEWS_API LayoutManager { | 27 class VIEWS_EXPORT LayoutManager { |
28 public: | 28 public: |
29 virtual ~LayoutManager(); | 29 virtual ~LayoutManager(); |
30 | 30 |
31 // Notification that this LayoutManager has been installed on a particular | 31 // Notification that this LayoutManager has been installed on a particular |
32 // host. | 32 // host. |
33 virtual void Installed(View* host); | 33 virtual void Installed(View* host); |
34 | 34 |
35 // Notification that this LayoutManager has been uninstalled on a particular | 35 // Notification that this LayoutManager has been uninstalled on a particular |
36 // host. | 36 // host. |
37 virtual void Uninstalled(View* host); | 37 virtual void Uninstalled(View* host); |
(...skipping 14 matching lines...) Expand all Loading... |
52 // Notification that a view has been added. | 52 // Notification that a view has been added. |
53 virtual void ViewAdded(View* host, View* view); | 53 virtual void ViewAdded(View* host, View* view); |
54 | 54 |
55 // Notification that a view has been removed. | 55 // Notification that a view has been removed. |
56 virtual void ViewRemoved(View* host, View* view); | 56 virtual void ViewRemoved(View* host, View* view); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace views | 59 } // namespace views |
60 | 60 |
61 #endif // VIEWS_LAYOUT_MANAGER_H_ | 61 #endif // VIEWS_LAYOUT_MANAGER_H_ |
OLD | NEW |