Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Side by Side Diff: chrome/browser/ui/tabs/test_tab_strip_model_delegate.h

Issue 10537062: TabContentsWrapper -> TabContents, part 13. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fiz Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h" 11 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h"
12 12
13 // Mock TabStripModelDelegate. 13 // Mock TabStripModelDelegate.
14 class TestTabStripModelDelegate : public TabStripModelDelegate { 14 class TestTabStripModelDelegate : public TabStripModelDelegate {
15 public: 15 public:
16 TestTabStripModelDelegate(); 16 TestTabStripModelDelegate();
17 virtual ~TestTabStripModelDelegate(); 17 virtual ~TestTabStripModelDelegate();
18 18
19 // Overridden from TabStripModelDelegate: 19 // Overridden from TabStripModelDelegate:
20 virtual TabContentsWrapper* AddBlankTab(bool foreground) OVERRIDE; 20 virtual TabContents* AddBlankTab(bool foreground) OVERRIDE;
21 virtual TabContentsWrapper* AddBlankTabAt(int index, 21 virtual TabContents* AddBlankTabAt(int index,
22 bool foreground) OVERRIDE; 22 bool foreground) OVERRIDE;
23 virtual Browser* CreateNewStripWithContents(TabContentsWrapper* contents, 23 virtual Browser* CreateNewStripWithContents(TabContents* contents,
24 const gfx::Rect& window_bounds, 24 const gfx::Rect& window_bounds,
25 const DockInfo& dock_info, 25 const DockInfo& dock_info,
26 bool maximize) OVERRIDE; 26 bool maximize) OVERRIDE;
27 virtual int GetDragActions() const OVERRIDE; 27 virtual int GetDragActions() const OVERRIDE;
28 virtual TabContentsWrapper* CreateTabContentsForURL( 28 virtual TabContents* CreateTabContentsForURL(
29 const GURL& url, 29 const GURL& url,
30 const content::Referrer& referrer, 30 const content::Referrer& referrer,
31 Profile* profile, 31 Profile* profile,
32 content::PageTransition transition, 32 content::PageTransition transition,
33 bool defer_load, 33 bool defer_load,
34 content::SiteInstance* instance) const OVERRIDE; 34 content::SiteInstance* instance) const OVERRIDE;
35 virtual bool CanDuplicateContentsAt(int index) OVERRIDE; 35 virtual bool CanDuplicateContentsAt(int index) OVERRIDE;
36 virtual void DuplicateContentsAt(int index) OVERRIDE; 36 virtual void DuplicateContentsAt(int index) OVERRIDE;
37 virtual void CloseFrameAfterDragSession() OVERRIDE; 37 virtual void CloseFrameAfterDragSession() OVERRIDE;
38 virtual void CreateHistoricalTab(TabContentsWrapper* contents) OVERRIDE; 38 virtual void CreateHistoricalTab(TabContents* contents) OVERRIDE;
39 virtual bool RunUnloadListenerBeforeClosing( 39 virtual bool RunUnloadListenerBeforeClosing(TabContents* contents) OVERRIDE;
40 TabContentsWrapper* contents) OVERRIDE;
41 virtual bool CanRestoreTab() OVERRIDE; 40 virtual bool CanRestoreTab() OVERRIDE;
42 virtual void RestoreTab() OVERRIDE; 41 virtual void RestoreTab() OVERRIDE;
43 virtual bool CanCloseContents(std::vector<int>* indices) OVERRIDE; 42 virtual bool CanCloseContents(std::vector<int>* indices) OVERRIDE;
44 virtual bool CanBookmarkAllTabs() const OVERRIDE; 43 virtual bool CanBookmarkAllTabs() const OVERRIDE;
45 virtual void BookmarkAllTabs() OVERRIDE; 44 virtual void BookmarkAllTabs() OVERRIDE;
46 virtual bool CanCloseTab() const OVERRIDE; 45 virtual bool CanCloseTab() const OVERRIDE;
47 virtual bool LargeIconsPermitted() const OVERRIDE; 46 virtual bool LargeIconsPermitted() const OVERRIDE;
48 47
49 private: 48 private:
50 DISALLOW_COPY_AND_ASSIGN(TestTabStripModelDelegate); 49 DISALLOW_COPY_AND_ASSIGN(TestTabStripModelDelegate);
51 }; 50 };
52 51
53 #endif // CHROME_BROWSER_UI_TABS_TEST_TAB_STRIP_MODEL_DELEGATE_H_ 52 #endif // CHROME_BROWSER_UI_TABS_TEST_TAB_STRIP_MODEL_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tabs/tab_strip_model_unittest.cc ('k') | chrome/browser/ui/tabs/test_tab_strip_model_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698