Home
last modified time | relevance | path

Searched refs:HasAncestor (Results 1 – 25 of 26) sorted by relevance

12

/external/chromium_org/ui/base/models/
Dtree_node_model_unittest.cc197 TEST_F(TreeNodeModelTest, HasAncestor) { in TEST_F() argument
208 EXPECT_TRUE(root.HasAncestor(&root)); in TEST_F()
209 EXPECT_FALSE(root.HasAncestor(child1)); in TEST_F()
210 EXPECT_FALSE(root.HasAncestor(child2)); in TEST_F()
211 EXPECT_FALSE(root.HasAncestor(foo1)); in TEST_F()
213 EXPECT_TRUE(child1->HasAncestor(child1)); in TEST_F()
214 EXPECT_TRUE(child1->HasAncestor(&root)); in TEST_F()
215 EXPECT_FALSE(child1->HasAncestor(child2)); in TEST_F()
216 EXPECT_FALSE(child1->HasAncestor(foo1)); in TEST_F()
218 EXPECT_TRUE(child2->HasAncestor(child2)); in TEST_F()
[all …]
Dtree_node_model.h161 bool HasAncestor(const NodeType* ancestor) const { in HasAncestor() function
166 return parent_ ? parent_->HasAncestor(ancestor) : false; in HasAncestor()
/external/chromium_org/ui/wm/core/
Dwindow_modality_controller.cc30 bool HasAncestor(aura::Window* window, aura::Window* ancestor) { in HasAncestor() function
35 return HasAncestor(window->parent(), ancestor); in HasAncestor()
59 (HasAncestor(original, GetModalParent(transient))))); in IsModalTransientChild()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DITree.cs70 bool HasAncestor( int ttype ); in HasAncestor() method
DBaseTree.cs455 public virtual bool HasAncestor( int ttype ) in HasAncestor() method in Antlr.Runtime.Tree.BaseTree
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DITree.cs66 bool HasAncestor(int ttype); in HasAncestor() method
DBaseTree.cs379 public virtual bool HasAncestor(int ttype) { in HasAncestor() method in Antlr.Runtime.Tree.BaseTree
/external/chromium_org/cc/layers/
Dlayer_unittest.cc452 TEST_F(LayerTest, HasAncestor) { in TEST_F() argument
454 EXPECT_FALSE(parent->HasAncestor(parent)); in TEST_F()
459 EXPECT_FALSE(child->HasAncestor(child)); in TEST_F()
460 EXPECT_TRUE(child->HasAncestor(parent)); in TEST_F()
461 EXPECT_FALSE(parent->HasAncestor(child)); in TEST_F()
466 EXPECT_FALSE(child_child->HasAncestor(child_child)); in TEST_F()
467 EXPECT_TRUE(child_child->HasAncestor(parent)); in TEST_F()
468 EXPECT_TRUE(child_child->HasAncestor(child)); in TEST_F()
469 EXPECT_FALSE(parent->HasAncestor(child)); in TEST_F()
470 EXPECT_FALSE(parent->HasAncestor(child_child)); in TEST_F()
Dlayer.cc215 DCHECK(!layer || !layer->HasAncestor(this)); in SetParent()
353 bool Layer::HasAncestor(const Layer* ancestor) const { in HasAncestor() function in cc::Layer
Dlayer.h94 bool HasAncestor(const Layer* ancestor) const;
Dlayer_impl.h117 bool HasAncestor(const LayerImpl* ancestor) const;
Dlayer_impl.cc137 bool LayerImpl::HasAncestor(const LayerImpl* ancestor) const { in HasAncestor() function in cc::LayerImpl
/external/chromium_org/components/bookmarks/test/
Dtest_bookmark_client.cc48 if (node->HasAncestor(extra_nodes_[i])) in IsAnExtraNode()
/external/chromium_org/chrome/browser/ui/views/bookmarks/
Dbookmark_drag_drop_views.cc151 if (drop_parent->HasAncestor(node)) in IsValidBookmarkDropLocation()
Dbookmark_editor_view.cc388 details_.existing_node->HasAncestor(node)) || in BookmarkNodeRemoved()
389 (parent_ && parent_->HasAncestor(node))) { in BookmarkNodeRemoved()
Dbookmark_menu_delegate.cc398 if (i->first->HasAncestor(*j)) { in WillRemoveBookmarks()
/external/chromium_org/chrome/browser/bookmarks/
Dchrome_bookmark_client.cc82 return node && node->HasAncestor(managed_node_); in IsDescendantOfManagedNode()
/external/chromium_org/chrome/browser/ui/bookmarks/
Drecently_used_folders_combo_model.cc167 if (i->type == Item::TYPE_NODE && i->node->HasAncestor(node)) { in OnWillRemoveBookmarks()
/external/clang/unittests/ASTMatchers/
DASTMatchersTest.cpp3517 TEST(HasAncestor, MatchesDeclarationsThatGetVisitedLater) { in TEST() argument
3530 TEST(HasAncestor, DrillsThroughDifferentHierarchies) { in TEST() argument
3536 TEST(HasAncestor, BindsRecursiveCombinations) { in TEST() argument
3543 TEST(HasAncestor, BindsCombinationsWithHasDescendant) { in TEST() argument
3555 TEST(HasAncestor, MatchesClosestAncestor) { in TEST() argument
3569 TEST(HasAncestor, MatchesInTemplateInstantiations) { in TEST() argument
3577 TEST(HasAncestor, MatchesInImplicitCode) { in TEST() argument
3597 TEST(HasAncestor, MatchesAllAncestors) { in TEST() argument
/external/chromium_org/components/policy/core/browser/
Dmanaged_bookmarks_tracker_unittest.cc87 return node && node->HasAncestor(managed_node_); in IsManaged()
/external/chromium_org/components/bookmarks/browser/
Dbookmark_model.cc245 if (new_parent->HasAncestor(node)) { in Move()
284 if (new_parent->HasAncestor(node)) { in Copy()
/external/chromium_org/ui/views/controls/tree/
Dtree_view.cc267 if (selected_node_ && selected_node_->HasAncestor(node)) in Collapse()
449 if (selected_node_ && selected_node_->HasAncestor(child_removing)) in TreeNodesRemoved()
/external/chromium_org/chrome/browser/ui/cocoa/bookmarks/
Dbookmark_editor_base_controller.mm557 if (parentNode_ == node || parentNode_->HasAncestor(node)) {
Dbookmark_bar_folder_controller.mm1272 if (!destParent->HasAncestor(sourceNode)) {
1426 if (destNode->HasAncestor(sourceNode))
/external/chromium_org/cc/trees/
Dlayer_tree_host_common.cc129 DCHECK(descendant_layer.HasAncestor(&ancestor_layer)); in ComputeChangeOfBasisTranslation()

12