| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TABS_DEFAULT_TAB_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ |
| 6 #define CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ | 6 #define CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 virtual bool CanDuplicateContentsAt(int index); | 45 virtual bool CanDuplicateContentsAt(int index); |
| 46 virtual void DuplicateContentsAt(int index); | 46 virtual void DuplicateContentsAt(int index); |
| 47 virtual void CloseFrameAfterDragSession(); | 47 virtual void CloseFrameAfterDragSession(); |
| 48 virtual void CreateHistoricalTab(TabContentsWrapper* contents); | 48 virtual void CreateHistoricalTab(TabContentsWrapper* contents); |
| 49 virtual bool RunUnloadListenerBeforeClosing(TabContentsWrapper* contents); | 49 virtual bool RunUnloadListenerBeforeClosing(TabContentsWrapper* contents); |
| 50 virtual bool CanCloseContents(std::vector<int>* indices); | 50 virtual bool CanCloseContents(std::vector<int>* indices); |
| 51 virtual bool CanBookmarkAllTabs() const; | 51 virtual bool CanBookmarkAllTabs() const; |
| 52 virtual void BookmarkAllTabs(); | 52 virtual void BookmarkAllTabs(); |
| 53 virtual bool CanCloseTab() const; | 53 virtual bool CanCloseTab() const; |
| 54 virtual void ToggleUseVerticalTabs(); | 54 virtual void ToggleUseVerticalTabs(); |
| 55 virtual void ToggleUseCompactNavigationBar(); |
| 55 virtual bool CanRestoreTab(); | 56 virtual bool CanRestoreTab(); |
| 56 virtual void RestoreTab(); | 57 virtual void RestoreTab(); |
| 57 virtual bool LargeIconsPermitted() const; | 58 virtual bool LargeIconsPermitted() const; |
| 58 virtual bool UseVerticalTabs() const; | 59 virtual bool UseVerticalTabs() const; |
| 60 virtual bool UseCompactNavigationBar() const; |
| 59 | 61 |
| 60 // Overridden from TabStripModelObserver: | 62 // Overridden from TabStripModelObserver: |
| 61 virtual void TabInsertedAt(TabContentsWrapper* contents, | 63 virtual void TabInsertedAt(TabContentsWrapper* contents, |
| 62 int index, | 64 int index, |
| 63 bool foreground); | 65 bool foreground); |
| 64 virtual void TabClosingAt(TabStripModel* tab_strip_model, | 66 virtual void TabClosingAt(TabStripModel* tab_strip_model, |
| 65 TabContentsWrapper* contents, | 67 TabContentsWrapper* contents, |
| 66 int index); | 68 int index); |
| 67 virtual void TabDetachedAt(TabContentsWrapper* contents, int index); | 69 virtual void TabDetachedAt(TabContentsWrapper* contents, int index); |
| 68 virtual void TabDeselected(TabContentsWrapper* contents); | 70 virtual void TabDeselected(TabContentsWrapper* contents); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 83 private: | 85 private: |
| 84 TabHandlerDelegate* delegate_; | 86 TabHandlerDelegate* delegate_; |
| 85 | 87 |
| 86 scoped_ptr<TabStripModel> model_; | 88 scoped_ptr<TabStripModel> model_; |
| 87 | 89 |
| 88 DISALLOW_COPY_AND_ASSIGN(DefaultTabHandler); | 90 DISALLOW_COPY_AND_ASSIGN(DefaultTabHandler); |
| 89 }; | 91 }; |
| 90 | 92 |
| 91 #endif // CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ | 93 #endif // CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ |
| 92 | 94 |
| OLD | NEW |