OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 // Some classes may own an object which contains the children to displayed in | 1106 // Some classes may own an object which contains the children to displayed in |
1107 // the views hierarchy. The above function gives the class the flexibility to | 1107 // the views hierarchy. The above function gives the class the flexibility to |
1108 // decide which object should be used to obtain the children, but this | 1108 // decide which object should be used to obtain the children, but this |
1109 // function makes the decision explicit. | 1109 // function makes the decision explicit. |
1110 std::string DoPrintViewGraph(bool first, View* view_with_children); | 1110 std::string DoPrintViewGraph(bool first, View* view_with_children); |
1111 #endif | 1111 #endif |
1112 | 1112 |
1113 private: | 1113 private: |
1114 friend class internal::RootView; | 1114 friend class internal::RootView; |
1115 friend class FocusManager; | 1115 friend class FocusManager; |
1116 friend class ViewStorage; | |
1117 friend class Widget; | 1116 friend class Widget; |
1118 friend class PaintLock; | 1117 friend class PaintLock; |
1119 | 1118 |
1120 // Used to track a drag. RootView passes this into | 1119 // Used to track a drag. RootView passes this into |
1121 // ProcessMousePressed/Dragged. | 1120 // ProcessMousePressed/Dragged. |
1122 struct DragInfo { | 1121 struct DragInfo { |
1123 // Sets possible_drag to false and start_x/y to 0. This is invoked by | 1122 // Sets possible_drag to false and start_x/y to 0. This is invoked by |
1124 // RootView prior to invoke ProcessMousePressed. | 1123 // RootView prior to invoke ProcessMousePressed. |
1125 void Reset(); | 1124 void Reset(); |
1126 | 1125 |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1478 base::win::ScopedComPtr<NativeViewAccessibilityWin> | 1477 base::win::ScopedComPtr<NativeViewAccessibilityWin> |
1479 native_view_accessibility_win_; | 1478 native_view_accessibility_win_; |
1480 #endif | 1479 #endif |
1481 | 1480 |
1482 DISALLOW_COPY_AND_ASSIGN(View); | 1481 DISALLOW_COPY_AND_ASSIGN(View); |
1483 }; | 1482 }; |
1484 | 1483 |
1485 } // namespace views | 1484 } // namespace views |
1486 | 1485 |
1487 #endif // UI_VIEWS_VIEW_H_ | 1486 #endif // UI_VIEWS_VIEW_H_ |
OLD | NEW |