/external/chromium/chrome/browser/notifications/ |
D | notification_exceptions_table_model_unittest.cc | 32 model_.reset(NULL); in TearDown() 37 model_.reset(new NotificationExceptionsTableModel(service_)); in ResetModel() 53 scoped_ptr<NotificationExceptionsTableModel> model_; member in NotificationExceptionsTableModelTest 58 EXPECT_EQ(0, model_->RowCount()); in TEST_F() 65 EXPECT_EQ(5, model_->RowCount()); in TEST_F() 67 model_->RemoveAll(); in TEST_F() 68 EXPECT_EQ(0, model_->RowCount()); in TEST_F() 76 EXPECT_EQ(5, model_->RowCount()); in TEST_F() 79 model_->GetText(0, IDS_EXCEPTIONS_HOSTNAME_HEADER)); in TEST_F() 81 model_->GetText(0, IDS_EXCEPTIONS_ACTION_HEADER)); in TEST_F() [all …]
|
/external/chromium/chrome/browser/extensions/ |
D | extension_toolbar_model_browsertest.cc | 31 model_ = service->toolbar_model(); in CreateBrowser() 32 model_->AddObserver(this); in CreateBrowser() 37 model_->RemoveObserver(this); in CleanUpOnMainThread() 53 for (ExtensionList::iterator i = model_->begin(); i < model_->end(); ++i) { in ExtensionAt() 61 ExtensionToolbarModel* model_; member in ExtensionToolbarModelTest 79 EXPECT_EQ(0u, model_->size()); in IN_PROC_BROWSER_TEST_F() 89 EXPECT_EQ(1u, model_->size()); in IN_PROC_BROWSER_TEST_F() 96 model_->MoveBrowserAction(extension, 0); in IN_PROC_BROWSER_TEST_F() 98 EXPECT_EQ(1u, model_->size()); in IN_PROC_BROWSER_TEST_F() 104 EXPECT_EQ(0u, model_->size()); in IN_PROC_BROWSER_TEST_F() [all …]
|
D | extension_bookmarks_unittest.cc | 17 model_.reset(new BookmarkModel(NULL)); in SetUp() 18 model_->AddURL(model_->other_node(), 0, ASCIIToUTF16("Digg"), in SetUp() 20 model_->AddURL(model_->other_node(), 0, ASCIIToUTF16("News"), in SetUp() 22 folder = model_->AddFolder( in SetUp() 23 model_->other_node(), 0, ASCIIToUTF16("outer folder")); in SetUp() 24 model_->AddFolder(folder, 0, ASCIIToUTF16("inner folder 1")); in SetUp() 25 model_->AddFolder(folder, 0, ASCIIToUTF16("inner folder 2")); in SetUp() 26 model_->AddURL(folder, 0, ASCIIToUTF16("Digg"), GURL("http://reddit.com")); in SetUp() 27 model_->AddURL(folder, 0, ASCIIToUTF16("CNet"), GURL("http://cnet.com")); in SetUp() 30 scoped_ptr<BookmarkModel> model_; member in ExtensionBookmarksTest [all …]
|
D | extension_processes_api.cc | 50 model_ = TaskManager::GetInstance()->model(); in ExtensionProcessesEventRouter() 51 model_->AddObserver(this); in ExtensionProcessesEventRouter() 55 model_->RemoveObserver(this); in ~ExtensionProcessesEventRouter() 63 model_->StartUpdating(); in ListenerAdded() 67 model_->StopUpdating(); in ListenerRemoved() 71 if (model_) { in OnItemsChanged() 75 if (model_->IsResourceFirstInGroup(i)) { in OnItemsChanged() 76 int id = model_->GetProcessId(i); in OnItemsChanged() 80 TaskManager::Resource::Type resource_type = model_->GetResourceType(i); in OnItemsChanged() 120 double cpu = model_->GetCPUUsage(i); in OnItemsChanged() [all …]
|
/external/chromium/chrome/browser/ui/views/tabs/ |
D | browser_tab_strip_controller.cc | 40 model_(this, in TabContextMenuContents() 41 controller->model_, in TabContextMenuContents() 106 menu_.reset(new views::Menu2(&model_)); in Build() 109 TabMenuModel model_; member in BrowserTabStripController::TabContextMenuContents 130 : model_(model), in BrowserTabStripController() 133 model_->AddObserver(this); in BrowserTabStripController() 147 model_->RemoveObserver(this); in ~BrowserTabStripController() 154 for (int i = 0; i < model_->count(); ++i) in InitFromModel() 155 TabInsertedAt(model_->GetTabContentsAt(i), i, model_->active_index() == i); in InitFromModel() 162 return model_->ContainsIndex(model_index) ? in IsCommandEnabledForTab() [all …]
|
/external/chromium/chrome/browser/ui/views/bookmarks/ |
D | bookmark_context_menu_test.cc | 47 model_(NULL) { in BookmarkContextMenuTest() 59 model_ = profile_->GetBookmarkModel(); in SetUp() 78 BookmarkModel* model_; member in BookmarkContextMenuTest 95 model_->AddURL(model_->GetBookmarkBarNode(), 0, ASCIIToUTF16("a"), in AddTestData() 98 model_->AddFolder(model_->GetBookmarkBarNode(), 1, ASCIIToUTF16("F1")); in AddTestData() 99 model_->AddURL(f1, 0, ASCIIToUTF16("f1a"), GURL(test_base + "f1a")); in AddTestData() 100 const BookmarkNode* f11 = model_->AddFolder(f1, 1, ASCIIToUTF16("F11")); in AddTestData() 101 model_->AddURL(f11, 0, ASCIIToUTF16("f11a"), GURL(test_base + "f11a")); in AddTestData() 102 model_->AddFolder(model_->GetBookmarkBarNode(), 2, ASCIIToUTF16("F2")); in AddTestData() 103 model_->AddFolder(model_->GetBookmarkBarNode(), 3, ASCIIToUTF16("F3")); in AddTestData() [all …]
|
D | bookmark_editor_view_unittest.cc | 27 model_(NULL) { in BookmarkEditorViewTest() 34 model_ = profile_->GetBookmarkModel(); in SetUp() 47 return model_->GetMostRecentlyAddedNodeForURL(GURL(base_path() + name)); in GetNode() 91 BookmarkModel* model_; member in BookmarkEditorViewTest 110 model_->AddURL(model_->GetBookmarkBarNode(), 0, ASCIIToUTF16("a"), in AddTestData() 113 model_->AddFolder(model_->GetBookmarkBarNode(), 1, ASCIIToUTF16("F1")); in AddTestData() 114 model_->AddURL(f1, 0, ASCIIToUTF16("f1a"), GURL(test_base + "f1a")); in AddTestData() 115 const BookmarkNode* f11 = model_->AddFolder(f1, 1, ASCIIToUTF16("F11")); in AddTestData() 116 model_->AddURL(f11, 0, ASCIIToUTF16("f11a"), GURL(test_base + "f11a")); in AddTestData() 117 model_->AddFolder(model_->GetBookmarkBarNode(), 2, ASCIIToUTF16("F2")); in AddTestData() [all …]
|
D | bookmark_bar_view.cc | 342 model_(NULL), in BookmarkBarView() 372 if (model_) in ~BookmarkBarView() 373 model_->RemoveObserver(this); in ~BookmarkBarView() 399 if (model_) in SetProfile() 400 model_->RemoveObserver(this); in SetProfile() 416 model_ = profile_->GetBookmarkModel(); in SetProfile() 417 if (model_) { in SetProfile() 418 model_->AddObserver(this); in SetProfile() 419 if (model_->IsLoaded()) in SetProfile() 420 Loaded(model_); in SetProfile() [all …]
|
/external/chromium/chrome/browser/bookmarks/ |
D | bookmark_context_menu_controller_unittest.cc | 42 model_(NULL) { in BookmarkContextMenuControllerTest() 54 model_ = profile_->GetBookmarkModel(); in SetUp() 73 BookmarkModel* model_; member in BookmarkContextMenuControllerTest 90 model_->AddURL(model_->GetBookmarkBarNode(), 0, ASCIIToUTF16("a"), in AddTestData() 93 model_->AddFolder(model_->GetBookmarkBarNode(), 1, ASCIIToUTF16("F1")); in AddTestData() 94 model_->AddURL(f1, 0, ASCIIToUTF16("f1a"), GURL(test_base + "f1a")); in AddTestData() 95 const BookmarkNode* f11 = model_->AddFolder(f1, 1, ASCIIToUTF16("F11")); in AddTestData() 96 model_->AddURL(f11, 0, ASCIIToUTF16("f11a"), GURL(test_base + "f11a")); in AddTestData() 97 model_->AddFolder(model_->GetBookmarkBarNode(), 2, ASCIIToUTF16("F2")); in AddTestData() 98 model_->AddFolder(model_->GetBookmarkBarNode(), 3, ASCIIToUTF16("F3")); in AddTestData() [all …]
|
D | bookmark_folder_editor_controller.cc | 15 if (model_) in ~BookmarkFolderEditorController() 16 model_->RemoveObserver(this); in ~BookmarkFolderEditorController() 36 model_(profile->GetBookmarkModel()), in BookmarkFolderEditorController() 56 model_->AddObserver(this); in BookmarkFolderEditorController() 67 model_->AddFolder(node_, index_, WideToUTF16Hack(text)); in InputAccepted() 69 model_->SetTitle(node_, WideToUTF16Hack(text)); in InputAccepted() 81 model_->RemoveObserver(this); in BookmarkModelBeingDeleted() 82 model_ = NULL; in BookmarkModelBeingDeleted()
|
D | bookmark_index_unittest.cc | 26 BookmarkIndexTest() : model_(new BookmarkModel(NULL)) {} in BookmarkIndexTest() 38 model_->AddURL(model_->other_node(), static_cast<int>(i), in AddBookmarksWithTitles() 54 model_->GetBookmarksWithTitlesMatching(ASCIIToUTF16(query), 1000, &matches); in ExpectMatches() 89 model_->GetBookmarksWithTitlesMatching(ASCIIToUTF16(query), 1000, &matches); in ExpectMatchPositions() 100 scoped_ptr<BookmarkModel> model_; member in BookmarkIndexTest 148 model_.reset(new BookmarkModel(NULL)); in TEST_F() 173 model_.reset(new BookmarkModel(NULL)); in TEST_F() 183 model_->Remove(model_->other_node(), 0); in TEST_F() 194 model_->SetTitle(model_->other_node()->GetChild(0), ASCIIToUTF16("blah")); in TEST_F() 204 model_->GetBookmarksWithTitlesMatching(ASCIIToUTF16("ABc"), 1, &matches); in TEST_F() [all …]
|
/external/chromium/chrome/browser/geolocation/ |
D | geolocation_exceptions_table_model_unittest.cc | 31 model_.reset(NULL); in TearDown() 36 model_.reset(new GeolocationExceptionsTableModel( in ResetModel() 47 EXPECT_EQ(3, model_->RowCount()); in CreateAllowedSamples() 52 scoped_ptr<GeolocationExceptionsTableModel> model_; member in __anonf3f57e690111::GeolocationExceptionsTableModelTest 56 EXPECT_EQ(0, model_->RowCount()); in TEST_F() 64 EXPECT_EQ(1, model_->RowCount()); in TEST_F() 67 EXPECT_TRUE(model_->CanRemoveRows(rows)); in TEST_F() 75 EXPECT_EQ(3, model_->RowCount()); in TEST_F() 76 EXPECT_FALSE(model_->CanRemoveRows(rows)); in TEST_F() 82 EXPECT_TRUE(model_->CanRemoveRows(rows)); in TEST_F() [all …]
|
/external/chromium/chrome/browser/autocomplete/ |
D | autocomplete_edit_view_views.cc | 118 : model_(new AutocompleteEditModel(this, controller, profile)), in AutocompleteEditViewViews() 139 model_.reset(); in ~AutocompleteEditViewViews() 175 model_->AcceptInput(alt_held ? NEW_FOREGROUND_TAB : CURRENT_TAB, false); in HandleAfterKeyEvent() 181 handled = model_->OnEscapeKeyPressed(); in HandleAfterKeyEvent() 186 model_->OnControlKeyChanged(true); in HandleAfterKeyEvent() 192 if (model_->popup_model()->IsOpen()) in HandleAfterKeyEvent() 193 model_->popup_model()->TryDeletingCurrentItem(); in HandleAfterKeyEvent() 195 model_->OnUpOrDownKeyPressed(-1); in HandleAfterKeyEvent() 198 model_->OnUpOrDownKeyPressed(1); in HandleAfterKeyEvent() 204 if (model_->is_keyword_hint()) { in HandleAfterKeyEvent() [all …]
|
D | keyword_provider_unittest.cc | 38 scoped_ptr<TemplateURLModel> model_; member in KeywordProviderTest 52 model_.reset(new TemplateURLModel(kTestKeywordData, in SetUp() 54 kw_provider_ = new KeywordProvider(NULL, model_.get()); in SetUp() 58 model_.reset(); in TearDown() 210 model_->Add(template_url); in TEST_F() 211 ASSERT_TRUE(template_url == model_->GetTemplateURLForKeyword(keyword)); in TEST_F() 216 model_->Remove(model_->GetTemplateURLForKeyword(ASCIIToUTF16("aaaa"))); in TEST_F() 217 ASSERT_TRUE(model_->GetTemplateURLForKeyword(ASCIIToUTF16("aaaa")) == NULL); in TEST_F()
|
D | autocomplete_edit_view_mac.mm | 30 // Focus-handling between |field_| and |model_| is a bit subtle. 35 // |model_| doesn't actually do anything when it gains focus, it just 39 // into |model_| start from AutocompleteEditViewMac, in the worst case 45 // |model_|. 51 // closed. |model_| still believes it has focus, and the popup will 175 : model_(new AutocompleteEditModel(this, controller, profile)), function 176 popup_view_(new AutocompletePopupViewMac(this, model_.get(), profile, 209 model_.reset(); 216 return model_.get(); 220 return model_.get(); [all …]
|
/external/chromium/chrome/browser/sync/ |
D | profile_sync_service_bookmark_unittest.cc | 284 model_(NULL) { in ProfileSyncServiceBookmarkTest() 306 model_ = profile_.GetBookmarkModel(); in LoadBookmarkModel() 311 model_->ClearStore(); in LoadBookmarkModel() 347 model_ = NULL; in UnloadBookmarkModel() 362 if (bnode != model_->GetBookmarkBarNode() && in ExpectSyncerNodeMatching() 363 bnode != model_->other_node()) { in ExpectSyncerNodeMatching() 459 const BookmarkNode* root = model_->root_node(); in ExpectModelMatch() 460 EXPECT_EQ(root->GetIndexOf(model_->GetBookmarkBarNode()), 0); in ExpectModelMatch() 461 EXPECT_EQ(root->GetIndexOf(model_->other_node()), 1); in ExpectModelMatch() 486 model_associator_->GetSyncIdFromChromeId(model_->other_node()->id()); in other_bookmarks_id() [all …]
|
/external/chromium/chrome/browser/ui/webui/ |
D | cookies_tree_model_adapter.cc | 28 model_(NULL), in CookiesTreeModelAdapter() 33 if (model_) in ~CookiesTreeModelAdapter() 34 model_->RemoveCookiesTreeObserver(this); in ~CookiesTreeModelAdapter() 47 DCHECK(tree_id_.empty() && !model_); // No existing bindings. in Bind() 50 model_ = model; in Bind() 51 model_->AddCookiesTreeObserver(this); in Bind() 58 SendChildren(model_->GetRoot()); in Bind() 69 CookieTreeNode* parent_node = model_->AsNode(parent); in TreeNodesAdded() 90 scoped_ptr<Value> parend_id(GetTreeNodeId(model_->AsNode(parent))); in TreeNodesRemoved() 106 SendChildren(model_->GetRoot()); in TreeModelEndBatch() [all …]
|
/external/chromium/chrome/browser/diagnostics/ |
D | diagnostics_model_unittest.cc | 14 : model_(NULL), in DiagnosticsModelTest() 21 model_ = MakeDiagnosticsModel(cmdline_); in SetUp() 22 ASSERT_TRUE(model_ != NULL); in SetUp() 26 delete model_; in TearDown() 29 DiagnosticsModel* model_; member in DiagnosticsModelTest 90 int available = model_->GetTestAvailableCount(); in TEST_F() 92 EXPECT_EQ(0, model_->GetTestRunCount()); in TEST_F() 93 EXPECT_EQ(DiagnosticsModel::TEST_NOT_RUN, model_->GetTest(0).GetResult()); in TEST_F() 101 model_->RunAll(&observer); in TEST_F() 104 EXPECT_EQ(kDiagnosticsTestCount, model_->GetTestRunCount()); in TEST_F()
|
/external/chromium/chrome/browser/ui/search_engines/ |
D | keyword_editor_controller_unittest.cc | 84 model_->Observe( in SimulateDefaultSearchIsManaged() 98 TemplateURLModel* model_; member in KeywordEditorControllerTest 115 model_ = profile_->GetTemplateURLModel(); in Init() 117 model_->OnWebDataServiceRequestDone(0, NULL); in Init() 136 ASSERT_EQ(1U, model_->GetTemplateURLs().size()); in TEST_F() 139 const TemplateURL* turl = model_->GetTemplateURLs()[0]; in TEST_F() 152 const TemplateURL* turl = model_->GetTemplateURLs()[0]; in TEST_F() 168 const TemplateURL* turl = model_->GetTemplateURLs()[0]; in TEST_F() 175 ASSERT_TRUE(model_->GetDefaultSearchProvider() == turl); in TEST_F() 190 model_->GetTemplateURLForKeyword(ASCIIToUTF16("b")); in TEST_F() [all …]
|
/external/chromium/chrome/browser/ui/views/ |
D | task_manager_view.cc | 56 : model_(model), in TaskManagerTableModel() 58 model_->AddObserver(this); in TaskManagerTableModel() 62 model_->RemoveObserver(this); in ~TaskManagerTableModel() 83 TaskManagerModel* model_; member in __anon3e7f30ec0111::TaskManagerTableModel 88 return model_->ResourceCount(); in RowCount() 94 return model_->GetResourceTitle(row); in GetText() 97 return model_->GetResourceNetworkUsage(row); in GetText() 100 if (!model_->IsResourceFirstInGroup(row)) in GetText() 102 return model_->GetResourceCPUUsage(row); in GetText() 105 if (!model_->IsResourceFirstInGroup(row)) in GetText() [all …]
|
/external/chromium/chrome/browser/ui/gtk/bookmarks/ |
D | bookmark_editor_gtk_unittest.cc | 32 model_(NULL) { in BookmarkEditorGtkTest() 40 model_ = profile_->GetBookmarkModel(); in SetUp() 52 BookmarkModel* model_; member in BookmarkEditorGtkTest 58 return model_->GetMostRecentlyAddedNodeForURL(GURL(base_path() + name)); in GetNode() 77 model_->AddURL(model_->GetBookmarkBarNode(), 0, ASCIIToUTF16("a"), in AddTestData() 80 model_->AddFolder(model_->GetBookmarkBarNode(), 1, ASCIIToUTF16("F1")); in AddTestData() 81 model_->AddURL(f1, 0, ASCIIToUTF16("f1a"), GURL(test_base + "f1a")); in AddTestData() 82 const BookmarkNode* f11 = model_->AddFolder(f1, 1, ASCIIToUTF16("F11")); in AddTestData() 83 model_->AddURL(f11, 0, ASCIIToUTF16("f11a"), GURL(test_base + "f11a")); in AddTestData() 84 model_->AddFolder(model_->GetBookmarkBarNode(), 2, ASCIIToUTF16("F2")); in AddTestData() [all …]
|
/external/chromium/chrome/browser/chromeos/status/ |
D | input_method_menu.cc | 127 model_(NULL), in InputMethodMenu() 258 if (!model_.get()) { in GetItemCount() 263 return model_->GetItemCount(); in GetItemCount() 483 model_.reset(new ui::SimpleMenuModel(NULL)); in RebuildModel() 493 model_->AddRadioItem(COMMAND_ID_INPUT_METHODS, dummy_label, i); in RebuildModel() 503 model_->AddSeparator(); in RebuildModel() 506 model_->AddRadioItem(COMMAND_ID_IME_PROPERTIES, dummy_label, i); in RebuildModel() 515 model_->AddSeparator(); in RebuildModel() 517 model_->AddRadioItem(COMMAND_ID_CUSTOMIZE_LANGUAGE, dummy_label, in RebuildModel() 524 DCHECK(model_.get()); in IndexIsInInputMethodList() [all …]
|
/external/chromium/chrome/browser/ui/cocoa/ |
D | task_manager_mac.mm | 65 model_(model) {} 68 std::pair<int, int> group_range1 = model_->GetGroupRangeForResource(a); 69 std::pair<int, int> group_range2 = model_->GetGroupRangeForResource(b); 77 int cmp_result = model_->CompareValues( 86 TaskManagerModel* model_; // weak; 113 model_ = taskManager_->model(); 136 viewToModelMap_.resize(model_->ResourceCount()); 141 SortHelper(model_, currentSortDescriptor_.get())); 165 DCHECK_EQ([tableView_ numberOfRows], model_->ResourceCount()); 356 model_->GetGroupRangeForResource(modelIndex); [all …]
|
D | table_model_array_controller.mm | 68 model_ = model; 72 model_->SetObserver(tableObserver_.get()); 80 if (model_->HasGroups()) { 81 const ui::TableModel::Groups& groups = model_->GetGroups(); 92 [self modelDidAddItemsInRange:NSMakeRange(0, model_->RowCount())]; 96 const ui::TableModel::Groups& groups = model_->GetGroups(); 120 if (!model_->HasGroups()) { 140 if (!model_->HasGroups()) 145 int group = model_->GetGroupID(i); 167 if (model_->HasGroups()) { [all …]
|
/external/chromium/chrome/browser/ui/views/autocomplete/ |
D | autocomplete_popup_contents_view.cc | 209 : model_(new AutocompletePopupModel(this, edit_model, profile)), in AutocompletePopupContentsView() 273 if (model_->result().empty()) { in UpdatePopupAppearance() 294 for (size_t i = 0; i < model_->result().size(); ++i) { in UpdatePopupAppearance() 306 for (size_t i = model_->result().size(); i < child_rv_count; ++i) in UpdatePopupAppearance() 309 PromoCounter* counter = model_->profile()->GetInstantPromoCounter(); in UpdatePopupAppearance() 371 return HasMatchAt(index) ? index == model_->selected_line() : false; in IsSelectedIndex() 375 return HasMatchAt(index) ? index == model_->hovered_line() : false; in IsHoveredIndex() 382 return model_->GetIconIfExtensionMatch(GetMatchAtIndex(index)); in GetIconIfExtensionMatch() 428 model_->SetHoveredLine(index); in OnMousePressed() 430 model_->SetSelectedLine(index, false, false); in OnMousePressed() [all …]
|