| 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 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1079 virtual std::string PrintViewGraph(bool first); | 1078 virtual std::string PrintViewGraph(bool first); |
| 1080 | 1079 |
| 1081 // Some classes may own an object which contains the children to displayed in | 1080 // Some classes may own an object which contains the children to displayed in |
| 1082 // the views hierarchy. The above function gives the class the flexibility to | 1081 // the views hierarchy. The above function gives the class the flexibility to |
| 1083 // decide which object should be used to obtain the children, but this | 1082 // decide which object should be used to obtain the children, but this |
| 1084 // function makes the decision explicit. | 1083 // function makes the decision explicit. |
| 1085 std::string DoPrintViewGraph(bool first, View* view_with_children); | 1084 std::string DoPrintViewGraph(bool first, View* view_with_children); |
| 1086 #endif | 1085 #endif |
| 1087 | 1086 |
| 1088 private: | 1087 private: |
| 1089 friend class internal::NativeWidgetView; | |
| 1090 friend class internal::RootView; | 1088 friend class internal::RootView; |
| 1091 friend class FocusManager; | 1089 friend class FocusManager; |
| 1092 friend class ViewStorage; | 1090 friend class ViewStorage; |
| 1093 friend class Widget; | 1091 friend class Widget; |
| 1094 friend class PaintLock; | 1092 friend class PaintLock; |
| 1095 | 1093 |
| 1096 // Used to track a drag. RootView passes this into | 1094 // Used to track a drag. RootView passes this into |
| 1097 // ProcessMousePressed/Dragged. | 1095 // ProcessMousePressed/Dragged. |
| 1098 struct DragInfo { | 1096 struct DragInfo { |
| 1099 // Sets possible_drag to false and start_x/y to 0. This is invoked by | 1097 // 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... |
| 1432 base::win::ScopedComPtr<NativeViewAccessibilityWin> | 1430 base::win::ScopedComPtr<NativeViewAccessibilityWin> |
| 1433 native_view_accessibility_win_; | 1431 native_view_accessibility_win_; |
| 1434 #endif | 1432 #endif |
| 1435 | 1433 |
| 1436 DISALLOW_COPY_AND_ASSIGN(View); | 1434 DISALLOW_COPY_AND_ASSIGN(View); |
| 1437 }; | 1435 }; |
| 1438 | 1436 |
| 1439 } // namespace views | 1437 } // namespace views |
| 1440 | 1438 |
| 1441 #endif // UI_VIEWS_VIEW_H_ | 1439 #endif // UI_VIEWS_VIEW_H_ |
| OLD | NEW |