Searched refs:tab_strip (Results 1 - 25 of 48) sorted by relevance

12

/external/chromium_org/chrome/browser/ui/views/tabs/
H A Dtab_strip_observer.cc7 void TabStripObserver::TabStripAddedTabAt(TabStrip* tab_strip, int index) { argument
10 void TabStripObserver::TabStripMovedTab(TabStrip* tab_strip, argument
15 void TabStripObserver::TabStripRemovedTabAt(TabStrip* tab_strip, int index) { argument
18 void TabStripObserver::TabStripDeleted(TabStrip* tab_strip) { argument
H A Dtab_strip_observer.h25 // A new tab was added to |tab_strip| at |index|.
26 virtual void TabStripAddedTabAt(TabStrip* tab_strip, int index);
28 // The tab at |from_index| was moved to |to_index| in |tab_strip|.
29 virtual void TabStripMovedTab(TabStrip* tab_strip,
33 // The tab at |index| was removed from |tab_strip|.
34 virtual void TabStripRemovedTabAt(TabStrip* tab_strip, int index);
38 virtual void TabStripDeleted(TabStrip* tab_strip);
H A Dtab_drag_controller_interactive_uitest_win.cc20 #include "chrome/browser/ui/views/tabs/tab_strip.h"
51 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
54 gfx::Point tab_1_center(GetCenterInScreenCoordinates(tab_strip->tab_at(1)));
58 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
64 EXPECT_FALSE(tab_strip->IsDragSessionActive());
75 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
86 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
92 tab_0_center.y() + tab_strip->height() + 20)));
106 ASSERT_FALSE(tab_strip->IsDragSessionActive());
116 TabStrip* tab_strip local
148 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
174 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
204 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
229 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
264 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
313 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
[all...]
H A Dtab_drag_controller_interactive_uitest.cc26 #include "chrome/browser/ui/views/tabs/tab_strip.h"
163 void TabDragControllerTest::StopAnimating(TabStrip* tab_strip) { argument
164 tab_strip->StopAnimating(true);
197 int GetDetachY(TabStrip* tab_strip) { argument
200 tab_strip->height() + 1;
306 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
307 gfx::Point tab_1_center(GetCenterInScreenCoordinates(tab_strip->tab_at(1)));
311 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
320 EXPECT_FALSE(tab_strip->IsDragSessionActive());
326 TabStrip* tab_strip local
541 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
588 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
670 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
737 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
784 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
824 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
870 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
919 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
969 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
1022 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
1082 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
1157 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
1213 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
1269 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
1340 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
1369 DragInMaximizedWindowStep2(DetachToBrowserTabDragControllerTest* test, Browser* browser, TabStrip* tab_strip, const BrowserList* browser_list) argument
1399 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
1484 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
1557 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
1607 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
1671 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
1737 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
1892 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
1944 CancelDragTabToWindowInSeparateDisplayStep3( TabStrip* tab_strip, const BrowserList* browser_list) argument
1958 CancelDragTabToWindowInSeparateDisplayStep2( DetachToBrowserInSeparateDisplayAndCancelTabDragControllerTest* test, TabStrip* tab_strip, aura::Window* current_root, gfx::Point final_destination, const BrowserList* browser_list) argument
1986 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
2027 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
2083 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
2141 TabStrip* tab_strip = GetTabStripForBrowser(browser()); local
[all...]
H A Dtab_drag_controller_interactive_uitest.h37 void StopAnimating(TabStrip* tab_strip);
H A Dfake_base_tab_strip_controller.h22 void set_tab_strip(TabStrip* tab_strip) { tab_strip_ = tab_strip; } argument
/external/chromium_org/chrome/browser/ui/startup/
H A Dsession_crashed_infobar_delegate_unittest.cc59 TabStripModel* tab_strip = first_browser->tab_strip_model(); local
60 ASSERT_EQ(1, tab_strip->count());
61 content::WebContents* web_contents = tab_strip->GetWebContentsAt(0);
74 tab_strip->DetachWebContentsAt(0);
75 tab_strip = opened_browser->tab_strip_model();
76 tab_strip->AppendWebContents(web_contents, true);
82 ASSERT_EQ(1, tab_strip->count());
84 InfoBarService::FromWebContents(tab_strip->GetWebContentsAt(0));
91 tab_strip->CloseWebContentsAt(0, TabStripModel::CLOSE_NONE);
H A Dstartup_browser_creator_browsertest.cc220 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
221 ASSERT_EQ(static_cast<int>(urls.size()), tab_strip->count());
223 EXPECT_EQ(urls[i], tab_strip->GetWebContentsAt(i)->GetURL());
228 EXPECT_NE(tab_strip->GetWebContentsAt(0)->GetSiteInstance(),
229 tab_strip->GetWebContentsAt(1)->GetSiteInstance());
412 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
413 EXPECT_EQ(2, tab_strip->count());
416 tab_strip->GetWebContentsAt(0)->GetURL().ExtractFileName());
418 tab_strip->GetWebContentsAt(1)->GetURL().ExtractFileName());
447 TabStripModel* tab_strip local
472 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
498 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
532 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
565 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
642 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
763 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
867 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
968 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
1027 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
1108 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
1149 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
1191 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
1239 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
1286 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
1333 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
1376 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
1433 TabStripModel* tab_strip = new_browser->tab_strip_model(); local
[all...]
/external/chromium_org/chrome/browser/ui/tabs/
H A Dtab_menu_model.h18 TabStripModel* tab_strip,
23 void Build(TabStripModel* tab_strip, int index);
H A Dtab_menu_model.cc13 TabStripModel* tab_strip,
16 Build(tab_strip, index);
19 void TabMenuModel::Build(TabStripModel* tab_strip, int index) { argument
21 (tab_strip->IsTabSelected(index) &&
22 tab_strip->selection_model().selected_indices().size() > 1);
28 bool will_pin = tab_strip->WillContextMenuPin(index);
51 const bool is_window = tab_strip->delegate()->GetRestoreTabType() ==
12 TabMenuModel(ui::SimpleMenuModel::Delegate* delegate, TabStripModel* tab_strip, int index) argument
/external/chromium_org/chrome/browser/extensions/
H A Doptions_page_apitest.cc41 TabStripModel* tab_strip = browser()->tab_strip_model(); local
48 tab_strip->GetActiveWebContents(),
55 EXPECT_EQ(2, tab_strip->count());
58 tab_strip->GetWebContentsAt(1)->GetURL());
H A Dextension_tab_util.cc218 // -1 <= index <= tab_strip->count() where -1 invokes the default behavior.
223 TabStripModel* tab_strip = browser->tab_strip_model(); local
225 index = std::min(std::max(index, -1), tab_strip->count());
241 tab_strip = navigate_params.browser->tab_strip_model();
243 tab_strip->GetIndexOfWebContents(navigate_params.target_contents);
245 tab_strip->SetOpenerOfWebContentsAt(new_index, opener);
252 tab_strip,
304 TabStripModel* tab_strip,
315 CreateTabValue(contents, tab_strip, tab_index);
324 TabStripModel* tab_strip local
302 CreateTabValue( WebContents* contents, TabStripModel* tab_strip, int tab_index, const Extension* extension) argument
335 CreateTabValue( WebContents* contents, TabStripModel* tab_strip, int tab_index) argument
424 TabStripModel* tab_strip = it->tab_strip_model(); local
452 GetTabById(int tab_id, Profile* profile, bool include_incognito, Browser** browser, TabStripModel** tab_strip, WebContents** contents, int* tab_index) argument
[all...]
H A Dbrowser_extension_window_controller.cc62 TabStripModel* tab_strip = browser_->tab_strip_model(); local
64 tab_strip->GetWebContentsAt(tab_index), tab_strip, tab_index);
H A Dextension_tab_util_android.cc42 TabStripModel* tab_strip,
59 TabStripModel* tab_strip,
86 TabStripModel** tab_strip,
40 CreateTabValue( WebContents* contents, TabStripModel* tab_strip, int tab_index, const Extension* extension) argument
57 CreateTabValue( WebContents* contents, TabStripModel* tab_strip, int tab_index) argument
82 GetTabById(int tab_id, Profile* profile, bool include_incognito, Browser** browser, TabStripModel** tab_strip, content::WebContents** contents, int* tab_index) argument
H A Dextension_tab_util.h84 TabStripModel* tab_strip,
96 TabStripModel* tab_strip,
118 // Any out parameter (|browser|, |tab_strip|, |contents|, & |tab_index|) may
122 TabStripModel** tab_strip,
/external/chromium_org/chrome/browser/ui/views/ash/
H A Dtab_scrubber.cc16 #include "chrome/browser/ui/views/tabs/tab_strip.h"
40 TabStrip* tab_strip,
44 gfx::Rect tab_bounds = tab_strip->tab_at(index)->bounds();
101 TabStrip* tab_strip = browser_view->tabstrip(); local
103 if (tab_strip->IsAnimating()) {
117 GetStartPoint(tab_strip,
131 tab_strip->AddObserver(this);
136 GetStartPoint(tab_strip,
146 Tab* first_tab = tab_strip->tab_at(0);
148 Tab* last_tab = tab_strip
39 GetStartPoint( TabStrip* tab_strip, int index, TabScrubber::Direction direction) argument
213 TabStripAddedTabAt(TabStrip* tab_strip, int index) argument
221 TabStripMovedTab(TabStrip* tab_strip, int from_index, int to_index) argument
235 TabStripRemovedTabAt(TabStrip* tab_strip, int index) argument
246 TabStripDeleted(TabStrip* tab_strip) argument
270 TabStrip* tab_strip = browser_view->tabstrip(); local
[all...]
H A Dtab_scrubber.h37 static gfx::Point GetStartPoint(TabStrip* tab_strip,
62 virtual void TabStripAddedTabAt(TabStrip* tab_strip, int index) OVERRIDE;
63 virtual void TabStripMovedTab(TabStrip* tab_strip,
66 virtual void TabStripRemovedTabAt(TabStrip* tab_strip, int index) OVERRIDE;
67 virtual void TabStripDeleted(TabStrip* tab_strip) OVERRIDE;
/external/chromium_org/chrome/browser/ui/ash/launcher/
H A Dapp_shortcut_launcher_item_controller.cc132 TabStripModel* tab_strip = browser->tab_strip_model(); local
133 int index = tab_strip->GetIndexOfWebContents(content[i]);
135 tab_strip->CloseWebContentsAt(index, TabStripModel::CLOSE_NONE);
184 TabStripModel* tab_strip = browser->tab_strip_model(); local
185 for (int index = 0; index < tab_strip->count(); index++) {
186 content::WebContents* web_contents = tab_strip->GetWebContentsAt(index);
253 TabStripModel* tab_strip = browser->tab_strip_model(); local
255 int active_index = tab_strip->active_index();
256 for (int index = 0; index < tab_strip->count(); index++) {
257 content::WebContents* web_contents = tab_strip
272 TabStripModel* tab_strip = browser->tab_strip_model(); local
317 TabStripModel* tab_strip = browser->tab_strip_model(); local
335 TabStripModel* tab_strip = browser->tab_strip_model(); local
[all...]
H A Dchrome_launcher_app_menu_item_tab.cc40 TabStripModel* tab_strip = browser->tab_strip_model();
41 int index = tab_strip->GetIndexOfWebContents(web_contents());
44 tab_strip->CloseWebContentsAt(index, TabStripModel::CLOSE_USER_GESTURE);
46 tab_strip->ActivateTabAt(index, false);
H A Dchrome_launcher_app_menu_item_browser.cc39 TabStripModel* tab_strip = browser_->tab_strip_model(); local
40 tab_strip->CloseAllTabs();
H A Dchrome_launcher_controller_browsertest.cc869 TabStripModel* tab_strip = browser()->tab_strip_model(); local
870 int tab_count = tab_strip->count();
874 EXPECT_EQ(++tab_count, tab_strip->count());
876 WebContents* tab = tab_strip->GetActiveWebContents();
880 EXPECT_EQ(--tab_count, tab_strip->count());
886 TabStripModel* tab_strip = browser()->tab_strip_model(); local
887 int tab_count = tab_strip->count();
890 EXPECT_EQ(++tab_count, tab_strip->count());
893 WebContents* tab = tab_strip->GetActiveWebContents();
897 EXPECT_EQ(--tab_count, tab_strip
904 TabStripModel* tab_strip = browser()->tab_strip_model(); local
927 TabStripModel* tab_strip = browser2->tab_strip_model(); local
946 TabStripModel* tab_strip = browser()->tab_strip_model(); local
963 TabStripModel* tab_strip = browser()->tab_strip_model(); local
981 TabStripModel* tab_strip = browser()->tab_strip_model(); local
1097 TabStripModel* tab_strip = browser()->tab_strip_model(); local
1132 TabStripModel* tab_strip = browser()->tab_strip_model(); local
1170 TabStripModel* tab_strip = browser()->tab_strip_model(); local
1199 TabStripModel* tab_strip = browser()->tab_strip_model(); local
1242 TabStripModel* tab_strip = browser()->tab_strip_model(); local
1317 TabStripModel* tab_strip = browser()->tab_strip_model(); local
1570 TabStripModel* tab_strip = browser()->tab_strip_model(); local
1964 TabStripModel* tab_strip = browser()->tab_strip_model(); local
[all...]
/external/chromium_org/chrome/browser/supervised_user/
H A Dsupervised_user_browsertest.cc165 explicit MockTabStripModelObserver(TabStripModel* tab_strip) argument
166 : tab_strip_(tab_strip) {
205 TabStripModel* tab_strip = browser()->tab_strip_model(); local
206 WebContents* prev_tab = tab_strip->GetActiveWebContents();
215 WebContents* tab = tab_strip->GetActiveWebContents();
220 MockTabStripModelObserver observer(tab_strip);
222 TabClosingAt(tab_strip, tab, tab_strip->active_index()));
224 EXPECT_EQ(prev_tab, tab_strip->GetActiveWebContents());
/external/chromium_org/chrome/browser/ui/views/frame/
H A Dbrowser_view_layout.h53 TabStrip* tab_strip,
61 void set_tab_strip(TabStrip* tab_strip) { argument
62 tab_strip_ = tab_strip;
/external/chromium_org/chrome/browser/ui/
H A Dbrowser_tabrestore.cc159 TabStripModel* tab_strip = browser->tab_strip_model(); local
160 int insertion_index = tab_strip->active_index();
161 tab_strip->InsertWebContentsAt(insertion_index + 1,
165 tab_strip->CloseWebContentsAt(insertion_index, TabStripModel::CLOSE_NONE);
/external/chromium_org/chrome/browser/ui/webui/extensions/
H A Dextension_error_ui_util.cc190 TabStripModel* tab_strip = browser->tab_strip_model();
191 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(web_contents),

Completed in 946 milliseconds

12