Home
last modified time | relevance | path

Searched refs:tab_model (Results 1 – 14 of 14) sorted by relevance

/external/chromium_org/chrome/browser/ui/android/tab_model/
Dtab_model_unittest.cc54 TestTabModel tab_model(&testing_profile); in TEST_F() local
57 EXPECT_EQ(&testing_profile, tab_model.GetProfile()); in TEST_F()
58 EXPECT_FALSE(tab_model.IsOffTheRecord()); in TEST_F()
65 EXPECT_EQ(NULL, tab_model.GetProfile()); in TEST_F()
75 TestTabModel tab_model(&testing_profile); in TEST_F() local
78 EXPECT_EQ(&testing_profile, tab_model.GetProfile()); in TEST_F()
79 EXPECT_TRUE(tab_model.IsOffTheRecord()); in TEST_F()
86 EXPECT_EQ(NULL, tab_model.GetProfile()); in TEST_F()
Dtab_model_list.cc23 void TabModelList::AddTabModel(TabModel* tab_model) { in AddTabModel() argument
24 DCHECK(tab_model); in AddTabModel()
25 tab_models().push_back(tab_model); in AddTabModel()
28 void TabModelList::RemoveTabModel(TabModel* tab_model) { in RemoveTabModel() argument
29 DCHECK(tab_model); in RemoveTabModel()
31 std::find(tab_models().begin(), tab_models().end(), tab_model); in RemoveTabModel()
Dtab_model_list.h27 static void AddTabModel(TabModel* tab_model);
28 static void RemoveTabModel(TabModel* tab_model);
/external/chromium/chrome/browser/tabs/
Dpinned_tab_codec.cc30 TabStripModel* tab_model = browser->tabstrip_model(); in HasPinnedTabs() local
31 for (int i = 0; i < tab_model->count(); ++i) { in HasPinnedTabs()
32 if (tab_model->IsTabPinned(i)) in HasPinnedTabs()
69 TabStripModel* tab_model = browser->tabstrip_model(); in EncodePinnedTabs() local
70 for (int i = 0; i < tab_model->count() && tab_model->IsTabPinned(i); ++i) in EncodePinnedTabs()
71 EncodePinnedTab(tab_model, i, values); in EncodePinnedTabs()
/external/chromium_org/chrome/browser/sync/glue/
Dsynced_window_delegate_android.cc31 TabModel* tab_model = TabModelList::FindTabModelWithId( in FindSyncedWindowDelegateWithId() local
35 return tab_model ? tab_model->GetSyncedWindowDelegate() : NULL; in FindSyncedWindowDelegateWithId()
41 TabModel* tab_model) in SyncedWindowDelegateAndroid() argument
42 : tab_model_(tab_model) {} in SyncedWindowDelegateAndroid()
Dsynced_window_delegate_android.h20 explicit SyncedWindowDelegateAndroid(TabModel* tab_model);
/external/chromium_org/chrome/browser/ui/tabs/
Dpinned_tab_codec.cc33 TabStripModel* tab_model = browser->tab_strip_model(); in HasPinnedTabs() local
34 for (int i = 0; i < tab_model->count(); ++i) { in HasPinnedTabs()
35 if (tab_model->IsTabPinned(i)) in HasPinnedTabs()
82 TabStripModel* tab_model = browser->tab_strip_model(); in EncodePinnedTabs() local
83 for (int i = 0; i < tab_model->count() && tab_model->IsTabPinned(i); ++i) in EncodePinnedTabs()
84 EncodePinnedTab(tab_model, i, values); in EncodePinnedTabs()
/external/chromium_org/chrome/browser/sessions/
Dsession_restore_android.cc29 TabModel* tab_model = TabModelList::GetTabModelWithProfile(profile); in RestoreForeignSessionTab() local
30 DCHECK(tab_model); in RestoreForeignSessionTab()
50 tab_model->CreateTab(new_web_contents); in RestoreForeignSessionTab()
/external/chromium_org/chrome/browser/profile_resetter/
Dprofile_resetter.cc239 TabStripModel* tab_model = it->tab_strip_model(); in ResetPinnedTabs() local
243 for (int i = tab_model->count() - 1; i >= 0; --i) { in ResetPinnedTabs()
244 if (tab_model->IsTabPinned(i) && !tab_model->IsAppTab(i)) in ResetPinnedTabs()
245 tab_model->SetTabPinned(i, false); in ResetPinnedTabs()
/external/chromium_org/chrome/browser/android/
Ddev_tools_server.cc298 TabModel* tab_model = TabModelList::GetTabModelWithProfile(profile); in CreateNewTarget() local
299 if (!tab_model) in CreateNewTarget()
301 WebContents* web_contents = tab_model->CreateNewTabForDevTools(url); in CreateNewTarget()
305 for (int i = 0; i < tab_model->GetTabCount(); ++i) { in CreateNewTarget()
306 if (web_contents != tab_model->GetWebContentsAt(i)) in CreateNewTarget()
308 TabAndroid* tab = tab_model->GetTabAt(i); in CreateNewTarget()
/external/chromium_org/chrome/browser/ui/
Dbrowser_instant_controller.cc231 TabStripModel* tab_model = browser_->tab_strip_model(); in ReloadTabsInInstantProcess() local
232 int count = tab_model->count(); in ReloadTabsInInstantProcess()
234 content::WebContents* contents = tab_model->GetWebContentsAt(index); in ReloadTabsInInstantProcess()
/external/chromium_org/chrome/browser/ui/webui/
Dhistory_ui.cc636 const TabModel* tab_model = in HandleClearBrowsingData() local
638 if (tab_model) in HandleClearBrowsingData()
639 tab_model->OpenClearBrowsingData(); in HandleClearBrowsingData()
/external/chromium_org/chrome/
Dchrome_browser_ui.gypi118 'browser/ui/android/tab_model/tab_model.cc',
119 'browser/ui/android/tab_model/tab_model.h',
120 'browser/ui/android/tab_model/tab_model_list.cc',
121 'browser/ui/android/tab_model/tab_model_list.h',
Dchrome_tests_unit.gypi1414 'browser/ui/android/tab_model/tab_model_unittest.cc',