Home | History | Annotate | Download | only in chromeos

Lines Matching refs:Browser

11 #include "chrome/browser/tab_closeable_state_watcher.h"
12 #include "chrome/browser/tabs/tab_strip_model_observer.h"
13 #include "chrome/browser/ui/browser_list.h"
23 // 1) A tab, and hence its containing browser, is not closeable if the tab is
24 // the last NewTabPage in the last normal non-incognito browser and user is not
26 // 2) Otherwise, if user closes a normal non-incognito browser or the last tab
27 // in it, the browser stays open, the existing tabs are closed, and a new
29 // 3) Or, if user closes a normal incognito browser or the last tab in it, the
30 // browser closes, a new non-incognito normal browser is opened with a
35 // 1) A tab, and hence its containing browser, is not closeable if the tab is
36 // the last NewTabPage in the last browser (again, all browsers are incognito
38 // 2-3) Otherwise, if user closes a normal incognito browser or the last tab in
39 // it, the browser stays open, the existing tabs are closed, and a new
50 virtual bool CanCloseTab(const Browser* browser) const;
51 virtual bool CanCloseBrowser(Browser* browser);
52 virtual void OnWindowCloseCanceled(Browser* browser);
57 OPEN_WINDOW = 1, // Opens a regular (i.e. non-incognito) normal browser.
62 virtual void OnBrowserAdded(const Browser* browser);
63 virtual void OnBrowserRemoved(const Browser* browser);
72 virtual void OnTabStripChanged(const Browser* browser, bool closing_last_tab);
78 // |browser_to_check| is the browser whose closeable state the caller is
80 // when a browser is being removed and there's no specific browser to check.
81 void CheckAndUpdateState(const Browser* browser_to_check);
86 // Returns true if closing of |browser| is permitted.
87 // |action_type| is the action to take regardless if browser is closeable.
88 bool CanCloseBrowserImpl(const Browser* browser,
104 // Set to true if we're waiting for a new browser to be created. When true we
105 // uncoditionally allow everything as we know a browser is in the process of
113 // needed so we know which browser the TabStripModelObserver method relates
118 const Browser* browser);
131 const Browser* browser() const {
137 const Browser* browser_;