Home | History | Annotate | Download | only in ui

Lines Matching refs:browser

20 #include "chrome/browser/command_updater.h"
21 #include "chrome/browser/debugger/devtools_toggle_action.h"
22 #include "chrome/browser/instant/instant_delegate.h"
23 #include "chrome/browser/prefs/pref_member.h"
24 #include "chrome/browser/sessions/session_id.h"
25 #include "chrome/browser/sessions/tab_restore_service_observer.h"
26 #include "chrome/browser/sync/profile_sync_service_observer.h"
27 #include "chrome/browser/tabs/tab_handler.h"
28 #include "chrome/browser/tabs/tab_strip_model_delegate.h" // TODO(beng): remove
29 #include "chrome/browser/tabs/tab_strip_model_observer.h" // TODO(beng): remove
30 #include "chrome/browser/ui/browser_navigator.h"
31 #include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h"
32 #include "chrome/browser/ui/shell_dialogs.h"
33 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h"
34 #include "chrome/browser/ui/toolbar/toolbar_model.h"
36 #include "content/browser/tab_contents/page_navigator.h"
37 #include "content/browser/tab_contents/tab_contents_delegate.h"
61 class Browser : public TabHandlerDelegate,
88 // APP_POPUP. (see Browser::CreateForApp)
98 // Possible elements of the Browser window.
126 // Creates a new browser of the given |type| and for the given |profile|. The
127 // Browser has a NULL window after its construction, InitBrowserWindow must
131 Browser(Type type, Profile* profile);
132 virtual ~Browser();
134 // Creates a normal tabbed browser with the specified profile. The Browser's
136 static Browser* Create(Profile* profile);
138 // Like Create, but creates a browser of the specified (popup) type, with the
140 static Browser* CreateForPopup(Type type, Profile* profile,
144 // Like Create, but creates a browser of the specified type.
145 static Browser* CreateForType(Type type, Profile* profile);
151 static Browser* CreateForApp(const std::string& app_name,
158 static Browser* CreateForDevTools(Profile* profile);
172 // Creates the Browser Window. Prefer to use the static helpers above where
186 // this Browser.
210 // Get the FindBarController for this browser, creating it if it does not
214 // Returns true if a FindBarController exists for this browser.
221 // Browser Creation Helpers /////////////////////////////////////////////////
229 // Opens the specified URL in a new browser window in an incognito session.
244 // is true, the application will be opened as a Browser::Type::APP_PANEL in
246 // Browser::Type::APP a.k.a. "thin frame" (if |extension| is NULL) or
247 // Browser::Type::EXTENSION_APP (if |extension| is non-NULL).
248 // If |app_browser| is not NULL, it is set to the browser that hosts the
255 Browser** app_browser);
262 // Browser::OpenApplicationWindow().
269 // existing browser windows for |profile|.
330 // Called when the user has decided whether to proceed or not with the browser
332 // and the browser closed, false if the browser should stay open and the
436 // already visible in this browser, it becomes selected. Otherwise a new tab
442 // async call to X. Once we get the fullscreen callback, the browser window
446 // Assorted browser commands ////////////////////////////////////////////////
490 // Returns true if the Browser supports the specified feature. The value of
491 // this varies during the lifetime of the browser. For example, if the window
493 // whether or not it's possible for the browser to support a particular
497 // Returns true if the Browser can support the specified feature. See comment
597 // Returns the Browser which contains the tab with the given
602 static Browser* GetBrowserForController(
605 // Retrieve the last active tabbed browser with a profile matching |profile|.
606 static Browser* GetTabbedBrowser(Profile* profile, bool match_incognito);
608 // Retrieve the last active tabbed browser with a profile matching |profile|.
609 // Creates a new Browser if none are available.
610 static Browser* GetOrCreateTabbedBrowser(Profile* profile);
637 // Called by browser::Navigate() when a navigation has occurred in a tab in
638 // this Browser. Updates the UI for the start of this navigation.
643 // Called by browser::Navigate() to retrieve the home page if no URL is
672 virtual Browser* AsBrowser();
677 virtual Browser* CreateNewStripWithContents(
859 // Initialize state for all browser commands.
943 // Cleans up state appropriately when we are trying to close the browser and
965 void SetAsDelegate(TabContentsWrapper* tab, Browser* delegate);
1005 // the browser, otherwise the set of features reflect the possible state of
1006 // the browser.
1010 // Determines if closing of browser can really be permitted after normal
1013 // TabCloseableStateWatcher to confirm if browser can really be closed.
1015 // If watcher denies closing of browser, CancelWindowClose is called to
1023 // If this browser should have instant one is created, otherwise does nothing.
1030 browser::NavigateParams GetSingletonTabNavigateParams(const GURL& url);
1041 // This Browser's type.
1044 // This Browser's profile.
1047 // This Browser's window.
1050 // This Browser's current TabHandler.
1053 // The CommandUpdater that manages the browser window commands.
1060 // Unique identifier of this browser for session restore. This id is only
1079 ScopedRunnableMethodFactory<Browser> chrome_updater_factory_;
1084 // close the browser. Only gets populated when we try to close the browser.
1088 // close the browser. Only gets populated when we try to close the browser.
1092 // in preparation for closing the browser.
1105 // when the browser is closed with in-progress downloads.
1119 ScopedRunnableMethodFactory<Browser> method_factory_;
1180 DISALLOW_COPY_AND_ASSIGN(Browser);