Home
last modified time | relevance | path

Searched refs:BrowserList (Results 1 – 25 of 241) sorted by relevance

12345678910

/external/chromium/chrome/browser/ui/
Dbrowser_list.cc77 for (BrowserList::const_iterator browser_iterator = BrowserList::begin(); in LogBrowserTabCount()
78 browser_iterator != BrowserList::end(); browser_iterator++) { in LogBrowserTabCount()
87 Browser* browser = BrowserList::GetLastActive(); in LogBrowserTabCount()
161 BrowserList::BrowserVector BrowserList::browsers_;
162 ObserverList<BrowserList::Observer> BrowserList::observers_;
165 void BrowserList::AddBrowser(Browser* browser) { in AddBrowser()
188 void BrowserList::MarkAsCleanShutdown() { in MarkAsCleanShutdown()
196 void BrowserList::NotifyWindowManagerAboutSignout() { in NotifyWindowManagerAboutSignout()
207 bool BrowserList::signout_ = false;
212 void BrowserList::NotifyAndTerminate(bool fast_path) { in NotifyAndTerminate()
[all …]
Dbrowser_init_browsertest.cc34 ASSERT_EQ(1u, BrowserList::GetBrowserCount(browser()->profile())); in LoadApp()
46 ASSERT_EQ(2u, BrowserList::GetBrowserCount(browser()->profile())); in FindOneOtherBrowser()
50 for (BrowserList::const_iterator i = BrowserList::begin(); in FindOneOtherBrowser()
51 i != BrowserList::end() && !other_browser; ++i) { in FindOneOtherBrowser()
61 class OpenURLsPopupObserver : public BrowserList::Observer {
87 BrowserList::AddObserver(&observer); in IN_PROC_BROWSER_TEST_F()
100 BrowserList::RemoveObserver(&observer); in IN_PROC_BROWSER_TEST_F()
178 ASSERT_EQ(2u, BrowserList::GetBrowserCount(browser()->profile())); in IN_PROC_BROWSER_TEST_F()
Dbrowser_navigator_browsertest.cc59 EXPECT_EQ(1u, BrowserList::size()); in RunSuppressTest()
86 EXPECT_EQ(1u, BrowserList::size()); in IN_PROC_BROWSER_TEST_F()
109 EXPECT_EQ(1u, BrowserList::size()); in IN_PROC_BROWSER_TEST_F()
136 EXPECT_EQ(1u, BrowserList::size()); in IN_PROC_BROWSER_TEST_F()
201 EXPECT_EQ(2u, BrowserList::size()); in IN_PROC_BROWSER_TEST_F()
235 EXPECT_EQ(3u, BrowserList::size()); in IN_PROC_BROWSER_TEST_F()
261 EXPECT_EQ(2u, BrowserList::size()); in IN_PROC_BROWSER_TEST_F()
284 EXPECT_EQ(3u, BrowserList::size()); in IN_PROC_BROWSER_TEST_F()
307 EXPECT_EQ(3u, BrowserList::size()); in IN_PROC_BROWSER_TEST_F()
335 EXPECT_EQ(4u, BrowserList::size()); in IN_PROC_BROWSER_TEST_F()
[all …]
/external/chromium_org/chrome/browser/ui/
Dbrowser_list.cc33 BrowserList::observers_ = LAZY_INSTANCE_INITIALIZER;
36 BrowserList* BrowserList::native_instance_ = NULL;
37 BrowserList* BrowserList::ash_instance_ = NULL;
42 Browser* BrowserList::GetLastActive() const { in GetLastActive()
49 BrowserList* BrowserList::GetInstance(chrome::HostDesktopType type) { in GetInstance()
50 BrowserList** list = NULL; in GetInstance()
58 *list = new BrowserList; in GetInstance()
63 void BrowserList::AddBrowser(Browser* browser) { in AddBrowser()
66 BrowserList* browser_list = GetInstance(browser->host_desktop_type()); in AddBrowser()
81 void BrowserList::RemoveBrowser(Browser* browser) { in RemoveBrowser()
[all …]
Dbrowser_iterator_unittest.cc52 BrowserList* native_list = in TEST_F()
53 BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_NATIVE); in TEST_F()
58 BrowserList* ash_list = in TEST_F()
59 BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_ASH); in TEST_F()
79 BrowserList* native_list = in TEST_F()
80 BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_NATIVE); in TEST_F()
85 BrowserList* ash_list = in TEST_F()
86 BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_ASH); in TEST_F()
103 BrowserList* ash_list = in TEST_F()
104 BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_ASH); in TEST_F()
[all …]
Dbrowser_list.h24 class BrowserList {
54 static BrowserList* GetInstance(chrome::HostDesktopType type);
86 BrowserList();
87 ~BrowserList();
104 static BrowserList* native_instance_;
105 static BrowserList* ash_instance_;
107 DISALLOW_COPY_AND_ASSIGN(BrowserList);
Dbrowser_finder.cc79 BrowserList* browser_list_impl = BrowserList::GetInstance(desktop_type); in FindBrowserWithTabbedOrAnyType()
103 BrowserList* browser_list_impl = BrowserList::GetInstance(desktop_type); in GetBrowserCountImpl()
106 for (BrowserList::const_iterator i = browser_list_impl->begin(); in GetBrowserCountImpl()
171 BrowserList* list = BrowserList::GetInstance(type); in FindLastActiveWithProfile()
179 BrowserList* browser_list_impl = BrowserList::GetInstance(type); in FindLastActiveWithHostDesktopType()
189 count += BrowserList::GetInstance(t)->size(); in GetTotalBrowserCount()
/external/chromium/chrome/browser/extensions/
Dextension_management_apitest.cc18 for (BrowserList::const_iterator it = BrowserList::begin(); in FindOtherBrowser()
19 it != BrowserList::end(); ++it) { in FindOtherBrowser()
89 ASSERT_EQ(2u, BrowserList::GetBrowserCount(browser()->profile())); in IN_PROC_BROWSER_TEST_F()
100 ASSERT_EQ(1u, BrowserList::GetBrowserCount(browser()->profile())); in IN_PROC_BROWSER_TEST_F()
118 ASSERT_EQ(2u, BrowserList::GetBrowserCount(browser()->profile())); in IN_PROC_BROWSER_TEST_F()
135 ASSERT_EQ(1u, BrowserList::GetBrowserCount(browser()->profile())); in IN_PROC_BROWSER_TEST_F()
144 ASSERT_EQ(1u, BrowserList::GetBrowserCount(browser()->profile())); in IN_PROC_BROWSER_TEST_F()
149 ASSERT_EQ(1u, BrowserList::GetBrowserCount(browser()->profile())); in IN_PROC_BROWSER_TEST_F()
166 ASSERT_EQ(1u, BrowserList::GetBrowserCount(browser()->profile())); in IN_PROC_BROWSER_TEST_F()
171 ASSERT_EQ(2u, BrowserList::GetBrowserCount(browser()->profile())); in IN_PROC_BROWSER_TEST_F()
Dwindow_open_apitest.cc30 if (BrowserList::GetBrowserCount(browser->profile()) < num_browsers || in WaitForTabsAndPopups()
36 ASSERT_EQ(num_browsers, BrowserList::GetBrowserCount(browser->profile())); in WaitForTabsAndPopups()
39 for (BrowserList::const_iterator iter = BrowserList::begin(); in WaitForTabsAndPopups()
40 iter != BrowserList::end(); ++iter) { in WaitForTabsAndPopups()
/external/chromium/chrome/browser/chromeos/
Dtab_closeable_state_watcher_browsertest.cc197 EXPECT_EQ(1u, BrowserList::size()); in IN_PROC_BROWSER_TEST_F()
198 EXPECT_EQ(browser(), *(BrowserList::begin())); in IN_PROC_BROWSER_TEST_F()
218 EXPECT_EQ(1u, BrowserList::size()); in IN_PROC_BROWSER_TEST_F()
219 EXPECT_EQ(browser(), *(BrowserList::begin())); in IN_PROC_BROWSER_TEST_F()
236 EXPECT_EQ(2u, BrowserList::size()); in IN_PROC_BROWSER_TEST_F()
243 EXPECT_EQ(1u, BrowserList::size()); in IN_PROC_BROWSER_TEST_F()
244 EXPECT_EQ(browser(), *(BrowserList::begin())); in IN_PROC_BROWSER_TEST_F()
256 EXPECT_EQ(2u, BrowserList::size()); in IN_PROC_BROWSER_TEST_F()
261 EXPECT_EQ(1u, BrowserList::size()); in IN_PROC_BROWSER_TEST_F()
262 EXPECT_EQ(incognito_browser, *(BrowserList::begin())); in IN_PROC_BROWSER_TEST_F()
[all …]
/external/chromium/chrome/browser/ui/webui/
Dmediaplayer_browsertest.cc29 for (BrowserList::const_iterator it = BrowserList::begin(); in IsPlayerVisible()
30 it != BrowserList::end(); ++it) { in IsPlayerVisible()
45 for (BrowserList::const_iterator it = BrowserList::begin(); in IsPlaylistVisible()
46 it != BrowserList::end(); ++it) { in IsPlaylistVisible()
Dhtml_dialog_tab_contents_delegate_unittest.cc72 EXPECT_EQ(1U, BrowserList::size()); in TEST_F()
81 EXPECT_EQ(1U, BrowserList::size()); in TEST_F()
91 EXPECT_EQ(1U, BrowserList::size()); in TEST_F()
105 EXPECT_EQ(1U, BrowserList::size()); in TEST_F()
/external/chromium/chrome/browser/chromeos/panels/
Dpanel_browsertest.cc52 for (BrowserList::const_iterator i = BrowserList::begin(); in IN_PROC_BROWSER_TEST_F()
53 i != BrowserList::end() && !new_browser; ++i) { in IN_PROC_BROWSER_TEST_F()
90 for (BrowserList::const_iterator i = BrowserList::begin(); in IN_PROC_BROWSER_TEST_F()
91 i != BrowserList::end() && !new_browser; ++i) { in IN_PROC_BROWSER_TEST_F()
/external/chromium/chrome/browser/chromeos/status/
Dwindow_switcher_button.cc21 BrowserList::const_iterator iter; in GetNormalBrowserCount()
22 for (iter = BrowserList::begin(); iter != BrowserList::end(); ++iter) { in GetNormalBrowserCount()
37 BrowserList::AddObserver(this); in WindowSwitcherButton()
41 BrowserList::RemoveObserver(this); in ~WindowSwitcherButton()
/external/chromium_org/chrome/browser/ui/ash/launcher/
Dbrowser_shortcut_launcher_item_controller.cc84 const BrowserList* ash_browser_list = in UpdateBrowserItemState()
85 BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_ASH); in UpdateBrowserItemState()
86 for (BrowserList::const_reverse_iterator it = in UpdateBrowserItemState()
102 const BrowserList* ash_browser_list = in IsOpen()
103 BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_ASH); in IsOpen()
104 for (BrowserList::const_iterator it = ash_browser_list->begin(); in IsOpen()
155 const BrowserList* ash_browser_list = in GetApplicationList()
156 BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_ASH); in GetApplicationList()
157 for (BrowserList::const_iterator it = ash_browser_list->begin(); in GetApplicationList()
273 const BrowserList* ash_browser_list = in ActivateOrAdvanceToNextBrowser()
[all …]
/external/chromium/chrome/browser/printing/
Dprint_preview_tab_controller_unittest.cc17 BrowserList::SetLastActive(browser()); in TEST_F()
18 ASSERT_TRUE(BrowserList::GetLastActive()); in TEST_F()
21 EXPECT_EQ(1u, BrowserList::size()); in TEST_F()
60 BrowserList::SetLastActive(browser()); in TEST_F()
61 ASSERT_TRUE(BrowserList::GetLastActive()); in TEST_F()
64 EXPECT_EQ(1u, BrowserList::size()); in TEST_F()
/external/chromium/chrome/browser/
Dbackground_mode_manager.cc62 BrowserList::StartKeepAlive(); in BackgroundModeManager()
172 FROM_HERE, NewRunnableFunction(BrowserList::EndKeepAlive)); in EndKeepAliveForStartup()
193 BrowserList::StartKeepAlive(); in StartBackgroundMode()
214 BrowserList::EndKeepAlive(); in EndBackgroundMode()
327 Browser* browser = BrowserList::GetLastActive(); in ExecuteApplication()
330 browser = BrowserList::GetLastActive(); in ExecuteApplication()
343 BrowserList::CloseAllBrowsersAndExit(); in ExecuteCommand()
358 Browser* browser = BrowserList::GetLastActive(); in GetBrowserWindow()
361 browser = BrowserList::GetLastActive(); in GetBrowserWindow()
Dbrowser_browsertest.cc406 ASSERT_EQ(1u, BrowserList::GetBrowserCount(browser()->profile())); in IN_PROC_BROWSER_TEST_F()
416 ASSERT_EQ(2u, BrowserList::GetBrowserCount(browser()->profile())); in IN_PROC_BROWSER_TEST_F()
420 for (BrowserList::const_iterator i = BrowserList::begin(); in IN_PROC_BROWSER_TEST_F()
421 i != BrowserList::end() && !app_browser; ++i) { in IN_PROC_BROWSER_TEST_F()
533 ASSERT_EQ(2u, BrowserList::GetBrowserCount(browser()->profile())); in IN_PROC_BROWSER_TEST_F()
537 for (BrowserList::const_iterator i = BrowserList::begin(); in IN_PROC_BROWSER_TEST_F()
538 i != BrowserList::end() && !new_browser; ++i) { in IN_PROC_BROWSER_TEST_F()
641 ASSERT_EQ(2u, BrowserList::GetBrowserCount(browser()->profile())); in IN_PROC_BROWSER_TEST_F()
645 for (BrowserList::const_iterator i = BrowserList::begin(); in IN_PROC_BROWSER_TEST_F()
646 i != BrowserList::end() && !new_browser; ++i) { in IN_PROC_BROWSER_TEST_F()
[all …]
Dbackground_mode_manager_unittest.cc44 EXPECT_FALSE(BrowserList::WillKeepAlive()); in TEST_F()
48 EXPECT_TRUE(BrowserList::WillKeepAlive()); in TEST_F()
50 EXPECT_FALSE(BrowserList::WillKeepAlive()); in TEST_F()
/external/chromium_org/chrome/browser/ui/tab_contents/
Dtab_contents_iterator_unittest.cc40 BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_NATIVE)->size()); in TEST_F()
61 BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_NATIVE)->size()); in TEST_F()
64 BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_NATIVE)->size()); in TEST_F()
66 BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_ASH)->size()); in TEST_F()
99 BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_NATIVE)->size()); in TEST_F()
116 BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_NATIVE)->size()); in TEST_F()
119 BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_NATIVE)->size()); in TEST_F()
121 BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_ASH)->size()); in TEST_F()
/external/chromium/chrome/browser/debugger/
Dbrowser_list_tabcontents_provider.cc13 for (BrowserList::const_iterator it = BrowserList::begin(), in GetInspectableTabs()
14 end = BrowserList::end(); it != end; ++it) { in GetInspectableTabs()
/external/chromium_org/chrome/browser/profiles/
Dprofile_window.cc35 BrowserList::AddObserver(this); in BrowserAddedObserver()
38 BrowserList::RemoveObserver(this); in ~BrowserAddedObserver()
77 if (BrowserList::GetInstance(desktop_type)->size() == 0) in OpenBrowserWindowForProfile()
176 BrowserList::CloseAllBrowsersWithProfile(profile); in CloseGuestProfileWindows()
188 BrowserList::CloseAllBrowsersWithProfile(profile); in LockProfile()
Dprofile_list_desktop_browsertest.cc64 BrowserList* browser_list = in IN_PROC_BROWSER_TEST_F()
65 BrowserList::GetInstance(chrome::GetActiveDesktop()); in IN_PROC_BROWSER_TEST_F()
113 BrowserList* browser_list = in IN_PROC_BROWSER_TEST_F()
114 BrowserList::GetInstance(chrome::GetActiveDesktop()); in IN_PROC_BROWSER_TEST_F()
/external/chromium/chrome/browser/tabs/
Dtab_finder.cc95 for (BrowserList::const_iterator i = BrowserList::begin(); in FindTab()
96 i != BrowserList::end(); ++i) { in FindTab()
130 for (BrowserList::const_iterator i = BrowserList::begin(); in Init()
131 i != BrowserList::end(); ++i) { in Init()
Dpinned_tab_service.cc15 for (BrowserList::const_iterator i = BrowserList::begin(); in IsLastNormalBrowser()
16 i != BrowserList::end(); ++i) { in IsLastNormalBrowser()

12345678910