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_WINDOW_CLIENT_VIEW_H_ | 5 #ifndef VIEWS_WINDOW_CLIENT_VIEW_H_ |
6 #define VIEWS_WINDOW_CLIENT_VIEW_H_ | 6 #define VIEWS_WINDOW_CLIENT_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "views/view.h" | 9 #include "views/view.h" |
10 | 10 |
11 namespace views { | 11 namespace views { |
12 | 12 |
13 class DialogClientView; | 13 class DialogClientView; |
14 class Widget; | 14 class Widget; |
15 | 15 |
16 /////////////////////////////////////////////////////////////////////////////// | 16 /////////////////////////////////////////////////////////////////////////////// |
17 // ClientView | 17 // ClientView |
18 // | 18 // |
19 // A ClientView is a View subclass that is used to occupy the "client area" | 19 // A ClientView is a View subclass that is used to occupy the "client area" |
20 // of a widget. It provides basic information to the widget that contains it | 20 // of a widget. It provides basic information to the widget that contains it |
21 // such as non-client hit testing information, sizing etc. Sub-classes of | 21 // such as non-client hit testing information, sizing etc. Sub-classes of |
22 // ClientView are used to create more elaborate contents, e.g. | 22 // ClientView are used to create more elaborate contents, e.g. |
23 // "DialogClientView". | 23 // "DialogClientView". |
24 class VIEWS_API ClientView : public View { | 24 class VIEWS_EXPORT ClientView : public View { |
25 public: | 25 public: |
26 // Internal class name | 26 // Internal class name |
27 static const char kViewClassName[]; | 27 static const char kViewClassName[]; |
28 | 28 |
29 // Constructs a ClientView object for the specified widget with the specified | 29 // Constructs a ClientView object for the specified widget with the specified |
30 // contents. Since this object is created during the process of creating | 30 // contents. Since this object is created during the process of creating |
31 // |widget|, |contents_view| must be valid if you want the initial size of | 31 // |widget|, |contents_view| must be valid if you want the initial size of |
32 // the widget to be based on |contents_view|'s preferred size. | 32 // the widget to be based on |contents_view|'s preferred size. |
33 ClientView(Widget* widget, View* contents_view); | 33 ClientView(Widget* widget, View* contents_view); |
34 virtual ~ClientView() {} | 34 virtual ~ClientView() {} |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // The Widget that hosts this ClientView. | 80 // The Widget that hosts this ClientView. |
81 Widget* widget_; | 81 Widget* widget_; |
82 | 82 |
83 // The View that this ClientView contains. | 83 // The View that this ClientView contains. |
84 View* contents_view_; | 84 View* contents_view_; |
85 }; | 85 }; |
86 | 86 |
87 } // namespace views | 87 } // namespace views |
88 | 88 |
89 #endif // #ifndef VIEWS_WINDOW_CLIENT_VIEW_H_ | 89 #endif // #ifndef VIEWS_WINDOW_CLIENT_VIEW_H_ |
OLD | NEW |