Chromium Code Reviews| Index: chrome/browser/ui/browser.h |
| diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h |
| index 46ba61cd7af8162c330ab1cd451aa825a901b08f..c4947409a7e962b40906337322dfa6bfa2793fc7 100644 |
| --- a/chrome/browser/ui/browser.h |
| +++ b/chrome/browser/ui/browser.h |
| @@ -818,58 +818,6 @@ class Browser : public TabStripModelDelegate, |
| return extension_window_controller_.get(); |
| } |
| - protected: |
| - // Wrapper for the factory method in BrowserWindow. This allows subclasses to |
| - // set their own window. |
| - virtual BrowserWindow* CreateBrowserWindow(); |
| - |
| - private: |
| - friend class BrowserTest; |
| - FRIEND_TEST_ALL_PREFIXES(AppModeTest, EnableAppModeTest); |
| - FRIEND_TEST_ALL_PREFIXES(BrowserTest, NoTabsInPopups); |
| - FRIEND_TEST_ALL_PREFIXES(BrowserTest, ConvertTabToAppShortcut); |
| - FRIEND_TEST_ALL_PREFIXES(BrowserTest, OpenAppWindowLikeNtp); |
| - FRIEND_TEST_ALL_PREFIXES(BrowserTest, AppIdSwitch); |
| - FRIEND_TEST_ALL_PREFIXES(BrowserTest, TabEntersPresentationModeFromWindowed); |
| - FRIEND_TEST_ALL_PREFIXES(FullscreenExitBubbleControllerTest, |
| - DenyExitsFullscreen); |
| - FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest, OpenAppShortcutNoPref); |
| - FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest, |
| - OpenAppShortcutWindowPref); |
| - FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest, OpenAppShortcutTabPref); |
| - FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest, OpenAppShortcutPanel); |
| - |
| - // Used to describe why a tab is being detached. This is used by |
| - // TabDetachedAtImpl. |
| - enum DetachType { |
| - // Result of TabDetachedAt. |
| - DETACH_TYPE_DETACH, |
| - |
| - // Result of TabReplacedAt. |
| - DETACH_TYPE_REPLACE, |
| - |
| - // Result of the tab strip not having any significant tabs. |
| - DETACH_TYPE_EMPTY |
| - }; |
| - |
| - // Describes where the bookmark bar state change originated from. |
| - enum BookmarkBarStateChangeReason { |
| - // From the constructor. |
| - BOOKMARK_BAR_STATE_CHANGE_INIT, |
| - |
| - // Change is the result of the active tab changing. |
| - BOOKMARK_BAR_STATE_CHANGE_TAB_SWITCH, |
| - |
| - // Change is the result of the bookmark bar pref changing. |
| - BOOKMARK_BAR_STATE_CHANGE_PREF_CHANGE, |
| - |
| - // Change is the result of a state change in the active tab. |
| - BOOKMARK_BAR_STATE_CHANGE_TAB_STATE, |
| - |
| - // Change is the result of window toggling in/out of fullscreen mode. |
| - BOOKMARK_BAR_STATE_CHANGE_TOGGLE_FULLSCREEN, |
| - }; |
| - |
| // Overridden from content::WebContentsDelegate: |
|
Ben Goodger (Google)
2012/05/29 18:23:48
... and also, I don't like having these methods ex
|
| virtual content::WebContents* OpenURLFromTab( |
| content::WebContents* source, |
| @@ -979,6 +927,58 @@ class Browser : public TabStripModelDelegate, |
| virtual void ResizeDueToAutoResize(content::WebContents* source, |
| const gfx::Size& new_size) OVERRIDE; |
| + protected: |
| + // Wrapper for the factory method in BrowserWindow. This allows subclasses to |
| + // set their own window. |
| + virtual BrowserWindow* CreateBrowserWindow(); |
| + |
| + private: |
| + friend class BrowserTest; |
| + FRIEND_TEST_ALL_PREFIXES(AppModeTest, EnableAppModeTest); |
| + FRIEND_TEST_ALL_PREFIXES(BrowserTest, NoTabsInPopups); |
| + FRIEND_TEST_ALL_PREFIXES(BrowserTest, ConvertTabToAppShortcut); |
| + FRIEND_TEST_ALL_PREFIXES(BrowserTest, OpenAppWindowLikeNtp); |
| + FRIEND_TEST_ALL_PREFIXES(BrowserTest, AppIdSwitch); |
| + FRIEND_TEST_ALL_PREFIXES(BrowserTest, TabEntersPresentationModeFromWindowed); |
| + FRIEND_TEST_ALL_PREFIXES(FullscreenExitBubbleControllerTest, |
| + DenyExitsFullscreen); |
| + FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest, OpenAppShortcutNoPref); |
| + FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest, |
| + OpenAppShortcutWindowPref); |
| + FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest, OpenAppShortcutTabPref); |
| + FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest, OpenAppShortcutPanel); |
| + |
| + // Used to describe why a tab is being detached. This is used by |
| + // TabDetachedAtImpl. |
| + enum DetachType { |
| + // Result of TabDetachedAt. |
| + DETACH_TYPE_DETACH, |
| + |
| + // Result of TabReplacedAt. |
| + DETACH_TYPE_REPLACE, |
| + |
| + // Result of the tab strip not having any significant tabs. |
| + DETACH_TYPE_EMPTY |
| + }; |
| + |
| + // Describes where the bookmark bar state change originated from. |
| + enum BookmarkBarStateChangeReason { |
| + // From the constructor. |
| + BOOKMARK_BAR_STATE_CHANGE_INIT, |
| + |
| + // Change is the result of the active tab changing. |
| + BOOKMARK_BAR_STATE_CHANGE_TAB_SWITCH, |
| + |
| + // Change is the result of the bookmark bar pref changing. |
| + BOOKMARK_BAR_STATE_CHANGE_PREF_CHANGE, |
| + |
| + // Change is the result of a state change in the active tab. |
| + BOOKMARK_BAR_STATE_CHANGE_TAB_STATE, |
| + |
| + // Change is the result of window toggling in/out of fullscreen mode. |
| + BOOKMARK_BAR_STATE_CHANGE_TOGGLE_FULLSCREEN, |
| + }; |
| + |
| virtual void FindReply(content::WebContents* tab, |
| int request_id, |
| int number_of_matches, |