Searched refs:model_ (Results 1 - 25 of 240) sorted by relevance

12345678910

/external/chromium_org/components/bookmarks/browser/
H A Dscoped_group_bookmark_actions.cc12 : model_(model) {
13 if (model_)
14 model_->BeginGroupedChanges();
18 if (model_)
19 model_->EndGroupedChanges();
H A Dbookmark_model_unittest.cc142 BookmarkModelTest() : model_(client_.CreateModel()) {
143 model_->AddObserver(this);
277 model_->RemoveObserver(this);
278 model_ = client_.CreateModel();
279 model_->AddObserver(this);
282 if (model_->root_node()->GetIndexOf(extra_node) == -1)
290 scoped_ptr<BookmarkModel> model_; member in class:bookmarks::__anon6362::BookmarkModelTest
311 const BookmarkNode* bb_node = model_->bookmark_bar_node();
316 const BookmarkNode* other_node = model_->other_node();
321 const BookmarkNode* mobile_node = model_
949 scoped_ptr<BookmarkModel> model_; member in class:bookmarks::__anon6362::BookmarkModelTestWithProfile
[all...]
H A Dbookmark_expanded_state_tracker_unittest.cc49 scoped_ptr<BookmarkModel> model_; member in class:bookmarks::BookmarkExpandedStateTrackerTest
60 model_.reset(new BookmarkModel(&client_));
61 model_->Load(prefs_.get(),
66 test::WaitForBookmarkModelToLoad(model_.get());
70 model_.reset();
75 BookmarkExpandedStateTracker* tracker = model_->expanded_state_tracker();
81 nodes.insert(model_->bookmark_bar_node());
86 const BookmarkNode* n1 = model_->AddFolder(
87 model_->bookmark_bar_node(), 0, base::ASCIIToUTF16("x"));
93 model_
[all...]
H A Dscoped_group_bookmark_actions.h21 BookmarkModel* model_; member in class:bookmarks::ScopedGroupBookmarkActions
/external/chromium_org/ash/shelf/
H A Dshelf_model_unittest.cc84 model_.reset(new ShelfModel);
86 EXPECT_EQ(0, model_->item_count());
90 model_->Add(item);
91 EXPECT_EQ(1, model_->item_count());
93 model_->AddObserver(observer_.get());
98 model_.reset();
101 scoped_ptr<ShelfModel> model_; member in class:ash::ShelfModelTest
112 int index = model_->Add(item);
113 EXPECT_EQ(2, model_->item_count());
117 ShelfID original_id = model_
[all...]
H A Dshelf_window_watcher_unittest.cc27 ShelfWindowWatcherTest() : model_(NULL) {}
32 model_ = test::ShellTestApi(Shell::GetInstance()).shelf_model();
36 model_ = NULL;
41 ShelfID id = model_->next_id();
49 ShelfModel* model_; member in class:ash::ShelfWindowWatcherTest
57 EXPECT_EQ(1, model_->item_count());
64 EXPECT_EQ(2, model_->item_count());
66 int index_w1 = model_->ItemIndexByID(id_w1);
67 EXPECT_EQ(STATUS_RUNNING, model_->items()[index_w1].status);
71 EXPECT_EQ(3, model_
[all...]
H A Dshelf_navigator_unittest.cc25 model_.reset(new ShelfModel);
30 model_->Add(app_list);
33 int total_num = model_->item_count();
35 EXPECT_TRUE(model_->items()[0].type == TYPE_APP_LIST);
40 model_->Add(browser_shortcut);
51 model_->Add(new_item);
56 ShelfItem focused_item =model_->items()[focused_index];
59 model_->Set(focused_index, focused_item);
64 const ShelfModel& model() { return *model_.get(); }
67 scoped_ptr<ShelfModel> model_; member in class:ash::__anon1940::ShelfNavigatorTest
[all...]
H A Dshelf_item_delegate_manager.cc16 : model_(model) {
17 DCHECK(model_);
18 model_->AddObserver(this);
22 model_->RemoveObserver(this);
38 if (model_->ItemIndexByID(id) != -1) {
/external/chromium_org/chrome/browser/ui/passwords/
H A Dmanage_passwords_bubble_model_unittest.cc33 model_.reset(new ManagePasswordsBubbleModel(test_web_contents_.get()));
36 virtual void TearDown() OVERRIDE { model_.reset(); }
39 model_->set_state(password_manager::ui::PENDING_PASSWORD_AND_BUBBLE_STATE);
40 model_->OnBubbleShown(ManagePasswordsBubble::AUTOMATIC);
46 model_->set_state(password_manager::ui::MANAGE_STATE);
47 model_->OnBubbleShown(ManagePasswordsBubble::USER_ACTION);
52 model_->set_state(password_manager::ui::BLACKLIST_STATE);
53 model_->OnBubbleShown(ManagePasswordsBubble::USER_ACTION);
69 scoped_ptr<ManagePasswordsBubbleModel> model_; member in class:ManagePasswordsBubbleModelTest
79 EXPECT_EQ(model_
[all...]
H A Dmanage_passwords_bubble.h32 ManagePasswordsBubbleModel* model() { return model_.get(); }
33 const ManagePasswordsBubbleModel* model() const { return model_.get(); }
36 scoped_ptr<ManagePasswordsBubbleModel> model_; member in class:ManagePasswordsBubble
H A Dmanage_passwords_bubble.cc12 : model_(new ManagePasswordsBubbleModel(contents)) {
/external/chromium_org/ui/app_list/
H A Dapp_list_model_unittest.cc82 model_.AddObserver(&observer_);
85 model_.RemoveObserver(&observer_);
105 return GetItemListContents(model_.top_level_item_list());
108 test::AppListTestModel model_; member in class:app_list::AppListModelTest
116 EXPECT_EQ(AppListModel::STATUS_NORMAL, model_.status());
117 model_.SetStatus(AppListModel::STATUS_SYNCING);
119 EXPECT_EQ(AppListModel::STATUS_SYNCING, model_.status());
120 model_.SetStatus(AppListModel::STATUS_NORMAL);
123 model_.SetStatus(AppListModel::STATUS_NORMAL);
129 model_
[all...]
/external/chromium_org/chrome/browser/search_engines/
H A Dtemplate_url_scraper_unittest.cc27 explicit TemplateURLServiceLoader(TemplateURLService* model) : model_(model) {
31 model_->RegisterOnLoadedCallback(
33 model_->Load();
38 TemplateURLService* model_; member in class:__anon4642::TemplateURLServiceLoader
/external/chromium_org/chrome/browser/ui/translate/
H A Dlanguage_combobox_model.cc13 model_(model) {
22 return model_->GetNumberOfLanguages();
26 return model_->GetLanguageNameAt(index);
/external/chromium_org/chrome/renderer/safe_browsing/
H A Dscorer_unittest.cc27 model_.Clear();
28 model_.add_hashes("feature1");
29 model_.add_hashes("feature2");
30 model_.add_hashes("feature3");
31 model_.add_hashes("token one");
32 model_.add_hashes("token two");
35 rule = model_.add_rule();
38 rule = model_.add_rule();
42 rule = model_.add_rule();
47 model_
62 ClientSideModel model_; member in class:safe_browsing::PhishingScorerTest
[all...]
H A Dscorer.cc56 ClientSideModel& model = scorer->model_;
80 for (int i = 0; i < model_.rule_size(); ++i) {
81 logodds += ComputeRuleScore(model_.rule(i), features);
87 return model_.version();
99 return model_.max_words_per_term();
103 return model_.murmur_hash_seed();
107 return model_.max_shingles_per_page();
111 return model_.shingle_size();
120 model_.hashes(rule.feature(i)));
/external/chromium_org/chrome/browser/ui/ash/app_list/
H A Dapp_sync_ui_state_watcher.cc13 model_(model) {
27 model_->SetStatus(app_list::AppListModel::STATUS_SYNCING);
29 model_->SetStatus(app_list::AppListModel::STATUS_NORMAL);
/external/chromium_org/chrome/browser/extensions/api/bookmarks/
H A Dbookmark_api_helpers_unittest.cc32 : client_(NULL), model_(NULL), node_(NULL), node2_(NULL), folder_(NULL) {}
36 model_ = BookmarkModelFactory::GetForProfile(&profile_);
38 test::WaitForBookmarkModelToLoad(model_);
40 node_ = model_->AddURL(model_->other_node(), 0, base::ASCIIToUTF16("Digg"),
42 model_->SetNodeMetaInfo(node_, "some_key1", "some_value1");
43 model_->SetNodeMetaInfo(node_, "some_key2", "some_value2");
44 model_->AddURL(model_->other_node(), 0, base::ASCIIToUTF16("News"),
46 folder_ = model_
61 BookmarkModel* model_; member in class:extensions::bookmark_api_helpers::ExtensionBookmarksTest
[all...]
/external/chromium_org/chrome/browser/diagnostics/
H A Ddiagnostics_controller.cc34 return *model_;
38 return (model_.get() && model_->GetTestRunCount() > 0);
41 void DiagnosticsController::ClearResults() { model_.reset(); }
65 model_.reset(MakeDiagnosticsModel(command_line));
66 model_->RunAll(writer_);
92 writer->OnAllRecoveryDone(model_.get());
99 model_->RecoverAll(writer_);
H A Ddiagnostics_model_unittest.cc24 model_.reset(MakeDiagnosticsModel(cmdline_));
25 ASSERT_TRUE(model_.get() != NULL);
29 model_.reset();
32 scoped_ptr<DiagnosticsModel> model_; member in class:diagnostics::DiagnosticsModelTest
91 int available = model_->GetTestAvailableCount();
93 EXPECT_EQ(0, model_->GetTestRunCount());
94 EXPECT_EQ(DiagnosticsModel::TEST_NOT_RUN, model_->GetTest(0).GetResult());
102 model_->RunAll(&observer);
105 model_->RecoverAll(&observer);
107 EXPECT_EQ(DiagnosticsModel::kDiagnosticsTestCount, model_
[all...]
/external/chromium_org/ui/app_list/views/
H A Dapps_grid_view_unittest.cc44 : ui_loop_(ui_loop), model_(model), wait_(false) {
45 model_->AddObserver(this);
49 model_->RemoveObserver(this);
83 PaginationModel* model_; member in class:app_list::test::__anon16559::PageFlipWaiter
100 model_.reset(new AppListTestModel);
101 model_->SetFoldersEnabled(true);
106 apps_grid_view_->SetModel(model_.get());
107 apps_grid_view_->SetItemList(model_->top_level_item_list());
129 for (size_t i = 0; i < model_->top_level_item_list()->item_count(); ++i) {
138 DCHECK_GT(model_
178 scoped_ptr<AppListTestModel> model_; member in class:app_list::test::AppsGridViewTest
[all...]
/external/chromium_org/chrome/browser/bookmarks/
H A Dchrome_bookmark_client_unittest.cc32 ChromeBookmarkClientTest() : client_(NULL), model_(NULL) {}
45 ASSERT_TRUE(client_->managed_node()->parent() == model_->root_node());
46 EXPECT_NE(-1, model_->root_node()->GetIndexOf(client_->managed_node()));
50 model_->RemoveObserver(&observer_);
55 model_ = BookmarkModelFactory::GetForProfile(&profile_);
56 test::WaitForBookmarkModelToLoad(model_);
57 model_->AddObserver(&observer_);
135 BookmarkModel* model_; member in class:ChromeBookmarkClientTest
143 model_->RemoveObserver(&observer_);
154 EXPECT_TRUE(model_
[all...]
/external/chromium_org/chrome/browser/ui/views/
H A Dconfirm_bubble_views.cc17 : model_(model),
29 views::Label* label = new views::Label(model_->GetMessageText());
38 link_ = new views::Link(model_->GetLinkText());
50 return model_->GetButtonLabel(ConfirmBubbleModel::BUTTON_OK);
52 return model_->GetButtonLabel(ConfirmBubbleModel::BUTTON_CANCEL);
62 return !!(model_->GetButtons() & ConfirmBubbleModel::BUTTON_OK);
64 return !!(model_->GetButtons() & ConfirmBubbleModel::BUTTON_CANCEL);
76 model_->Cancel();
81 model_->Accept();
90 return model_
[all...]
/external/chromium_org/chrome/browser/browsing_data/
H A Dlocal_data_container.cc41 model_(NULL),
48 DCHECK(!model_);
49 model_ = model;
138 model_->PopulateAppCacheInfo(this);
146 DCHECK(model_);
147 model_->PopulateCookieInfo(this);
153 DCHECK(model_);
154 model_->PopulateDatabaseInfo(this);
160 DCHECK(model_);
161 model_
[all...]
/external/chromium_org/chrome/browser/ui/views/location_bar/
H A Dopen_pdf_in_reader_view.cc17 OpenPDFInReaderView::OpenPDFInReaderView() : bubble_(NULL), model_(NULL) {
30 model_ = NULL;
34 model_ = pdf_tab_helper->open_in_reader_prompt();
37 SetVisible(!!model_);
44 DCHECK(model_);
45 bubble_ = new OpenPDFInReaderBubbleView(this, model_);

Completed in 547 milliseconds

12345678910