Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: views/view.h

Issue 7076002: views: Get rid of View::SetParent() method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | views/view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698