/external/chromium_org/chrome/browser/ui/views/bookmarks/ |
D | bookmark_editor_view_unittest.cc | 133 const BookmarkNode* bb_node = model_->bookmark_bar_node(); in AddTestData() local 135 model_->AddURL(bb_node, 0, ASCIIToUTF16("a"), GURL(test_base + "a")); in AddTestData() 136 const BookmarkNode* f1 = model_->AddFolder(bb_node, 1, ASCIIToUTF16("F1")); in AddTestData() 140 model_->AddFolder(bb_node, 2, ASCIIToUTF16("F2")); in AddTestData() 168 BookmarkEditorView::EditorNode* bb_node = editor_root->GetChild(0); in TEST_F() local 170 ASSERT_EQ(2, bb_node->child_count()); in TEST_F() 171 ASSERT_EQ(ASCIIToUTF16("F1"), bb_node->GetChild(0)->GetTitle()); in TEST_F() 172 ASSERT_EQ(ASCIIToUTF16("F2"), bb_node->GetChild(1)->GetTitle()); in TEST_F() 175 ASSERT_EQ(1, bb_node->GetChild(0)->child_count()); in TEST_F() 176 ASSERT_EQ(ASCIIToUTF16("F11"), bb_node->GetChild(0)->GetChild(0)->GetTitle()); in TEST_F() [all …]
|
D | bookmark_context_menu_unittest.cc | 108 const BookmarkNode* bb_node = model_->bookmark_bar_node(); in AddTestData() local 110 model_->AddURL(bb_node, 0, ASCIIToUTF16("a"), GURL(test_base + "a")); in AddTestData() 111 const BookmarkNode* f1 = model_->AddFolder(bb_node, 1, ASCIIToUTF16("F1")); in AddTestData() 116 model_->AddFolder(bb_node, 2, ASCIIToUTF16("F2")); in AddTestData() 117 model_->AddFolder(bb_node, 3, ASCIIToUTF16("F3")); in AddTestData() 118 const BookmarkNode* f4 = model_->AddFolder(bb_node, 4, ASCIIToUTF16("F4")); in AddTestData() 310 const BookmarkNode* bb_node = model_->bookmark_bar_node(); in TEST_F() local 312 nodes.push_back(bb_node->GetChild(0)); in TEST_F() 323 int old_count = bb_node->child_count(); in TEST_F() 326 ASSERT_TRUE(bb_node->GetChild(1)->is_url()); in TEST_F() [all …]
|
D | bookmark_editor_view.cc | 156 EditorNode* bb_node = tree_model_->AsNode(node); in CanEdit() local 157 return (bb_node->parent() && bb_node->parent()->parent()); in CanEdit() 507 void BookmarkEditorView::CreateNodes(const BookmarkNode* bb_node, in CreateNodes() argument 509 for (int i = 0; i < bb_node->child_count(); ++i) { in CreateNodes() 510 const BookmarkNode* child_bb_node = bb_node->GetChild(i); in CreateNodes() 584 const BookmarkNode* bb_node, in ApplyNameChangesAndCreateNewFolders() argument 589 *parent_bb_node = bb_node; in ApplyNameChangesAndCreateNewFolders() 595 child_bb_node = bb_model_->AddFolder(bb_node, in ApplyNameChangesAndCreateNewFolders() 596 bb_node->child_count(), child_b_node->GetTitle()); in ApplyNameChangesAndCreateNewFolders() 601 for (int j = 0; j < bb_node->child_count(); ++j) { in ApplyNameChangesAndCreateNewFolders() [all …]
|
D | bookmark_menu_delegate_unittest.cc | 86 const BookmarkNode* bb_node = model_->bookmark_bar_node(); in AddTestData() local 88 model_->AddURL(bb_node, 0, ASCIIToUTF16("a"), GURL(test_base + "a")); in AddTestData() 89 const BookmarkNode* f1 = model_->AddFolder(bb_node, 1, ASCIIToUTF16("F1")); in AddTestData() 93 model_->AddFolder(bb_node, 2, ASCIIToUTF16("F2")); in AddTestData()
|
D | bookmark_editor_view.h | 174 void CreateNodes(const BookmarkNode* bb_node, EditorNode* b_node); 196 const BookmarkNode* bb_node,
|
D | bookmark_bar_view_test.cc | 356 const BookmarkNode* bb_node = model_->bookmark_bar_node(); in AddTestData() local 358 const BookmarkNode* f1 = model_->AddFolder(bb_node, 0, ASCIIToUTF16("F1")); in AddTestData() 368 model_->AddURL(bb_node, 1, ASCIIToUTF16("a"), GURL(test_base + "a")); in AddTestData() 369 model_->AddURL(bb_node, 2, ASCIIToUTF16("b"), GURL(test_base + "b")); in AddTestData() 370 model_->AddURL(bb_node, 3, ASCIIToUTF16("c"), GURL(test_base + "c")); in AddTestData() 371 model_->AddURL(bb_node, 4, ASCIIToUTF16("d"), GURL(test_base + "d")); in AddTestData() 372 model_->AddFolder(bb_node, 5, ASCIIToUTF16("F2")); in AddTestData() 373 model_->AddURL(bb_node, 6, ASCIIToUTF16("d"), GURL(test_base + "d")); in AddTestData()
|
/external/chromium_org/chrome/browser/ui/bookmarks/ |
D | bookmark_context_menu_controller_unittest.cc | 80 const BookmarkNode* bb_node = model->bookmark_bar_node(); in AddTestData() local 82 model->AddURL(bb_node, 0, ASCIIToUTF16("a"), GURL(test_base + "a")); in AddTestData() 83 const BookmarkNode* f1 = model->AddFolder(bb_node, 1, ASCIIToUTF16("F1")); in AddTestData() 87 model->AddFolder(bb_node, 2, ASCIIToUTF16("F2")); in AddTestData() 88 model->AddFolder(bb_node, 3, ASCIIToUTF16("F3")); in AddTestData() 89 const BookmarkNode* f4 = model->AddFolder(bb_node, 4, ASCIIToUTF16("F4")); in AddTestData() 308 const BookmarkNode* bb_node = model_->bookmark_bar_node(); in TEST_F() local 310 nodes.push_back(bb_node->GetChild(0)); in TEST_F() 322 int old_count = bb_node->child_count(); in TEST_F() 325 ASSERT_TRUE(bb_node->GetChild(1)->is_url()); in TEST_F() [all …]
|
/external/chromium_org/components/bookmarks/browser/ |
D | bookmark_codec.cc | 92 bool BookmarkCodec::Decode(BookmarkNode* bb_node, in Decode() argument 103 bool success = DecodeHelper(bb_node, other_folder_node, mobile_folder_node, in Decode() 109 ReassignIDs(bb_node, other_folder_node, mobile_folder_node); in Decode() 160 bool BookmarkCodec::DecodeHelper(BookmarkNode* bb_node, in DecodeHelper() argument 201 NULL, bb_node); in DecodeHelper() 237 bb_node->set_type(BookmarkNode::BOOKMARK_BAR); in DecodeHelper() 240 bb_node->SetTitle(l10n_util::GetStringUTF16(IDS_BOOKMARK_BAR_FOLDER_NAME)); in DecodeHelper() 438 void BookmarkCodec::ReassignIDs(BookmarkNode* bb_node, in ReassignIDs() argument 442 ReassignIDsHelper(bb_node); in ReassignIDs()
|
D | bookmark_codec.h | 57 bool Decode(BookmarkNode* bb_node, 118 bool DecodeHelper(BookmarkNode* bb_node, 128 void ReassignIDs(BookmarkNode* bb_node,
|
D | bookmark_storage.cc | 68 codec.Decode(details->bb_node(), details->other_folder_node(), in LoadCallback() 99 AddBookmarksToIndex(details.get(), details->bb_node()); in LoadCallback() 118 BookmarkPermanentNode* bb_node, in BookmarkLoadDetails() argument 124 : bb_node_(bb_node), in BookmarkLoadDetails()
|
D | bookmark_storage.h | 45 BookmarkLoadDetails(BookmarkPermanentNode* bb_node, 55 BookmarkPermanentNode* bb_node() { return bb_node_.get(); } in bb_node() function
|
D | bookmark_model_unittest.cc | 311 const BookmarkNode* bb_node = model_->bookmark_bar_node(); in TEST_F() local 312 ASSERT_TRUE(bb_node != NULL); in TEST_F() 313 EXPECT_EQ(0, bb_node->child_count()); in TEST_F() 314 EXPECT_EQ(BookmarkNode::BOOKMARK_BAR, bb_node->type()); in TEST_F() 326 EXPECT_TRUE(bb_node->id() != other_node->id()); in TEST_F() 327 EXPECT_TRUE(bb_node->id() != mobile_node->id()); in TEST_F() 900 const BookmarkNode* bb_node) { in PopulateBookmarkNode() argument 905 model->AddFolder(bb_node, i, child->GetTitle()); in PopulateBookmarkNode() 908 model->AddURL(bb_node, i, child->GetTitle(), in PopulateBookmarkNode()
|
D | bookmark_codec_unittest.cc | 314 const BookmarkNode* bb_node = decoded_model->bookmark_bar_node(); in TEST_F() local 316 bb_node, 0, ASCIIToUTF16("new url1"), GURL("http://newurl1.com")); in TEST_F() 318 bb_node, 0, ASCIIToUTF16("new url2"), GURL("http://newurl2.com")); in TEST_F()
|
D | bookmark_model.cc | 1000 BookmarkPermanentNode* bb_node = in CreateLoadDetails() local 1007 bb_node, in CreateLoadDetails()
|
/external/chromium_org/components/enhanced_bookmarks/ |
D | enhanced_bookmark_utils.cc | 94 const BookmarkNode* bb_node = model->bookmark_bar_node(); in RootLevelFolders() local 95 if (bb_node->child_count() > 0) in RootLevelFolders() 96 root_level_folders.push_back(bb_node); in RootLevelFolders()
|