Home
last modified time | relevance | path

Searched refs:browser_ (Results 1 – 25 of 221) sorted by relevance

123456789

/external/chromium_org/chrome/browser/ui/
Dbrowser_command_controller.cc188 : browser_(browser), in BrowserCommandController()
193 browser_->tab_strip_model()->AddObserver(this); in BrowserCommandController()
257 browser_->tab_strip_model()->RemoveObserver(this); in ~BrowserCommandController()
264 if (browser_->is_app()) in IsReservedCommandOrKey()
357 if (browser_->tab_strip_model()->active_index() == TabStripModel::kNoTab) in ExecuteCommandWithDisposition()
378 GoBack(browser_, disposition); in ExecuteCommandWithDisposition()
381 GoForward(browser_, disposition); in ExecuteCommandWithDisposition()
384 Reload(browser_, disposition); in ExecuteCommandWithDisposition()
387 ClearCache(browser_); in ExecuteCommandWithDisposition()
390 ReloadIgnoringCache(browser_, disposition); in ExecuteCommandWithDisposition()
[all …]
Dbrowser_tab_strip_model_delegate.cc34 : browser_(browser), in BrowserTabStripModelDelegate()
47 chrome::AddTabAt(browser_, url, index, foreground); in AddTabAt()
54 DCHECK(browser_->CanSupportWindowFeature(Browser::FEATURE_TABSTRIP)); in CreateNewStripWithContents()
57 Browser::CreateParams params(browser_->profile(), in CreateNewStripWithContents()
58 browser_->host_desktop_type()); in CreateNewStripWithContents()
92 (browser_->tab_strip_model()->count() > 1 in GetDragActions()
97 return CanDuplicateTabAt(browser_, index); in CanDuplicateContentsAt()
101 DuplicateTabAt(browser_, index); in DuplicateContentsAt()
108 if (!browser_->profile() || browser_->profile()->IsOffTheRecord()) in CreateHistoricalTab()
112 TabRestoreServiceFactory::GetForProfile(browser_->profile()); in CreateHistoricalTab()
[all …]
Dfast_unload_controller.cc54 : browser_(browser), in FastUnloadController()
59 browser_->tab_strip_model()->AddObserver(this); in FastUnloadController()
63 browser_->tab_strip_model()->RemoveObserver(this); in ~FastUnloadController()
117 browser_->tab_strip_model()->delegate()->CreateHistoricalTab(contents); in BeforeUnloadFired()
150 if (browser_->is_devtools() && in ShouldCloseWindow()
151 DevToolsWindow::HasFiredBeforeUnloadEventForDevToolsBrowser(browser_)) { in ShouldCloseWindow()
184 if (browser_->is_devtools() || !TabsNeedBeforeUnloadFired()) in CallBeforeUnloadHandlers()
207 for (int i = 0; i < browser_->tab_strip_model()->count(); ++i) { in TabsNeedBeforeUnloadFired()
209 browser_->tab_strip_model()->GetWebContentsAt(i); in TabsNeedBeforeUnloadFired()
262 content::Source<Browser>(browser_), in CancelWindowClose()
[all …]
Dbrowser_tab_restore_service_delegate.cc20 browser_->window()->Show(); in ShowBrowserWindow()
24 return browser_->session_id(); in GetSessionID()
28 return browser_->tab_strip_model()->count(); in GetTabCount()
32 return browser_->tab_strip_model()->active_index(); in GetSelectedIndex()
36 return browser_->app_name(); in GetAppName()
41 return browser_->tab_strip_model()->GetWebContentsAt(index); in GetWebContentsAt()
45 return browser_->tab_strip_model()->GetActiveWebContents(); in GetActiveWebContents()
49 return browser_->tab_strip_model()->IsTabPinned(index); in IsTabPinned()
62 return chrome::AddRestoredTab(browser_, navigations, tab_index, in AddRestoredTab()
75 return chrome::ReplaceRestoredTab(browser_, navigations, selected_navigation, in ReplaceRestoredTab()
[all …]
Dbrowser_tab_restorer.cc47 Browser* browser_; member in chrome::__anonc41319920111::BrowserTabRestorer
55 BrowserList::GetInstance(browser_->host_desktop_type())->RemoveObserver(this); in ~BrowserTabRestorer()
69 : browser_(browser), in BrowserTabRestorer()
76 browser_->profile()->SetUserData(kBrowserTabRestorerKey, this); in BrowserTabRestorer()
88 RestoreTab(browser_); in TabRestoreServiceLoaded()
90 browser_->profile()->SetUserData(kBrowserTabRestorerKey, NULL); in TabRestoreServiceLoaded()
95 browser_->profile()->SetUserData(kBrowserTabRestorerKey, NULL); in OnBrowserRemoved()
Dbrowser_content_translate_driver_observer.cc14 Browser* browser) : browser_(browser) { in BrowserContentTranslateDriverObserver()
23 if (source == browser_->tab_strip_model()->GetActiveWebContents()) { in OnIsPageTranslatedChanged()
28 browser_->window()->SetTranslateIconToggled( in OnIsPageTranslatedChanged()
35 if (source == browser_->tab_strip_model()->GetActiveWebContents()) in OnTranslateEnabledChanged()
36 browser_->window()->UpdateToolbar(source); in OnTranslateEnabledChanged()
Dbrowser_content_setting_bubble_model_delegate.cc20 BrowserContentSettingBubbleModelDelegate(Browser* browser) : browser_(browser) { in BrowserContentSettingBubbleModelDelegate()
38 chrome::AddSelectedTabWithURL(browser_, in ShowContentSettingsPage()
43 chrome::ShowSettingsSubPage(browser_, chrome::kHandlerSettingsSubPage); in ShowContentSettingsPage()
46 chrome::ShowContentSettings(browser_, type); in ShowContentSettingsPage()
55 chrome::AddSelectedTabWithURL(browser_, in ShowLearnMorePage()
Dscoped_tabbed_browser_displayer.cc16 browser_ = FindTabbedBrowser(profile, false, type); in ScopedTabbedBrowserDisplayer()
17 if (!browser_) in ScopedTabbedBrowserDisplayer()
18 browser_ = new Browser(Browser::CreateParams(profile, type)); in ScopedTabbedBrowserDisplayer()
22 browser_->window()->Show(); in ~ScopedTabbedBrowserDisplayer()
Dunload_controller.cc25 : browser_(browser), in UnloadController()
28 browser_->tab_strip_model()->AddObserver(this); in UnloadController()
32 browser_->tab_strip_model()->RemoveObserver(this); in ~UnloadController()
114 if (browser_->is_devtools() && in ShouldCloseWindow()
115 DevToolsWindow::HasFiredBeforeUnloadEventForDevToolsBrowser(browser_)) { in ShouldCloseWindow()
149 if (browser_->is_devtools() || HasCompletedUnloadProcessing() || in CallBeforeUnloadHandlers()
168 for (int i = 0; i < browser_->tab_strip_model()->count(); ++i) { in TabsNeedBeforeUnloadFired()
170 browser_->tab_strip_model()->GetWebContentsAt(i); in TabsNeedBeforeUnloadFired()
200 content::Source<Browser>(browser_), in CancelWindowClose()
281 browser_->OnWindowClosing(); in ProcessPendingTabs()
/external/chromium_org/chrome/browser/ui/views/toolbar/
Dbrowser_action_test_util_views.cc30 return GetContainer(browser_)->num_browser_actions(); in NumberOfBrowserActions()
34 return GetContainer(browser_)->VisibleBrowserActions(); in VisibleBrowserActions()
38 return extensions::ExtensionActionManager::Get(browser_->profile())-> in GetExtensionAction()
39 GetBrowserAction(*GetContainer(browser_)->GetBrowserActionViewAt(index)-> in GetExtensionAction()
44 GetContainer(browser_)->GetBrowserActionViewAt(index)-> in InspectPopup()
49 return !GetContainer(browser_)->GetBrowserActionViewAt(index)-> in HasIcon()
54 gfx::ImageSkia icon = GetContainer(browser_)->GetBrowserActionViewAt(index)-> in GetIcon()
60 GetContainer(browser_)->GetBrowserActionViewAt(index)-> in Press()
65 return GetContainer(browser_)->GetBrowserActionViewAt(index)-> in GetExtensionId()
71 GetContainer(browser_)->GetBrowserActionViewAt(index)-> in GetTooltip()
[all …]
Dtoolbar_view.cc132 browser_(browser), in ToolbarView()
142 chrome::AddCommandObserver(browser_, IDC_BACK, this); in ToolbarView()
143 chrome::AddCommandObserver(browser_, IDC_FORWARD, this); in ToolbarView()
144 chrome::AddCommandObserver(browser_, IDC_RELOAD, this); in ToolbarView()
145 chrome::AddCommandObserver(browser_, IDC_HOME, this); in ToolbarView()
146 chrome::AddCommandObserver(browser_, IDC_LOAD_NEW_TAB_PAGE, this); in ToolbarView()
175 browser_, BackForwardMenuModel::BACKWARD_MENU)); in Init()
185 browser_, BackForwardMenuModel::FORWARD_MENU)); in Init()
195 browser_, browser_->profile(), in Init()
196 browser_->command_controller()->command_updater(), this, in Init()
[all …]
/external/chromium_org/chrome/browser/ui/sync/
Dbrowser_synced_window_delegate.cc39 : browser_(browser) {} in BrowserSyncedWindowDelegate()
45 for (int i = 0; i < browser_->tab_strip_model()->count(); i++) { in IsTabPinned()
48 return browser_->tab_strip_model()->IsTabPinned(i); in IsTabPinned()
58 browser_->tab_strip_model()->GetWebContentsAt(index)); in GetTabAt()
66 return browser_->window() != NULL; in HasWindow()
70 return browser_->session_id().id(); in GetSessionId()
74 return browser_->tab_strip_model()->count(); in GetTabCount()
78 return browser_->tab_strip_model()->active_index(); in GetActiveIndex()
82 return browser_->is_app(); in IsApp()
86 return browser_->is_type_tabbed(); in IsTypeTabbed()
[all …]
Done_click_signin_sync_starter.cc109 if (browser == browser_) in OnBrowserRemoved()
110 browser_ = NULL; in OnBrowserRemoved()
125 browser_ = browser; in Initialize()
225 browser_ = EnsureBrowser(browser_, profile_, desktop_type_); in OnRegisteredForPolicy()
227 browser_->tab_strip_model()->GetActiveWebContents(); in OnRegisteredForPolicy()
233 browser_, in OnRegisteredForPolicy()
358 browser_ = EnsureBrowser(browser_, profile_, desktop_type_); in ConfirmAndSignin()
360 browser_->window()->ShowOneClickSigninBubble( in ConfirmAndSignin()
399 chrome::ShowSettingsSubPage(browser_, chrome::kSyncSetupSubPage); in OnSyncConfirmationUIClosed()
491 browser_ = EnsureBrowser(browser_, profile_, desktop_type_); in DisplayFinalConfirmationBubble()
[all …]
/external/chromium_org/chrome/browser/ui/toolbar/
Dwrench_menu_model.cc103 browser_(browser) { in EncodingMenuModel()
113 encoding_menu_controller.GetEncodingMenuItems(browser_->profile(), in Build()
139 browser_->tab_strip_model()->GetActiveWebContents(); in IsCommandIdChecked()
143 return controller.IsItemChecked(browser_->profile(), in IsCommandIdChecked()
148 bool enabled = chrome::IsCommandEnabled(browser_, command_id); in IsCommandIdEnabled()
153 enabled &= chrome::IsCommandEnabled(browser_, IDC_ENCODING_MENU); in IsCommandIdEnabled()
165 chrome::ExecuteCommand(browser_, command_id); in ExecuteCommand()
280 browser_(browser), in WrenchMenuModel()
281 tab_strip_model_(browser_->tab_strip_model()) { in WrenchMenuModel()
329 if (browser_->window() && browser_->window()->IsFullscreen()) in GetLabelForCommandId()
[all …]
/external/chromium_org/chrome/browser/ui/bookmarks/
Dbookmark_bubble_sign_in_delegate.cc16 : browser_(browser), in BookmarkBubbleSignInDelegate()
28 chrome::ShowBrowserSignin(browser_, signin::SOURCE_BOOKMARK_BUBBLE); in OnSignInLinkClicked()
32 if (browser == browser_) in OnBrowserRemoved()
33 browser_ = NULL; in OnBrowserRemoved()
37 if (!browser_) { in EnsureBrowser()
39 browser_ = chrome::FindLastActiveWithProfile(original_profile, in EnsureBrowser()
41 if (!browser_) { in EnsureBrowser()
42 browser_ = new Browser(Browser::CreateParams(original_profile, in EnsureBrowser()
/external/chromium_org/remoting/host/setup/win/
Dauth_code_getter.cc20 browser_(NULL), in AuthCodeGetter()
30 if (browser_) { in GetAuthCode()
35 HRESULT hr = browser_.CreateInstance(CLSID_InternetExplorer, NULL, in GetAuthCode()
44 hr = browser_->Navigate(url, empty_variant.AsInput(), empty_variant.AsInput(), in GetAuthCode()
51 browser_->put_Visible(VARIANT_TRUE); in GetAuthCode()
70 if (!browser_) { in TestBrowserUrl()
74 HRESULT hr = browser_->get_LocationName(url.Receive()); in TestBrowserUrl()
89 if (browser_) { in KillBrowser()
90 browser_->Quit(); in KillBrowser()
91 browser_.Release(); in KillBrowser()
/external/chromium_org/chrome/browser/extensions/
Dbrowser_extension_window_controller.cc20 browser_(browser) { in BrowserExtensionWindowController()
29 return static_cast<int>(browser_->session_id().id()); in GetWindowId()
35 if (browser_->is_type_popup()) in GetWindowTypeText()
37 if (browser_->is_app()) in GetWindowTypeText()
55 extensions::ExtensionTabUtil::CreateTabList(browser_, extension)); in CreateWindowValueWithTabs()
62 TabStripModel* tab_strip = browser_->tab_strip_model(); in CreateTabValue()
71 if (!browser_->window()->IsTabStripEditable()) { in CanClose()
81 if (browser_->window()->IsFullscreen() != is_fullscreen) in SetFullscreenMode()
82 browser_->ToggleFullscreenModeWithExtension(extension_url); in SetFullscreenMode()
86 return browser_; in GetBrowser()
/external/chromium_org/chrome/browser/ui/window_sizer/
Dwindow_sizer_ash.cc18 if (!browser_ || in GetBrowserBoundsAsh()
19 browser_->host_desktop_type() != chrome::HOST_DESKTOP_TYPE_ASH) in GetBrowserBoundsAsh()
24 if (browser_->is_type_tabbed()) { in GetBrowserBoundsAsh()
27 } else if (browser_->is_trusted_source()) { in GetBrowserBoundsAsh()
43 } else if (browser_->is_type_popup() && bounds->origin().IsOrigin()) { in GetBrowserBoundsAsh()
52 if (browser_->is_type_tabbed() && *show_state == ui::SHOW_STATE_DEFAULT) { in GetBrowserBoundsAsh()
74 DCHECK(browser_->is_type_tabbed()); in GetTabbedBrowserBoundsAsh()
91 if (browser_->is_session_restore()) { in GetTabbedBrowserBoundsAsh()
109 browser_->window() ? browser_->window()->GetNativeWindow() : NULL; in GetTabbedBrowserBoundsAsh()
Dwindow_sizer.cc41 : app_name_(app_name), browser_(browser) { in DefaultStateProvider()
52 if (!browser_ || !browser_->profile()->GetPrefs()) in GetPersistentState()
57 chrome::GetWindowName(browser_), browser_->profile()->GetPrefs()); in GetPersistentState()
101 if (browser_ && browser_->window()) { in GetLastActiveWindowState()
102 window = browser_->window(); in GetLastActiveWindowState()
137 const Browser* browser_; member in __anona87e205a0111::DefaultStateProvider
193 browser_(browser) { in WindowSizer()
204 browser_(browser) { in WindowSizer()
422 if (!browser_) in GetWindowDefaultShowState()
427 bool show_state = !browser_->is_type_tabbed() && !browser_->is_devtools(); in GetWindowDefaultShowState()
[all …]
/external/chromium_org/chrome/browser/ui/views/frame/
Dbrowser_view.cc317 Browser* browser_; member in BookmarkExtensionBackground
328 browser_(browser) { in BookmarkExtensionBackground()
336 browser_->host_desktop_type(), toolbar_overlap); in Paint()
345 ThemeServiceFactory::GetForProfile(browser_->profile()); in Paint()
354 if (browser_->bookmark_bar_state() == BookmarkBar::DETACHED) { in Paint()
360 browser_->host_desktop_type(), in Paint()
374 browser_->host_desktop_type(), in Paint()
411 DCHECK_EQ(0, browser_->tab_strip_model()->count()); in ~BrowserView()
416 browser_->tab_strip_model()->RemoveObserver(this); in ~BrowserView()
454 browser_.reset(); in ~BrowserView()
[all …]
Dsystem_menu_model_delegate.cc22 browser_(browser) { in SystemMenuModelDelegate()
31 PrefService* prefs = browser_->profile()->GetPrefs(); in IsCommandIdChecked()
40 if (!chrome::IsCommandEnabled(browser_, command_id)) in IsCommandIdEnabled()
52 TabRestoreServiceFactory::GetForProfile(browser_->profile()); in IsCommandIdEnabled()
76 TabRestoreServiceFactory::GetForProfile(browser_->profile()); in GetLabelForCommandId()
86 chrome::ExecuteCommand(browser_, command_id); in ExecuteCommand()
/external/chromium_org/chrome/browser/ui/ash/launcher/
Dchrome_launcher_app_menu_item_browser.cc22 browser_(browser) { in ChromeLauncherAppMenuItemBrowser()
32 return browser_ == chrome::FindBrowserWithWindow(ash::wm::GetActiveWindow()); in IsActive()
40 if (browser_) { in Execute()
42 TabStripModel* tab_strip = browser_->tab_strip_model(); in Execute()
45 browser_->window()->Show(); in Execute()
46 ash::wm::ActivateWindow(browser_->window()->GetNativeWindow()); in Execute()
57 DCHECK_EQ(browser_, content::Source<Browser>(source).ptr()); in Observe()
58 browser_ = NULL; in Observe()
/external/chromium_org/chrome/browser/ui/cocoa/applescript/
Dwindow_applescript.mm74 browser_ = new Browser(
76 chrome::NewTab(browser_);
77 browser_->window()->Show();
79 [[NSNumber alloc] initWithInt:browser_->session_id().id()]);
95 browser_ = aBrowser;
97 [[NSNumber alloc] initWithInt:browser_->session_id().id()]);
105 if (browser_->window())
106 return browser_->window()->GetNativeWindow();
112 int activeTabIndex = browser_->tab_strip_model()->active_index() + 1;
122 if (atIndex >= 0 && atIndex < browser_->tab_strip_model()->count())
[all …]
/external/chromium_org/chrome/browser/profiles/
Davatar_menu.cc61 browser_(browser) { in AvatarMenu()
65 ActiveBrowserChanged(browser_); in AvatarMenu()
74 if (browser_) { in AvatarMenu()
76 SupervisedUserServiceFactory::GetForProfile(browser_->profile())); in AvatarMenu()
149 if (browser_) in SwitchToProfile()
150 desktop_type = browser_->host_desktop_type(); in SwitchToProfile()
190 if (!browser_) in GetActiveProfileIndex()
193 active_profile = browser_->profile(); in GetActiveProfileIndex()
205 if (browser_ && browser_->profile()->IsSupervised()) { in GetSupervisedUserInformation()
208 SupervisedUserServiceFactory::GetForProfile(browser_->profile()); in GetSupervisedUserInformation()
[all …]
/external/chromium_org/chrome/browser/ui/cocoa/
Dcocoa_profile_test.mm30 browser_.reset();
53 // window off of browser_. pkasting indicates that other
66 browser_.reset(CreateBrowser());
67 ASSERT_TRUE(browser_.get());
71 if (browser_.get() && browser_->window())
79 DCHECK(browser_->window());
80 browser_->tab_strip_model()->CloseAllTabs();
81 chrome::CloseWindow(browser_.get());
82 // |browser_| will be deleted by its BrowserWindowController.
83 ignore_result(browser_.release());

123456789