| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_TABS_TEST_TAB_STRIP_MODEL_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_TABS_TEST_TAB_STRIP_MODEL_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_TABS_TEST_TAB_STRIP_MODEL_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_TABS_TEST_TAB_STRIP_MODEL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h" | 10 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h" |
| 11 | 11 |
| 12 // Mock TabStripModelDelegate. | 12 // Mock TabStripModelDelegate. |
| 13 class TestTabStripModelDelegate : public TabStripModelDelegate { | 13 class TestTabStripModelDelegate : public TabStripModelDelegate { |
| 14 public: | 14 public: |
| 15 TestTabStripModelDelegate(); | 15 TestTabStripModelDelegate(); |
| 16 virtual ~TestTabStripModelDelegate(); | 16 virtual ~TestTabStripModelDelegate(); |
| 17 | 17 |
| 18 // Overridden from TabStripModelDelegate: | 18 // Overridden from TabStripModelDelegate: |
| 19 virtual TabContents* AddBlankTab(bool foreground) OVERRIDE; | 19 virtual void AddBlankTabAt(int index, bool foreground) OVERRIDE; |
| 20 virtual TabContents* AddBlankTabAt(int index, | |
| 21 bool foreground) OVERRIDE; | |
| 22 virtual Browser* CreateNewStripWithContents( | 20 virtual Browser* CreateNewStripWithContents( |
| 23 const std::vector<NewStripContents>& contentses, | 21 const std::vector<NewStripContents>& contentses, |
| 24 const gfx::Rect& window_bounds, | 22 const gfx::Rect& window_bounds, |
| 25 const DockInfo& dock_info, | 23 const DockInfo& dock_info, |
| 26 bool maximize) OVERRIDE; | 24 bool maximize) OVERRIDE; |
| 27 virtual int GetDragActions() const OVERRIDE; | 25 virtual int GetDragActions() const OVERRIDE; |
| 28 virtual TabContents* CreateTabContentsForURL( | 26 virtual TabContents* CreateTabContentsForURL( |
| 29 const GURL& url, | 27 const GURL& url, |
| 30 const content::Referrer& referrer, | 28 const content::Referrer& referrer, |
| 31 Profile* profile, | 29 Profile* profile, |
| 32 content::PageTransition transition, | 30 content::PageTransition transition, |
| 33 bool defer_load, | 31 bool defer_load, |
| 34 content::SiteInstance* instance) const OVERRIDE; | 32 content::SiteInstance* instance) const OVERRIDE; |
| 35 virtual bool CanDuplicateContentsAt(int index) OVERRIDE; | 33 virtual bool CanDuplicateContentsAt(int index) OVERRIDE; |
| 36 virtual void DuplicateContentsAt(int index) OVERRIDE; | 34 virtual void DuplicateContentsAt(int index) OVERRIDE; |
| 37 virtual void CloseFrameAfterDragSession() OVERRIDE; | 35 virtual void CloseFrameAfterDragSession() OVERRIDE; |
| 38 virtual void CreateHistoricalTab(TabContents* contents) OVERRIDE; | 36 virtual void CreateHistoricalTab(TabContents* contents) OVERRIDE; |
| 39 virtual bool RunUnloadListenerBeforeClosing(TabContents* contents) OVERRIDE; | 37 virtual bool RunUnloadListenerBeforeClosing(TabContents* contents) OVERRIDE; |
| 40 virtual bool CanRestoreTab() OVERRIDE; | 38 virtual bool CanRestoreTab() OVERRIDE; |
| 41 virtual void RestoreTab() OVERRIDE; | 39 virtual void RestoreTab() OVERRIDE; |
| 42 virtual bool CanBookmarkAllTabs() const OVERRIDE; | 40 virtual bool CanBookmarkAllTabs() const OVERRIDE; |
| 43 virtual void BookmarkAllTabs() OVERRIDE; | 41 virtual void BookmarkAllTabs() OVERRIDE; |
| 44 | 42 |
| 45 private: | 43 private: |
| 46 DISALLOW_COPY_AND_ASSIGN(TestTabStripModelDelegate); | 44 DISALLOW_COPY_AND_ASSIGN(TestTabStripModelDelegate); |
| 47 }; | 45 }; |
| 48 | 46 |
| 49 #endif // CHROME_BROWSER_UI_TABS_TEST_TAB_STRIP_MODEL_DELEGATE_H_ | 47 #endif // CHROME_BROWSER_UI_TABS_TEST_TAB_STRIP_MODEL_DELEGATE_H_ |
| OLD | NEW |