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 UI_VIEWS_VIEW_H_ | 5 #ifndef UI_VIEWS_VIEW_H_ |
6 #define UI_VIEWS_VIEW_H_ | 6 #define UI_VIEWS_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <map> | 10 #include <map> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 class ContextMenuController; | 61 class ContextMenuController; |
62 class DragController; | 62 class DragController; |
63 class FocusManager; | 63 class FocusManager; |
64 class FocusTraversable; | 64 class FocusTraversable; |
65 class InputMethod; | 65 class InputMethod; |
66 class LayoutManager; | 66 class LayoutManager; |
67 class ScrollView; | 67 class ScrollView; |
68 class Widget; | 68 class Widget; |
69 | 69 |
70 namespace internal { | 70 namespace internal { |
71 class NativeWidgetView; | |
72 class RootView; | 71 class RootView; |
73 } | 72 } |
74 | 73 |
75 ///////////////////////////////////////////////////////////////////////////// | 74 ///////////////////////////////////////////////////////////////////////////// |
76 // | 75 // |
77 // View class | 76 // View class |
78 // | 77 // |
79 // A View is a rectangle within the views View hierarchy. It is the base | 78 // A View is a rectangle within the views View hierarchy. It is the base |
80 // class for all Views. | 79 // class for all Views. |
81 // | 80 // |
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 virtual std::string PrintViewGraph(bool first); | 1073 virtual std::string PrintViewGraph(bool first); |
1075 | 1074 |
1076 // Some classes may own an object which contains the children to displayed in | 1075 // Some classes may own an object which contains the children to displayed in |
1077 // the views hierarchy. The above function gives the class the flexibility to | 1076 // the views hierarchy. The above function gives the class the flexibility to |
1078 // decide which object should be used to obtain the children, but this | 1077 // decide which object should be used to obtain the children, but this |
1079 // function makes the decision explicit. | 1078 // function makes the decision explicit. |
1080 std::string DoPrintViewGraph(bool first, View* view_with_children); | 1079 std::string DoPrintViewGraph(bool first, View* view_with_children); |
1081 #endif | 1080 #endif |
1082 | 1081 |
1083 private: | 1082 private: |
1084 friend class internal::NativeWidgetView; | |
1085 friend class internal::RootView; | 1083 friend class internal::RootView; |
1086 friend class FocusManager; | 1084 friend class FocusManager; |
1087 friend class ViewStorage; | 1085 friend class ViewStorage; |
1088 friend class Widget; | 1086 friend class Widget; |
1089 friend class PaintLock; | 1087 friend class PaintLock; |
1090 | 1088 |
1091 // Used to track a drag. RootView passes this into | 1089 // Used to track a drag. RootView passes this into |
1092 // ProcessMousePressed/Dragged. | 1090 // ProcessMousePressed/Dragged. |
1093 struct DragInfo { | 1091 struct DragInfo { |
1094 // Sets possible_drag to false and start_x/y to 0. This is invoked by | 1092 // Sets possible_drag to false and start_x/y to 0. This is invoked by |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1427 base::win::ScopedComPtr<NativeViewAccessibilityWin> | 1425 base::win::ScopedComPtr<NativeViewAccessibilityWin> |
1428 native_view_accessibility_win_; | 1426 native_view_accessibility_win_; |
1429 #endif | 1427 #endif |
1430 | 1428 |
1431 DISALLOW_COPY_AND_ASSIGN(View); | 1429 DISALLOW_COPY_AND_ASSIGN(View); |
1432 }; | 1430 }; |
1433 | 1431 |
1434 } // namespace views | 1432 } // namespace views |
1435 | 1433 |
1436 #endif // UI_VIEWS_VIEW_H_ | 1434 #endif // UI_VIEWS_VIEW_H_ |
OLD | NEW |