Lines Matching defs:Browser

201 // Browser, Constructors, Creation, Showing:
203 Browser::Browser(Type type, Profile* profile)
284 Browser::~Browser() {
285 VLOG_IF(1, g_log_bug53991) << "~Browser: " << profile_->IsOffTheRecord()
341 Browser* Browser::Create(Profile* profile) {
342 Browser* browser = new Browser(TYPE_NORMAL, profile);
348 Browser* Browser::CreateForPopup(Type type,
353 Browser* browser = new Browser(type, profile);
362 Browser* Browser::CreateForType(Type type, Profile* profile) {
363 Browser* browser = new Browser(type, profile);
369 Browser* Browser::CreateForApp(const std::string& app_name,
373 Browser::Type type = TYPE_APP;
385 Browser* browser = new Browser(type, profile);
399 Browser* Browser::CreateForDevTools(Profile* profile) {
400 Browser* browser = new Browser(TYPE_DEVTOOLS, profile);
406 void Browser::InitBrowserWindow() {
429 Source<Browser>(this),
467 const std::vector<std::wstring>& Browser::user_data_dir_profiles() const {
471 void Browser::set_user_data_dir_profiles(
476 FindBarController* Browser::GetFindBarController() {
487 bool Browser::HasFindBarController() const {
492 // Browser, Creation Helpers:
495 void Browser::OpenEmptyWindow(Profile* profile) {
496 Browser* browser = Browser::Create(profile);
502 void Browser::OpenWindowWithRestoredTabs(Profile* profile) {
509 void Browser::OpenURLOffTheRecord(Profile* profile, const GURL& url) {
510 Browser* browser = GetOrCreateTabbedBrowser(
517 TabContents* Browser::OpenApplication(
531 tab = Browser::OpenApplicationWindow(profile, extension, container,
535 tab = Browser::OpenApplicationTab(profile, extension, existing_tab);
546 TabContents* Browser::OpenApplicationWindow(
551 Browser** app_browser) {
578 Browser* browser = Browser::CreateForApp(app_name, window_size, profile,
597 TabContents* Browser::OpenAppShortcutWindow(Profile* profile,
600 Browser* app_browser;
614 // the web app info is available, TabContents notifies Browser via
624 TabContents* Browser::OpenApplicationTab(Profile* profile,
627 Browser* browser =
628 BrowserList::FindBrowserWithType(profile, Browser::TYPE_NORMAL, false);
692 void Browser::OpenBookmarkManagerWindow(Profile* profile) {
693 Browser* browser = Browser::Create(profile);
700 void Browser::OpenHistoryWindow(Profile* profile) {
701 Browser* browser = Browser::Create(profile);
707 void Browser::OpenDownloadsWindow(Profile* profile) {
708 Browser* browser = Browser::Create(profile);
714 void Browser::OpenHelpWindow(Profile* profile) {
715 Browser* browser = Browser::Create(profile);
721 void Browser::OpenOptionsWindow(Profile* profile) {
722 Browser* browser = Browser::Create(profile);
728 void Browser::OpenClearBrowingDataDialogWindow(Profile* profile) {
729 Browser* browser = Browser::Create(profile);
735 void Browser::OpenImportSettingsDialogWindow(Profile* profile) {
736 Browser* browser = Browser::Create(profile);
742 void Browser::OpenInstantConfirmDialogWindow(Profile* profile) {
743 Browser* browser = Browser::Create(profile);
750 void Browser::OpenExtensionsWindow(Profile* profile) {
751 Browser* browser = Browser::Create(profile);
758 // Browser, State Storage and Retrieval for UI:
760 std::string Browser::GetWindowPlacementKey() const {
769 bool Browser::ShouldSaveWindowPlacement() const {
774 void Browser::SaveWindowPlacement(const gfx::Rect& bounds, bool maximized) {
786 gfx::Rect Browser::GetSavedWindowBounds() const {
808 bool Browser::GetSavedMaximizedState() const {
825 SkBitmap Browser::GetCurrentPageIcon() const {
832 string16 Browser::GetWindowTitleForCurrentTab() const {
859 void Browser::FormatTitleForDisplay(string16* title) {
869 // Browser, OnBeforeUnload handling:
871 bool Browser::TabsNeedBeforeUnloadFired() {
882 bool Browser::ShouldCloseWindow() {
898 void Browser::OnWindowClosing() {
929 Source<Browser>(this),
938 void Browser::InProgressDownloadResponse(bool cancel_downloads) {
955 // Browser, TabStripModel pass-thrus:
957 int Browser::tab_count() const {
961 int Browser::active_index() const {
965 int Browser::GetIndexOfController(
970 TabContentsWrapper* Browser::GetSelectedTabContentsWrapper() const {
973 TabContentsWrapper* Browser::GetTabContentsWrapperAt(int index) const {
977 TabContents* Browser::GetSelectedTabContents() const {
984 TabContents* Browser::GetTabContentsAt(int index) const {
991 void Browser::ActivateTabAt(int index, bool user_gesture) {
995 bool Browser::IsTabPinned(int index) const {
999 void Browser::CloseAllTabs() {
1004 // Browser, Tab adding/showing functions:
1006 bool Browser::IsTabStripEditable() const {
1010 int Browser::GetIndexForInsertionDuringRestore(int relative_index) {
1015 TabContentsWrapper* Browser::AddSelectedTabWithURL(const GURL& url,
1023 TabContents* Browser::AddTab(TabContentsWrapper* tab_contents,
1030 void Browser::AddTabContents(TabContents* new_contents,
1037 void Browser::CloseTabContents(TabContents* contents) {
1041 void Browser::BrowserShowHtmlDialog(HtmlDialogUIDelegate* delegate,
1046 void Browser::BrowserRenderWidgetShowing() {
1050 void Browser::BookmarkBarSizeChanged(bool is_animating) {
1054 TabContents* Browser::AddRestoredTab(
1100 void Browser::ReplaceRestoredTab(
1120 bool Browser::CanRestoreTab() {
1124 bool Browser::NavigateToIndexWithDisposition(int index,
1134 browser::NavigateParams Browser::GetSingletonTabNavigateParams(
1142 void Browser::ShowSingletonTab(const GURL& url) {
1147 void Browser::UpdateCommandsForFullscreenMode(bool is_fullscreen) {
1200 // Browser, Assorted browser commands:
1202 bool Browser::ShouldOpenNewTabForWindowDisposition(
1208 TabContents* Browser::GetOrCloneTabForDisposition(
1221 void Browser::UpdateTabStripModelInsertionPolicy() {
1226 void Browser::UseVerticalTabsChanged() {
1231 bool Browser::SupportsWindowFeatureImpl(WindowFeature feature,
1263 if ((type() & Browser::TYPE_APP) == 0)
1269 bool Browser::IsClosingPermitted() {
1278 void Browser::GoBack(WindowOpenDisposition disposition) {
1293 void Browser::GoForward(WindowOpenDisposition disposition) {
1299 void Browser::Reload(WindowOpenDisposition disposition) {
1304 void Browser::ReloadIgnoringCache(WindowOpenDisposition disposition) {
1309 void Browser::ReloadInternal(WindowOpenDisposition disposition,
1330 void Browser::Home(WindowOpenDisposition disposition) {
1335 void Browser::OpenCurrentURL() {
1349 Browser* existing_browser = NULL;
1376 void Browser::Stop() {
1381 void Browser::NewWindow() {
1393 Browser::OpenEmptyWindow(profile_->GetOriginalProfile());
1397 void Browser::NewIncognitoWindow() {
1404 Browser::OpenEmptyWindow(profile_->GetOffTheRecordProfile());
1407 void Browser::CloseWindow() {
1412 void Browser::NewTab() {
1419 Browser* b = GetOrCreateTabbedBrowser(profile_);
1429 void Browser::CloseTab() {
1436 void Browser::SelectNextTab() {
1441 void Browser::SelectPreviousTab() {
1446 void Browser::OpenTabpose() {
1460 void Browser::MoveTabNext() {
1465 void Browser::MoveTabPrevious() {
1470 void Browser::SelectNumberedTab(int index) {
1478 void Browser::SelectLastTab() {
1483 void Browser::DuplicateTab() {
1488 void Browser::RestoreTab() {
1497 void Browser::WriteCurrentURLToClipboard() {
1512 void Browser::ConvertPopupToTabbedBrowser() {
1517 Browser* browser = Browser::Create(profile_);
1522 void Browser::ToggleFullscreenMode() {
1541 void Browser::Search() {
1556 FROM_HERE, method_factory_.NewRunnableMethod(&Browser::Search));
1564 void Browser::ShowKeyboardOverlay() {
1569 void Browser::Exit() {
1592 void Browser::BookmarkCurrentPage() {
1619 void Browser::SavePage() {
1627 void Browser::ViewSelectedSource() {
1631 void Browser::ShowFindBar() {
1635 bool Browser::SupportsWindowFeature(WindowFeature feature) const {
1639 bool Browser::CanSupportWindowFeature(WindowFeature feature) const {
1643 void Browser::EmailPageLocation() {
1648 void Browser::Print() {
1659 void Browser::ToggleEncodingAutoDetect() {
1673 void Browser::OverrideEncoding(int encoding_id) {
1691 void Browser::Cut() {
1696 void Browser::Copy() {
1701 void Browser::Paste() {
1706 void Browser::Find() {
1711 void Browser::FindNext() {
1716 void Browser::FindPrevious() {
1721 void Browser::Zoom(PageZoom::Function zoom_function) {
1734 void Browser::FocusToolbar() {
1739 void Browser::FocusAppMenu() {
1744 void Browser::FocusLocationBar() {
1749 void Browser::FocusBookmarksToolbar() {
1755 void Browser::FocusChromeOSStatus() {
1760 void Browser::FocusNextPane() {
1765 void Browser::FocusPreviousPane() {
1770 void Browser::FocusSearch() {
1776 void Browser::OpenFile() {
1799 void Browser::OpenCreateShortcutsDialog() {
1823 void Browser::ToggleDevToolsWindow(DevToolsToggleAction action) {
1840 void Browser::OpenTaskManager(bool highlight_background_resources) {
1848 void Browser::OpenBugReportDialog() {
1853 void Browser::ToggleBookmarkBar() {
1858 void Browser::OpenBookmarkManager() {
1863 void Browser::ShowAppMenu() {
1868 void Browser::ShowBookmarkManagerTab() {
1873 void Browser::ShowHistoryTab() {
1878 void Browser::ShowDownloadsTab() {
1888 void Browser::ShowExtensionsTab() {
1893 void Browser::ShowAboutConflictsTab() {
1898 void Browser::ShowBrokenPageTab(TabContents* contents) {
1913 void Browser::ShowOptionsTab(const std::string& sub_page) {
1920 void Browser::OpenClearBrowsingDataDialog() {
1926 void Browser::OpenOptionsDialog() {
1934 void Browser::OpenPasswordManager() {
1940 void Browser::OpenImportSettingsDialog() {
1945 void Browser::OpenInstantConfirmDialog() {
1949 void Browser::OpenSyncMyBookmarksDialog() {
1954 void Browser::OpenAboutChromeDialog() {
1963 void Browser::OpenUpdateChromeDialog() {
1968 void Browser::OpenHelpTab() {
1974 void Browser::OpenThemeGalleryTabAndActivate() {
1979 void Browser::OpenPrivacyDashboardTabAndActivate() {
1985 void Browser::OpenAutofillHelpTabAndActivate() {
1990 void Browser::OpenSearchEngineOptionsDialog() {
1996 void Browser::OpenFileManager() {
2001 void Browser::OpenSystemOptionsDialog() {
2007 void Browser::OpenInternetOptionsDialog() {
2013 void Browser::OpenLanguageOptionsDialog() {
2019 void Browser::OpenSystemTabAndActivate() {
2025 void Browser::OpenMobilePlanTabAndActivate() {
2032 void Browser::OpenPluginsTabAndActivate() {
2041 void Browser::SetNewHomePagePrefs(PrefService* prefs) {
2059 void Browser::RegisterPrefs(PrefService* prefs) {
2074 void Browser::RegisterUserPrefs(PrefService* prefs) {
2124 bool Browser::RunUnloadEventsHelper(TabContents* contents) {
2141 Browser* Browser::GetBrowserForController(
2157 void Browser::ExecuteCommandWithDisposition(
2345 bool Browser::ExecuteCommandIfEnabled(int id) {
2354 bool Browser::IsReservedCommandOrKey(int command_id,
2391 void Browser::SetBlockCommandExecution(bool block) {
2399 int Browser::GetLastBlockedCommand(WindowOpenDisposition* disposition) {
2405 void Browser::UpdateUIForNavigationInTab(TabContentsWrapper* contents,
2433 GURL Browser::GetHomePage() const {
2461 // Browser, PageNavigator implementation:
2463 void Browser::OpenURL(const GURL& url, const GURL& referrer,
2470 // Browser, CommandUpdater::CommandUpdaterDelegate implementation:
2472 void Browser::ExecuteCommand(int id) {
2477 // Browser, TabHandlerDelegate implementation:
2479 Profile* Browser::GetProfile() const {
2483 Browser* Browser::AsBrowser() {
2488 // Browser, TabStripModelDelegate implementation:
2490 TabContentsWrapper* Browser::AddBlankTab(bool foreground) {
2494 TabContentsWrapper* Browser::AddBlankTabAt(int index, bool foreground) {
2509 Browser* Browser::CreateNewStripWithContents(
2521 Browser* browser = new Browser(TYPE_NORMAL, profile_);
2533 int Browser::GetDragActions() const {
2538 TabContentsWrapper* Browser::CreateTabContentsForURL(
2554 bool Browser::CanDuplicateContentsAt(int index) {
2559 void Browser::DuplicateContentsAt(int index) {
2579 Browser* browser = NULL;
2583 browser = Browser::CreateForApp(app_name_, gfx::Size(), profile_,
2586 browser = Browser::CreateForType(TYPE_POPUP, profile_);
2610 void Browser::CloseFrameAfterDragSession() {
2617 FROM_HERE, method_factory_.NewRunnableMethod(&Browser::CloseFrame));
2621 void Browser::CreateHistoricalTab(TabContentsWrapper* contents) {
2637 bool Browser::RunUnloadListenerBeforeClosing(TabContentsWrapper* contents) {
2638 return Browser::RunUnloadEventsHelper(contents->tab_contents());
2641 bool Browser::CanReloadContents(TabContents* source) const {
2645 bool Browser::CanCloseContentsAt(int index) {
2657 bool Browser::CanBookmarkAllTabs() const {
2664 void Browser::BookmarkAllTabs() {
2678 bool Browser::CanCloseTab() const {
2684 void Browser::ToggleUseVerticalTabs() {
2689 bool Browser::LargeIconsPermitted() const {
2697 // Browser, TabStripModelObserver implementation:
2699 void Browser::TabInsertedAt(TabContentsWrapper* contents,
2722 void Browser::TabClosingAt(TabStripModel* tab_strip_model,
2734 void Browser::TabDetachedAt(TabContentsWrapper* contents, int index) {
2738 void Browser::TabDeselected(TabContentsWrapper* contents) {
2747 void Browser::TabSelectedAt(TabContentsWrapper* old_contents,
2803 void Browser::TabMoved(TabContentsWrapper* contents,
2811 void Browser::TabReplacedAt(TabStripModel* tab_strip_model,
2841 void Browser::TabPinnedStateChanged(TabContentsWrapper* contents, int index) {
2853 void Browser::TabStripEmpty() {
2863 FROM_HERE, method_factory_.NewRunnableMethod(&Browser::CloseFrame));
2867 // Browser, TabContentsDelegate implementation:
2869 void Browser::OpenURLFromTab(TabContents* source,
2885 void Browser::NavigationStateChanged(const TabContents* source,
2897 void Browser::AddNewContents(TabContents* source,
2941 void Browser::ActivateContents(TabContents* contents) {
2947 void Browser::DeactivateContents(TabContents* contents) {
2951 void Browser::LoadingStateChanged(TabContents* source) {
2981 void Browser::CloseContents(TabContents* source) {
3001 void Browser::MoveContents(TabContents* source, const gfx::Rect& pos) {
3009 void Browser::DetachContents(TabContents* source) {
3015 bool Browser::IsPopup(const TabContents* source) const {
3020 void Browser::ContentsMouseEvent(
3032 void Browser::UpdateTargetURL(TabContents* source, const GURL& url) {
3043 void Browser::UpdateDownloadShelfVisibility(bool visible) {
3048 bool Browser::UseVerticalTabs() const {
3052 void Browser::ContentsZoomChange(bool zoom_in) {
3056 void Browser::OnContentSettingsChange(TabContents* source) {
3064 void Browser::SetTabContentBlocked(TabContents* contents, bool blocked) {
3073 void Browser::TabContentsFocused(TabContents* tab_content) {
3077 bool Browser::TakeFocus(bool reverse) {
3080 Source<Browser>(this),
3085 bool Browser::IsApplication() const {
3089 void Browser::ConvertContentsToApplication(TabContents* contents) {
3095 Browser* app_browser = Browser::CreateForApp(
3105 bool Browser::ShouldDisplayURLField() {
3109 void Browser::BeforeUnloadFired(TabContents* tab,
3141 void Browser::ShowHtmlDialog(HtmlDialogUIDelegate* delegate,
3146 void Browser::SetFocusToLocationBar(bool select_all) {
3157 void Browser::RenderWidgetShowing() {
3161 int Browser::GetExtraRenderViewHeight() const {
3165 void Browser::OnStartDownload(DownloadItem* download, TabContents* tab) {
3208 void Browser::ShowPageInfo(Profile* profile,
3215 void Browser::ViewSourceForTab(TabContents* source, const GURL& page_url) {
3222 void Browser::ViewSourceForFrame(TabContents* source,
3231 bool Browser::PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
3236 void Browser::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
3240 void Browser::ShowRepostFormWarningDialog(TabContents *tab_contents) {
3244 void Browser::ShowContentSettingsPage(ContentSettingsType content_type) {
3250 void Browser::ShowCollectedCookiesDialog(TabContents *tab_contents) {
3254 bool Browser::ShouldAddNavigationToHistory(
3261 void Browser::ContentRestrictionsChanged(TabContents* source) {
3265 void Browser::WorkerCrashed() {
3274 // Browser, TabContentsWrapperDelegate implementation:
3276 void Browser::URLStarredChanged(TabContentsWrapper* source, bool starred) {
3281 void Browser::OnDidGetApplicationInfo(TabContentsWrapper* source,
3307 void Browser::OnInstallApplication(TabContentsWrapper* source,
3321 // Browser, SearchEngineTabHelperDelegate implementation:
3323 void Browser::ConfirmSetDefaultSearchProvider(
3331 void Browser::ConfirmAddSearchProvider(const TemplateURL* template_url,
3337 // Browser, SelectFileDialog::Listener implementation:
3339 void Browser::FileSelected(const FilePath& path, int index, void* params) {
3347 // Browser, NotificationObserver implementation:
3349 void Browser::Observe(NotificationType type,
3424 Browser::TYPE_NORMAL,
3474 // Browser, ProfileSyncServiceObserver implementation:
3476 void Browser::OnStateChanged() {
3490 // Browser, InstantDelegate implementation:
3492 void Browser::PrepareForInstant() {
3496 void Browser::ShowInstant(TabContentsWrapper* preview_contents) {
3501 void Browser::HideInstant() {
3505 void Browser::CommitInstant(TabContentsWrapper* preview_contents) {
3525 void Browser::SetSuggestedText(const string16& text,
3530 gfx::Rect Browser::GetInstantBounds() {
3535 // Browser, protected:
3537 BrowserWindow* Browser::CreateBrowserWindow() {
3538 if (type() == Browser::TYPE_APP_PANEL &&
3547 // Browser, Command and state updating (private):
3549 void Browser::InitCommandState() {
3704 void Browser::UpdateCommandsForTabState() {
3755 void Browser::UpdateCommandsForContentRestrictionState() {
3777 void Browser::UpdatePrintingState(int content_restrictions) {
3787 void Browser::UpdateReloadStopState(bool is_loading, bool force) {
3792 void Browser::UpdateCommandsForDevTools() {
3802 void Browser::UpdateCommandsForBookmarkEditing() {
3813 // Browser, UI update coalescing and handling (private):
3815 void Browser::UpdateToolbar(bool should_restore_state) {
3819 void Browser::ScheduleUIUpdate(const TabContents* source,
3874 &Browser::ProcessPendingUIUpdates),
3879 void Browser::ProcessPendingUIUpdates() {
3944 void Browser::RemoveScheduledUpdatesFor(TabContents* contents) {
3955 // Browser, Getters for UI (private):
3957 StatusBubble* Browser::GetStatusBubble() {
3967 // Browser, Session restore functions (private):
3969 void Browser::SyncHistoryWithTabs(int index) {
3989 // Browser, OnBeforeUnload handling (private):
3991 void Browser::ProcessPendingTabs() {
4039 bool Browser::HasCompletedUnloadProcessing() const {
4045 void Browser::CancelWindowClose() {
4061 bool Browser::RemoveFromSet(UnloadListenerSet* set, TabContents* tab) {
4072 void Browser::ClearUnloadState(TabContents* tab, bool process_now) {
4084 method_factory_.NewRunnableMethod(&Browser::ProcessPendingTabs));
4090 // Browser, In-progress download termination handling (private):
4092 void Browser::CheckDownloadsInProgress(bool* normal_downloads_are_present,
4105 // Browser is incognito and so download_manager if present is for incognito
4118 bool Browser::CanCloseWithInProgressDownloads() {
4156 Browser* const browser = *iter;
4159 || browser->type() != Browser::TYPE_NORMAL)
4191 // Browser, Assorted utility functions (private):
4194 Browser* Browser::GetTabbedBrowser(Profile* profile, bool match_incognito) {
4200 Browser* Browser::GetOrCreateTabbedBrowser(Profile* profile) {
4201 Browser* browser = GetTabbedBrowser(profile, false);
4203 browser = Browser::Create(profile);
4207 void Browser::SetAsDelegate(TabContentsWrapper* tab, Browser* delegate) {
4213 void Browser::FindInPage(bool find_next, bool forward_direction) {
4228 void Browser::CloseFrame() {
4232 void Browser::TabDetachedAtImpl(TabContentsWrapper* contents, int index,
4270 void Browser::RegisterAppPrefs(const std::string& app_name, Profile* profile) {
4289 void Browser::TabRestoreServiceChanged(TabRestoreService* service) {
4294 void Browser::TabRestoreServiceDestroyed(TabRestoreService* service) {
4305 TabContentsWrapper* Browser::TabContentsFactory(
4318 bool Browser::OpenInstant(WindowOpenDisposition disposition) {
4352 void Browser::CreateInstantIfNecessary() {
4360 void Browser::ViewSource(TabContentsWrapper* contents) {
4370 void Browser::ViewSource(TabContentsWrapper* contents,
4406 Browser* browser = Browser::CreateForType(TYPE_NORMAL, profile_);