Home | History | Annotate | Download | only in extensions

Lines Matching refs:browser

5 #include "chrome/browser/extensions/extension_install_ui.h"
15 #include "chrome/browser/extensions/extension_install_dialog.h"
16 #include "chrome/browser/extensions/theme_installed_infobar_delegate.h"
17 #include "chrome/browser/platform_util.h"
18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/tabs/tab_strip_model.h"
20 #include "chrome/browser/themes/theme_service_factory.h"
21 #include "chrome/browser/ui/browser.h"
22 #include "chrome/browser/ui/browser_dialogs.h"
23 #include "chrome/browser/ui/browser_list.h"
24 #include "chrome/browser/ui/browser_window.h"
30 #include "content/browser/tab_contents/tab_contents.h"
38 #include "chrome/browser/extensions/gtk_theme_installed_infobar_delegate.h"
39 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
69 // with |app_id|. If a NTP already exists on the active |browser|, this will
72 void ShowAppInstalledAnimation(Browser* browser, const std::string& app_id) {
75 for (int i = 0; i < browser->tab_count(); ++i) {
76 TabContents* tab_contents = browser->GetTabContentsAt(i);
79 browser->ActivateTabAt(i, false);
87 browser->AddSelectedTabWithURL(GURL(url), PageTransition::TYPED);
160 Browser* browser = Browser::GetOrCreateTabbedBrowser(profile);
161 if (browser->tab_count() == 0)
162 browser->AddBlankTab(true);
163 browser->window()->Show();
166 ShowAppInstalledAnimation(browser, extension->id());
170 browser::ShowExtensionInstalledBubble(extension, browser, icon_, profile);
176 Browser* browser = BrowserList::GetLastActiveWithProfile(profile_);
178 browser ? browser->window()->GetNativeHandle() : NULL,
225 // Get last active normal browser of profile.
226 Browser* browser = BrowserList::FindBrowserWithType(profile,
227 Browser::TYPE_NORMAL,
229 if (!browser)
232 TabContents* tab_contents = browser->GetSelectedTabContents();