HasAncestor 227 cc/layers/layer.cc DCHECK(!layer || !layer->HasAncestor(this)); HasAncestor 93 cc/layers/layer.h bool HasAncestor(const Layer* ancestor) const; HasAncestor 106 cc/layers/layer_impl.h bool HasAncestor(const LayerImpl* ancestor) const; HasAncestor 394 cc/layers/layer_unittest.cc TEST_F(LayerTest, HasAncestor) { HasAncestor 396 cc/layers/layer_unittest.cc EXPECT_FALSE(parent->HasAncestor(parent)); HasAncestor 401 cc/layers/layer_unittest.cc EXPECT_FALSE(child->HasAncestor(child)); HasAncestor 402 cc/layers/layer_unittest.cc EXPECT_TRUE(child->HasAncestor(parent)); HasAncestor 403 cc/layers/layer_unittest.cc EXPECT_FALSE(parent->HasAncestor(child)); HasAncestor 408 cc/layers/layer_unittest.cc EXPECT_FALSE(child_child->HasAncestor(child_child)); HasAncestor 409 cc/layers/layer_unittest.cc EXPECT_TRUE(child_child->HasAncestor(parent)); HasAncestor 410 cc/layers/layer_unittest.cc EXPECT_TRUE(child_child->HasAncestor(child)); HasAncestor 411 cc/layers/layer_unittest.cc EXPECT_FALSE(parent->HasAncestor(child)); HasAncestor 412 cc/layers/layer_unittest.cc EXPECT_FALSE(parent->HasAncestor(child_child)); HasAncestor 130 cc/trees/layer_tree_host_common.cc DCHECK(descendant_layer.HasAncestor(&ancestor_layer)); HasAncestor 346 chrome/browser/bookmarks/bookmark_model.cc if (new_parent->HasAncestor(node)) { HasAncestor 385 chrome/browser/bookmarks/bookmark_model.cc if (new_parent->HasAncestor(node)) { HasAncestor 166 chrome/browser/ui/bookmarks/recently_used_folders_combo_model.cc if (i->type == Item::TYPE_NODE && i->node->HasAncestor(node)) { HasAncestor 489 chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc details_.existing_node->HasAncestor(node)) || HasAncestor 490 chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc (parent_ && parent_->HasAncestor(node))) { HasAncestor 123 chrome/browser/ui/views/bookmarks/bookmark_drag_drop_views.cc if (drop_parent->HasAncestor(node)) HasAncestor 380 chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc details_.existing_node->HasAncestor(node)) || HasAncestor 381 chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc (parent_ && parent_->HasAncestor(node))) { HasAncestor 380 chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc if (i->first->HasAncestor(*j)) { HasAncestor 161 ui/base/models/tree_node_model.h bool HasAncestor(const NodeType* ancestor) const { HasAncestor 166 ui/base/models/tree_node_model.h return parent_ ? parent_->HasAncestor(ancestor) : false; HasAncestor 197 ui/base/models/tree_node_model_unittest.cc TEST_F(TreeNodeModelTest, HasAncestor) { HasAncestor 208 ui/base/models/tree_node_model_unittest.cc EXPECT_TRUE(root.HasAncestor(&root)); HasAncestor 209 ui/base/models/tree_node_model_unittest.cc EXPECT_FALSE(root.HasAncestor(child1)); HasAncestor 210 ui/base/models/tree_node_model_unittest.cc EXPECT_FALSE(root.HasAncestor(child2)); HasAncestor 211 ui/base/models/tree_node_model_unittest.cc EXPECT_FALSE(root.HasAncestor(foo1)); HasAncestor 213 ui/base/models/tree_node_model_unittest.cc EXPECT_TRUE(child1->HasAncestor(child1)); HasAncestor 214 ui/base/models/tree_node_model_unittest.cc EXPECT_TRUE(child1->HasAncestor(&root)); HasAncestor 215 ui/base/models/tree_node_model_unittest.cc EXPECT_FALSE(child1->HasAncestor(child2)); HasAncestor 216 ui/base/models/tree_node_model_unittest.cc EXPECT_FALSE(child1->HasAncestor(foo1)); HasAncestor 218 ui/base/models/tree_node_model_unittest.cc EXPECT_TRUE(child2->HasAncestor(child2)); HasAncestor 219 ui/base/models/tree_node_model_unittest.cc EXPECT_TRUE(child2->HasAncestor(&root)); HasAncestor 220 ui/base/models/tree_node_model_unittest.cc EXPECT_FALSE(child2->HasAncestor(child1)); HasAncestor 221 ui/base/models/tree_node_model_unittest.cc EXPECT_FALSE(child2->HasAncestor(foo1)); HasAncestor 223 ui/base/models/tree_node_model_unittest.cc EXPECT_TRUE(foo1->HasAncestor(foo1)); HasAncestor 224 ui/base/models/tree_node_model_unittest.cc EXPECT_TRUE(foo1->HasAncestor(child1)); HasAncestor 225 ui/base/models/tree_node_model_unittest.cc EXPECT_TRUE(foo1->HasAncestor(&root)); HasAncestor 226 ui/base/models/tree_node_model_unittest.cc EXPECT_FALSE(foo1->HasAncestor(child2)); HasAncestor 268 ui/views/controls/tree/tree_view.cc if (selected_node_ && selected_node_->HasAncestor(node)) HasAncestor 450 ui/views/controls/tree/tree_view.cc if (selected_node_ && selected_node_->HasAncestor(child_removing)) HasAncestor 35 ui/wm/core/window_modality_controller.cc return HasAncestor(window->parent(), ancestor); HasAncestor 59 ui/wm/core/window_modality_controller.cc (HasAncestor(original, GetModalParent(transient)))));