OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_H_ |
6 #define CHROME_BROWSER_BROWSER_H_ | 6 #define CHROME_BROWSER_BROWSER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 virtual void CreateHistoricalTab(TabContents* contents); | 644 virtual void CreateHistoricalTab(TabContents* contents); |
645 virtual bool RunUnloadListenerBeforeClosing(TabContents* contents); | 645 virtual bool RunUnloadListenerBeforeClosing(TabContents* contents); |
646 virtual bool CanCloseContentsAt(int index); | 646 virtual bool CanCloseContentsAt(int index); |
647 virtual bool CanBookmarkAllTabs() const; | 647 virtual bool CanBookmarkAllTabs() const; |
648 virtual void BookmarkAllTabs(); | 648 virtual void BookmarkAllTabs(); |
649 virtual bool CanCloseTab() const; | 649 virtual bool CanCloseTab() const; |
650 virtual bool UseVerticalTabs() const; | 650 virtual bool UseVerticalTabs() const; |
651 virtual void ToggleUseVerticalTabs(); | 651 virtual void ToggleUseVerticalTabs(); |
652 virtual bool CanRestoreTab(); | 652 virtual bool CanRestoreTab(); |
653 virtual void RestoreTab(); | 653 virtual void RestoreTab(); |
654 virtual void SetToolbarVisibility(bool visible); | |
655 | 654 |
656 // Overridden from TabStripModelObserver: | 655 // Overridden from TabStripModelObserver: |
657 virtual void TabInsertedAt(TabContents* contents, | 656 virtual void TabInsertedAt(TabContents* contents, |
658 int index, | 657 int index, |
659 bool foreground); | 658 bool foreground); |
660 virtual void TabClosingAt(TabContents* contents, int index); | 659 virtual void TabClosingAt(TabContents* contents, int index); |
661 virtual void TabDetachedAt(TabContents* contents, int index); | 660 virtual void TabDetachedAt(TabContents* contents, int index); |
662 virtual void TabDeselectedAt(TabContents* contents, int index); | 661 virtual void TabDeselectedAt(TabContents* contents, int index); |
663 virtual void TabSelectedAt(TabContents* old_contents, | 662 virtual void TabSelectedAt(TabContents* old_contents, |
664 TabContents* new_contents, | 663 TabContents* new_contents, |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 mutable BooleanPrefMember use_vertical_tabs_; | 1060 mutable BooleanPrefMember use_vertical_tabs_; |
1062 | 1061 |
1063 // The profile's tab restore service. The service is owned by the profile, | 1062 // The profile's tab restore service. The service is owned by the profile, |
1064 // and we install ourselves as an observer. | 1063 // and we install ourselves as an observer. |
1065 TabRestoreService* tab_restore_service_; | 1064 TabRestoreService* tab_restore_service_; |
1066 | 1065 |
1067 DISALLOW_COPY_AND_ASSIGN(Browser); | 1066 DISALLOW_COPY_AND_ASSIGN(Browser); |
1068 }; | 1067 }; |
1069 | 1068 |
1070 #endif // CHROME_BROWSER_BROWSER_H_ | 1069 #endif // CHROME_BROWSER_BROWSER_H_ |
OLD | NEW |