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_VIEW_H_ | 5 #ifndef VIEWS_VIEW_H_ |
6 #define VIEWS_VIEW_H_ | 6 #define VIEWS_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 // Removes |view| from the hierarchy tree. If |update_focus_cycle| is true, | 1156 // Removes |view| from the hierarchy tree. If |update_focus_cycle| is true, |
1157 // the next and previous focusable views of views pointing to this view are | 1157 // the next and previous focusable views of views pointing to this view are |
1158 // updated. If |update_tool_tip| is true, the tooltip is updated. If | 1158 // updated. If |update_tool_tip| is true, the tooltip is updated. If |
1159 // |delete_removed_view| is true, the view is also deleted (if it is parent | 1159 // |delete_removed_view| is true, the view is also deleted (if it is parent |
1160 // owned). | 1160 // owned). |
1161 void DoRemoveChildView(View* view, | 1161 void DoRemoveChildView(View* view, |
1162 bool update_focus_cycle, | 1162 bool update_focus_cycle, |
1163 bool update_tool_tip, | 1163 bool update_tool_tip, |
1164 bool delete_removed_view); | 1164 bool delete_removed_view); |
1165 | 1165 |
1166 // Sets the parent View. This is called automatically by AddChild and is | |
1167 // thus private. | |
1168 void SetParent(View* parent); | |
1169 | |
1170 // Call ViewHierarchyChanged for all child views on all parents | 1166 // Call ViewHierarchyChanged for all child views on all parents |
1171 void PropagateRemoveNotifications(View* parent); | 1167 void PropagateRemoveNotifications(View* parent); |
1172 | 1168 |
1173 // Call ViewHierarchyChanged for all children | 1169 // Call ViewHierarchyChanged for all children |
1174 void PropagateAddNotifications(View* parent, View* child); | 1170 void PropagateAddNotifications(View* parent, View* child); |
1175 | 1171 |
1176 // Propagates NativeViewHierarchyChanged() notification through all the | 1172 // Propagates NativeViewHierarchyChanged() notification through all the |
1177 // children. | 1173 // children. |
1178 void PropagateNativeViewHierarchyChanged(bool attached, | 1174 void PropagateNativeViewHierarchyChanged(bool attached, |
1179 gfx::NativeView native_view, | 1175 gfx::NativeView native_view, |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1441 // The Windows-specific accessibility implementation for this View. | 1437 // The Windows-specific accessibility implementation for this View. |
1442 scoped_refptr<NativeViewAccessibilityWin> native_view_accessibility_win_; | 1438 scoped_refptr<NativeViewAccessibilityWin> native_view_accessibility_win_; |
1443 #endif | 1439 #endif |
1444 | 1440 |
1445 DISALLOW_COPY_AND_ASSIGN(View); | 1441 DISALLOW_COPY_AND_ASSIGN(View); |
1446 }; | 1442 }; |
1447 | 1443 |
1448 } // namespace views | 1444 } // namespace views |
1449 | 1445 |
1450 #endif // VIEWS_VIEW_H_ | 1446 #endif // VIEWS_VIEW_H_ |
OLD | NEW |