| 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 void AddTabAt(const GURL& url, int index, bool foregroud) OVERRIDE; | 19 virtual void AddTabAt(const GURL& url, int index, bool foregroud) override; |
| 20 virtual Browser* CreateNewStripWithContents( | 20 virtual Browser* CreateNewStripWithContents( |
| 21 const std::vector<NewStripContents>& contentses, | 21 const std::vector<NewStripContents>& contentses, |
| 22 const gfx::Rect& window_bounds, | 22 const gfx::Rect& window_bounds, |
| 23 bool maximize) OVERRIDE; | 23 bool maximize) override; |
| 24 virtual void WillAddWebContents(content::WebContents* contents) OVERRIDE; | 24 virtual void WillAddWebContents(content::WebContents* contents) override; |
| 25 virtual int GetDragActions() const OVERRIDE; | 25 virtual int GetDragActions() const override; |
| 26 virtual bool CanDuplicateContentsAt(int index) OVERRIDE; | 26 virtual bool CanDuplicateContentsAt(int index) override; |
| 27 virtual void DuplicateContentsAt(int index) OVERRIDE; | 27 virtual void DuplicateContentsAt(int index) override; |
| 28 virtual void CreateHistoricalTab(content::WebContents* contents) OVERRIDE; | 28 virtual void CreateHistoricalTab(content::WebContents* contents) override; |
| 29 virtual bool ShouldRunUnloadListenerBeforeClosing( | 29 virtual bool ShouldRunUnloadListenerBeforeClosing( |
| 30 content::WebContents* contents) OVERRIDE; | 30 content::WebContents* contents) override; |
| 31 virtual bool RunUnloadListenerBeforeClosing( | 31 virtual bool RunUnloadListenerBeforeClosing( |
| 32 content::WebContents* contents) OVERRIDE; | 32 content::WebContents* contents) override; |
| 33 virtual RestoreTabType GetRestoreTabType() OVERRIDE; | 33 virtual RestoreTabType GetRestoreTabType() override; |
| 34 virtual void RestoreTab() OVERRIDE; | 34 virtual void RestoreTab() override; |
| 35 virtual bool CanBookmarkAllTabs() const OVERRIDE; | 35 virtual bool CanBookmarkAllTabs() const override; |
| 36 virtual void BookmarkAllTabs() OVERRIDE; | 36 virtual void BookmarkAllTabs() override; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 DISALLOW_COPY_AND_ASSIGN(TestTabStripModelDelegate); | 39 DISALLOW_COPY_AND_ASSIGN(TestTabStripModelDelegate); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 #endif // CHROME_BROWSER_UI_TABS_TEST_TAB_STRIP_MODEL_DELEGATE_H_ | 42 #endif // CHROME_BROWSER_UI_TABS_TEST_TAB_STRIP_MODEL_DELEGATE_H_ |
| OLD | NEW |