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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 bool defer_load, | 568 bool defer_load, |
569 SiteInstance* instance) const; | 569 SiteInstance* instance) const; |
570 virtual bool CanDuplicateContentsAt(int index); | 570 virtual bool CanDuplicateContentsAt(int index); |
571 virtual void DuplicateContentsAt(int index); | 571 virtual void DuplicateContentsAt(int index); |
572 virtual void CloseFrameAfterDragSession(); | 572 virtual void CloseFrameAfterDragSession(); |
573 virtual void CreateHistoricalTab(TabContents* contents); | 573 virtual void CreateHistoricalTab(TabContents* contents); |
574 virtual bool RunUnloadListenerBeforeClosing(TabContents* contents); | 574 virtual bool RunUnloadListenerBeforeClosing(TabContents* contents); |
575 virtual bool CanCloseContentsAt(int index); | 575 virtual bool CanCloseContentsAt(int index); |
576 virtual bool CanBookmarkAllTabs() const; | 576 virtual bool CanBookmarkAllTabs() const; |
577 virtual void BookmarkAllTabs(); | 577 virtual void BookmarkAllTabs(); |
| 578 virtual bool UseVerticalTabs() const; |
| 579 virtual void ToggleUseVerticalTabs(); |
578 | 580 |
579 // Overridden from TabStripModelObserver: | 581 // Overridden from TabStripModelObserver: |
580 virtual void TabInsertedAt(TabContents* contents, | 582 virtual void TabInsertedAt(TabContents* contents, |
581 int index, | 583 int index, |
582 bool foreground); | 584 bool foreground); |
583 virtual void TabClosingAt(TabContents* contents, int index); | 585 virtual void TabClosingAt(TabContents* contents, int index); |
584 virtual void TabDetachedAt(TabContents* contents, int index); | 586 virtual void TabDetachedAt(TabContents* contents, int index); |
585 virtual void TabDeselectedAt(TabContents* contents, int index); | 587 virtual void TabDeselectedAt(TabContents* contents, int index); |
586 virtual void TabSelectedAt(TabContents* old_contents, | 588 virtual void TabSelectedAt(TabContents* old_contents, |
587 TabContents* new_contents, | 589 TabContents* new_contents, |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 enum WebAppAction { | 910 enum WebAppAction { |
909 NONE, // No action at all. | 911 NONE, // No action at all. |
910 CREATE_SHORTCUT, // Bring up create application shortcut dialog. | 912 CREATE_SHORTCUT, // Bring up create application shortcut dialog. |
911 UPDATE_SHORTCUT // Update icon for app shortcut. | 913 UPDATE_SHORTCUT // Update icon for app shortcut. |
912 }; | 914 }; |
913 | 915 |
914 // Which deferred action to perform when OnDidGetApplicationInfo is notified | 916 // Which deferred action to perform when OnDidGetApplicationInfo is notified |
915 // from a TabContents. Currently, only one pending action is allowed. | 917 // from a TabContents. Currently, only one pending action is allowed. |
916 WebAppAction pending_web_app_action_; | 918 WebAppAction pending_web_app_action_; |
917 | 919 |
| 920 // Tracks the display mode of the tabstrip. |
| 921 mutable BooleanPrefMember use_vertical_tabs_; |
| 922 |
918 DISALLOW_COPY_AND_ASSIGN(Browser); | 923 DISALLOW_COPY_AND_ASSIGN(Browser); |
919 }; | 924 }; |
920 | 925 |
921 #endif // CHROME_BROWSER_BROWSER_H_ | 926 #endif // CHROME_BROWSER_BROWSER_H_ |
OLD | NEW |