Searched refs:tab_strip_model (Results 1 - 25 of 411) sorted by relevance

1234567891011>>

/external/chromium_org/chrome/browser/ui/views/frame/
H A Dbrowser_shutdown.cc9 #include "chrome/browser/ui/tabs/tab_strip_model.h"
14 while (browser->tab_strip_model()->count())
15 contents.push_back(browser->tab_strip_model()->DetachWebContentsAt(0));
/external/chromium_org/chrome/browser/ui/webui/
H A Dbookmarks_ui_browsertest.cc8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
23 browser()->tab_strip_model()->GetActiveWebContents(), 2);
49 AssertIsBookmarksPage(browser()->tab_strip_model()->GetActiveWebContents());
53 ASSERT_EQ(1, browser()->tab_strip_model()->count());
57 ASSERT_EQ(1, browser()->tab_strip_model()->count());
58 AssertIsBookmarksPage(browser()->tab_strip_model()->GetActiveWebContents());
80 ASSERT_EQ(1, browser()->tab_strip_model()->count());
84 ASSERT_EQ(2, browser()->tab_strip_model()->count());
86 AssertIsBookmarksPage(browser()->tab_strip_model()->GetActiveWebContents());
89 browser()->tab_strip_model()
[all...]
/external/chromium_org/chrome/browser/chromeos/memory/
H A Doom_priority_manager_browsertest.cc11 #include "chrome/browser/ui/tabs/tab_strip_model.h"
59 EXPECT_EQ(3, browser()->tab_strip_model()->count());
82 EXPECT_EQ(3, browser()->tab_strip_model()->count());
87 EXPECT_EQ(3, browser()->tab_strip_model()->count());
88 EXPECT_TRUE(browser()->tab_strip_model()->IsTabDiscarded(0));
89 EXPECT_FALSE(browser()->tab_strip_model()->IsTabDiscarded(1));
90 EXPECT_FALSE(browser()->tab_strip_model()->IsTabDiscarded(2));
95 EXPECT_EQ(3, browser()->tab_strip_model()->count());
96 EXPECT_TRUE(browser()->tab_strip_model()->IsTabDiscarded(0));
97 EXPECT_TRUE(browser()->tab_strip_model()
[all...]
/external/chromium_org/chrome/browser/printing/
H A Dprint_preview_dialog_controller_unittest.cc10 #include "chrome/browser/ui/tabs/tab_strip_model.h"
37 EXPECT_EQ(0, browser()->tab_strip_model()->count());
39 EXPECT_EQ(1, browser()->tab_strip_model()->count());
42 WebContents* initiator = browser()->tab_strip_model()->GetActiveWebContents();
55 EXPECT_EQ(1, browser()->tab_strip_model()->count());
63 EXPECT_EQ(1, browser()->tab_strip_model()->count());
75 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
76 ASSERT_TRUE(tab_strip_model);
78 EXPECT_EQ(0, tab_strip_model
[all...]
/external/chromium_org/chrome/browser/ui/sync/
H A Done_click_signin_bubble_links_delegate_browsertest.cc8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
18 int starting_tab_count = browser()->tab_strip_model()->count();
23 int tab_count = browser()->tab_strip_model()->count();
32 int starting_tab_count = browser()->tab_strip_model()->count();
37 int tab_count = browser()->tab_strip_model()->count();
H A Dbrowser_synced_window_delegate.cc13 #include "chrome/browser/ui/tabs/tab_strip_model.h"
45 for (int i = 0; i < browser_->tab_strip_model()->count(); i++) {
48 return browser_->tab_strip_model()->IsTabPinned(i);
58 browser_->tab_strip_model()->GetWebContentsAt(index));
74 return browser_->tab_strip_model()->count();
78 return browser_->tab_strip_model()->active_index();
/external/chromium_org/chrome/browser/ui/tab_contents/
H A Dtab_contents_iterator.cc10 #include "chrome/browser/ui/tabs/tab_strip_model.h"
25 if (++web_view_index_ >= browser_iterator_->tab_strip_model()->count()) {
32 content::WebContents* next_tab = browser_iterator_->tab_strip_model()
/external/chromium_org/chrome/browser/chromeos/accessibility/
H A Dsticky_keys_browsertest.cc12 #include "chrome/browser/ui/tabs/tab_strip_model.h"
89 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
92 EXPECT_EQ(tab_count, tab_strip_model->count());
99 EXPECT_EQ(tab_count, tab_strip_model->count());
106 EXPECT_EQ(tab_count, tab_strip_model->count());
112 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
114 EXPECT_EQ(tab_count, tab_strip_model->count());
120 EXPECT_EQ(++tab_count, tab_strip_model
[all...]
/external/chromium_org/chrome/browser/download/
H A Ddownload_started_animation_browsertest.cc8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
23 browser()->tab_strip_model()->GetActiveWebContents();
/external/chromium_org/chrome/browser/ui/
H A Dbrowser_toolbar_model_delegate.cc8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
19 return browser_->tab_strip_model()->GetActiveWebContents();
H A Dbrowser_navigator_browsertest.cc22 #include "chrome/browser/ui/tabs/tab_strip_model.h"
100 EXPECT_EQ(browser()->tab_strip_model()->GetActiveWebContents(),
104 EXPECT_EQ(2, browser()->tab_strip_model()->count());
130 browser()->tab_strip_model()->GetActiveWebContents();
139 GURL old_url = browser()->tab_strip_model()->GetActiveWebContents()->GetURL();
145 EXPECT_EQ(1, browser()->tab_strip_model()->count());
148 browser()->tab_strip_model()->GetActiveWebContents()->GetURL());
155 EXPECT_EQ(1, browser()->tab_strip_model()->count());
156 EXPECT_EQ(1, incognito_browser->tab_strip_model()->count());
168 EXPECT_EQ(2, browser()->tab_strip_model()
[all...]
H A Dbrowser_unittest.cc8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
39 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
41 // Start with a single foreground tab. |tab_strip_model| owns the memory.
43 tab_strip_model->AppendWebContents(contents1, true);
46 EXPECT_TRUE(tab_strip_model->IsTabSelected(0));
51 tab_strip_model->AppendWebContents(contents2, false);
54 EXPECT_EQ(2, browser()->tab_strip_model()->count());
55 EXPECT_TRUE(tab_strip_model->IsTabSelected(0));
63 tab_strip_model
[all...]
/external/chromium_org/chrome/browser/ui/search/
H A Dsearch_delegate_unittest.cc8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
22 browser()->tab_strip_model()->GetWebContentsAt(0);
30 browser()->tab_strip_model()->ActivateTabAt(1, true);
31 web_contents = browser()->tab_strip_model()->GetWebContentsAt(1);
38 web_contents = browser()->tab_strip_model()->GetWebContentsAt(0);
/external/chromium_org/chrome/browser/
H A Dbrowser_commands_unittest.cc11 #include "chrome/browser/ui/tabs/tab_strip_model.h"
39 browser()->tab_strip_model()->ActivateTabAt(1, false);
45 ASSERT_EQ(0, browser()->tab_strip_model()->active_index());
49 ASSERT_EQ(1, browser()->tab_strip_model()->active_index());
53 ASSERT_EQ(0, browser()->tab_strip_model()->active_index());
57 ASSERT_EQ(2, browser()->tab_strip_model()->active_index());
72 browser()->tab_strip_model()->GetWebContentsAt(0)->GetController();
88 ASSERT_EQ(2, browser()->tab_strip_model()->count());
92 browser()->tab_strip_model()->GetWebContentsAt(1)->GetController();
109 browser()->tab_strip_model()
234 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
259 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
278 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
295 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
313 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
[all...]
H A Ddo_not_track_browsertest.cc10 #include "chrome/browser/ui/tabs/tab_strip_model.h"
30 browser()->tab_strip_model()->GetActiveWebContents(),
51 browser()->tab_strip_model()->GetActiveWebContents(),
65 browser()->tab_strip_model()->GetActiveWebContents()));
69 browser()->tab_strip_model()->GetActiveWebContents(),
79 browser()->tab_strip_model()->GetActiveWebContents(),
/external/chromium_org/chrome/browser/extensions/
H A Dweb_contents_browsertest.cc7 #include "chrome/browser/ui/tabs/tab_strip_model.h"
25 browser()->tab_strip_model()->GetActiveWebContents(),
38 browser()->tab_strip_model()->GetActiveWebContents(),
/external/chromium_org/chrome/browser/ui/bookmarks/
H A Dbookmark_bubble_sign_in_delegate_unittest.cc15 #include "chrome/browser/ui/tabs/tab_strip_model.h"
69 int starting_tab_count = browser()->tab_strip_model()->count();
77 int tab_count = browser()->tab_strip_model()->count();
93 int starting_tab_count_normal = browser()->tab_strip_model()->count();
95 incognito_browser.get()->tab_strip_model()->count();
104 int tab_count_normal = browser()->tab_strip_model()->count();
111 int tab_count_incognito = incognito_browser->tab_strip_model()->count();
131 int starting_tab_count = extra_browser->tab_strip_model()->count();
138 browser()->tab_strip_model()->CloseAllTabs();
145 int tab_count = extra_browser->tab_strip_model()
[all...]
/external/chromium_org/chrome/browser/ui/views/translate/
H A Dtranslate_bubble_view_browsertest.cc14 #include "chrome/browser/ui/tabs/tab_strip_model.h"
45 browser()->tab_strip_model()->GetActiveWebContents();
69 browser()->tab_strip_model()->GetActiveWebContents();
82 EXPECT_EQ(1, browser()->tab_strip_model()->count());
91 int active_index = browser()->tab_strip_model()->active_index();
98 EXPECT_EQ(active_index, browser()->tab_strip_model()->active_index());
99 EXPECT_EQ(2, browser()->tab_strip_model()->count());
103 browser()->tab_strip_model()->GetWebContentsAt(french_index);
116 EXPECT_EQ(active_index, browser()->tab_strip_model()->active_index());
117 EXPECT_EQ(1, browser()->tab_strip_model()
[all...]
/external/chromium_org/chrome/browser/sessions/
H A Dtab_restore_browsertest.cc21 #include "chrome/browser/ui/tabs/tab_strip_model.h"
103 int starting_tab_count = browser->tab_strip_model()->count();
110 int tab_count = browser->tab_strip_model()->count();
117 browser()->tab_strip_model()->GetWebContentsAt(index));
118 browser()->tab_strip_model()->CloseWebContentsAt(
141 int tab_count = browser->tab_strip_model()->count();
164 EXPECT_EQ(++tab_count, browser->tab_strip_model()->count());
168 ASSERT_GT(browser->tab_strip_model()->count(), expected_tabstrip_index);
172 browser->tab_strip_model()->active_index());
207 int starting_tab_count = browser()->tab_strip_model()
[all...]
H A Dsession_restore_browsertest.cc31 #include "chrome/browser/ui/tabs/tab_strip_model.h"
159 browser->tab_strip_model()->GetActiveWebContents());
166 browser->tab_strip_model()->GetActiveWebContents());
173 ASSERT_EQ(1, browser->tab_strip_model()->count());
214 TabStripModel* tab_strip_model = restored->tab_strip_model(); local
215 const int tabs = tab_strip_model->count();
220 content::WebContents* contents = tab_strip_model->GetWebContentsAt(i);
253 TabStripModel* tab_strip_model = restored->tab_strip_model(); local
1184 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
[all...]
/external/chromium_org/chrome/browser/ui/content_settings/
H A Dcontent_setting_bubble_model_browsertest.cc12 #include "chrome/browser/ui/tabs/tab_strip_model.h"
37 browser()->tab_strip_model()->GetActiveWebContents());
61 browser()->tab_strip_model()->GetActiveWebContents(),
68 browser()->tab_strip_model()->GetActiveWebContents());
88 browser()->tab_strip_model()->GetActiveWebContents(),
94 browser()->tab_strip_model()->GetActiveWebContents());
/external/chromium_org/chrome/browser/captive_portal/
H A Dcaptive_portal_browsertest.cc29 #include "chrome/browser/ui/tabs/tab_strip_model.h"
1022 browser->tab_strip_model()->GetWebContentsAt(index));
1057 EXPECT_EQ(1, browser->tab_strip_model()->count());
1068 GetTabReloader(browser->tab_strip_model()->GetActiveWebContents());
1081 ASSERT_EQ(1, browser->tab_strip_model()->count());
1095 ASSERT_EQ(1, browser->tab_strip_model()->count());
1112 GetTabReloader(browser->tab_strip_model()->GetActiveWebContents());
1120 int active_index = browser->tab_strip_model()->active_index();
1121 int expected_tab_count = browser->tab_strip_model()->count();
1142 browser->tab_strip_model()
1171 TabStripModel* tab_strip_model = browser->tab_strip_model(); local
1252 TabStripModel* tab_strip_model = browser->tab_strip_model(); local
1322 TabStripModel* tab_strip_model = browser->tab_strip_model(); local
1368 TabStripModel* tab_strip_model = browser->tab_strip_model(); local
1414 TabStripModel* tab_strip_model = browser->tab_strip_model(); local
1445 TabStripModel* tab_strip_model = browser->tab_strip_model(); local
1496 TabStripModel* tab_strip_model = browser->tab_strip_model(); local
1673 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
1732 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
1770 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
1816 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
1851 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
1874 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
1946 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
1975 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
2022 TabStripModel* tab_strip_model = browser()->tab_strip_model(); local
[all...]
/external/chromium_org/chrome/browser/ui/views/ash/
H A Dtab_scrubber_browsertest.cc14 #include "chrome/browser/ui/tabs/tab_strip_model.h"
59 browser()->tab_strip_model()->RemoveObserver(this);
84 int active_index = browser->tab_strip_model()->active_index();
113 int active_index = browser->tab_strip_model()->active_index();
155 if (index != browser->tab_strip_model()->active_index()) {
173 ASSERT_EQ(num_tabs + 1, browser->tab_strip_model()->count());
174 ASSERT_EQ(num_tabs, browser->tab_strip_model()->active_index());
183 virtual void TabClosingAt(TabStripModel* tab_strip_model,
199 TabStripModel* tab_strip_model,
207 virtual void TabReplacedAt(TabStripModel* tab_strip_model,
[all...]
/external/chromium_org/chrome/browser/feedback/
H A Dshow_feedback_page.cc12 #include "chrome/browser/ui/tabs/tab_strip_model.h"
21 if (!browser || index >= browser->tab_strip_model()->count())
26 browser->tab_strip_model()->GetWebContentsAt(index);
46 browser->tab_strip_model()->active_index());
/external/chromium_org/chrome/browser/ui/fullscreen/
H A Dfullscreen_controller_browsertest.cc13 #include "chrome/browser/ui/tabs/tab_strip_model.h"
34 WebContents* tab1 = browser()->tab_strip_model()->GetActiveWebContents();
41 browser()->tab_strip_model()->ActivateTabAt(0, true);
47 browser()->tab_strip_model()->ActivateTabAt(1, true);

Completed in 475 milliseconds

1234567891011>>