| 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 #include "app/system_monitor.h" | 5 #include "app/system_monitor.h" |
| 6 #include "base/file_path.h" | 6 #include "base/file_path.h" |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 virtual bool RunUnloadListenerBeforeClosing(TabContents* contents) { | 74 virtual bool RunUnloadListenerBeforeClosing(TabContents* contents) { |
| 75 return run_unload_; | 75 return run_unload_; |
| 76 } | 76 } |
| 77 virtual bool CanRestoreTab() { return false; } | 77 virtual bool CanRestoreTab() { return false; } |
| 78 virtual void RestoreTab() {} | 78 virtual void RestoreTab() {} |
| 79 virtual bool CanCloseContentsAt(int index) { return can_close_ ; } | 79 virtual bool CanCloseContentsAt(int index) { return can_close_ ; } |
| 80 virtual bool CanBookmarkAllTabs() const { return false; } | 80 virtual bool CanBookmarkAllTabs() const { return false; } |
| 81 virtual void BookmarkAllTabs() {} | 81 virtual void BookmarkAllTabs() {} |
| 82 virtual bool UseVerticalTabs() const { return false; } | 82 virtual bool UseVerticalTabs() const { return false; } |
| 83 virtual void ToggleUseVerticalTabs() {} | 83 virtual void ToggleUseVerticalTabs() {} |
| 84 virtual bool LargeIconsPermitted() const { return true; } |
| 84 | 85 |
| 85 private: | 86 private: |
| 86 // A dummy TabContents we give to callers that expect us to actually build a | 87 // A dummy TabContents we give to callers that expect us to actually build a |
| 87 // Destinations tab for them. | 88 // Destinations tab for them. |
| 88 TabContents* dummy_contents_; | 89 TabContents* dummy_contents_; |
| 89 | 90 |
| 90 // Whether tabs can be closed. | 91 // Whether tabs can be closed. |
| 91 bool can_close_; | 92 bool can_close_; |
| 92 | 93 |
| 93 // Whether to report that we need to run an unload listener before closing. | 94 // Whether to report that we need to run an unload listener before closing. |
| (...skipping 1832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1926 // Deleting the strip should delete the phanton tabcontents and result in one | 1927 // Deleting the strip should delete the phanton tabcontents and result in one |
| 1927 // TAB_CONTENTS_DESTROYED. | 1928 // TAB_CONTENTS_DESTROYED. |
| 1928 EXPECT_CALL(notification_observer, Observe(_, _, _)).Times(1); | 1929 EXPECT_CALL(notification_observer, Observe(_, _, _)).Times(1); |
| 1929 | 1930 |
| 1930 // Delete the tabstrip. | 1931 // Delete the tabstrip. |
| 1931 strip.reset(); | 1932 strip.reset(); |
| 1932 | 1933 |
| 1933 // And there should have been no methods sent to the TabStripModelObserver. | 1934 // And there should have been no methods sent to the TabStripModelObserver. |
| 1934 EXPECT_EQ(0, tabstrip_observer.GetStateCount()); | 1935 EXPECT_EQ(0, tabstrip_observer.GetStateCount()); |
| 1935 } | 1936 } |
| OLD | NEW |