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

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

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 #include "chrome/browser/ui/tabs/test_tab_strip_model_delegate.h" 5 #include "chrome/browser/ui/tabs/test_tab_strip_model_delegate.h"
6 6
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 8 #include "chrome/browser/ui/tab_contents/tab_contents.h"
9 #include "chrome/browser/ui/tabs/dock_info.h" 9 #include "chrome/browser/ui/tabs/dock_info.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
11 11
12 using content::SiteInstance; 12 using content::SiteInstance;
13 13
14 TestTabStripModelDelegate::TestTabStripModelDelegate() { 14 TestTabStripModelDelegate::TestTabStripModelDelegate() {
15 } 15 }
16 16
17 TestTabStripModelDelegate::~TestTabStripModelDelegate() { 17 TestTabStripModelDelegate::~TestTabStripModelDelegate() {
18 } 18 }
19 19
20 TabContentsWrapper* TestTabStripModelDelegate::AddBlankTab(bool foreground) { 20 TabContents* TestTabStripModelDelegate::AddBlankTab(bool foreground) {
21 return NULL; 21 return NULL;
22 } 22 }
23 23
24 TabContentsWrapper* TestTabStripModelDelegate::AddBlankTabAt(int index, 24 TabContents* TestTabStripModelDelegate::AddBlankTabAt(int index,
25 bool foreground) { 25 bool foreground) {
26 return NULL; 26 return NULL;
27 } 27 }
28 28
29 Browser* TestTabStripModelDelegate::CreateNewStripWithContents( 29 Browser* TestTabStripModelDelegate::CreateNewStripWithContents(
30 TabContentsWrapper* contents, 30 TabContents* contents,
31 const gfx::Rect& window_bounds, 31 const gfx::Rect& window_bounds,
32 const DockInfo& dock_info, 32 const DockInfo& dock_info,
33 bool maximize) { 33 bool maximize) {
34 return NULL; 34 return NULL;
35 } 35 }
36 36
37 int TestTabStripModelDelegate::GetDragActions() const { 37 int TestTabStripModelDelegate::GetDragActions() const {
38 return 0; 38 return 0;
39 } 39 }
40 40
41 TabContentsWrapper* TestTabStripModelDelegate::CreateTabContentsForURL( 41 TabContents* TestTabStripModelDelegate::CreateTabContentsForURL(
42 const GURL& url, 42 const GURL& url,
43 const content::Referrer& referrer, 43 const content::Referrer& referrer,
44 Profile* profile, 44 Profile* profile,
45 content::PageTransition transition, 45 content::PageTransition transition,
46 bool defer_load, 46 bool defer_load,
47 SiteInstance* instance) const { 47 SiteInstance* instance) const {
48 return NULL; 48 return NULL;
49 } 49 }
50 50
51 bool TestTabStripModelDelegate::CanDuplicateContentsAt(int index) { 51 bool TestTabStripModelDelegate::CanDuplicateContentsAt(int index) {
52 return false; 52 return false;
53 } 53 }
54 54
55 void TestTabStripModelDelegate::DuplicateContentsAt(int index) { 55 void TestTabStripModelDelegate::DuplicateContentsAt(int index) {
56 } 56 }
57 57
58 void TestTabStripModelDelegate::CloseFrameAfterDragSession() { 58 void TestTabStripModelDelegate::CloseFrameAfterDragSession() {
59 } 59 }
60 60
61 void TestTabStripModelDelegate::CreateHistoricalTab( 61 void TestTabStripModelDelegate::CreateHistoricalTab(TabContents* contents) {
62 TabContentsWrapper* contents) {
63 } 62 }
64 63
65 bool TestTabStripModelDelegate::RunUnloadListenerBeforeClosing( 64 bool TestTabStripModelDelegate::RunUnloadListenerBeforeClosing(
66 TabContentsWrapper* contents) { 65 TabContents* contents) {
67 return true; 66 return true;
68 } 67 }
69 68
70 bool TestTabStripModelDelegate::CanRestoreTab() { 69 bool TestTabStripModelDelegate::CanRestoreTab() {
71 return false; 70 return false;
72 } 71 }
73 72
74 void TestTabStripModelDelegate::RestoreTab() { 73 void TestTabStripModelDelegate::RestoreTab() {
75 } 74 }
76 75
77 bool TestTabStripModelDelegate::CanCloseContents(std::vector<int>* indices) { 76 bool TestTabStripModelDelegate::CanCloseContents(std::vector<int>* indices) {
78 return true; 77 return true;
79 } 78 }
80 79
81 bool TestTabStripModelDelegate::CanBookmarkAllTabs() const { 80 bool TestTabStripModelDelegate::CanBookmarkAllTabs() const {
82 return true; 81 return true;
83 } 82 }
84 83
85 void TestTabStripModelDelegate::BookmarkAllTabs() { 84 void TestTabStripModelDelegate::BookmarkAllTabs() {
86 } 85 }
87 86
88 bool TestTabStripModelDelegate::CanCloseTab() const { 87 bool TestTabStripModelDelegate::CanCloseTab() const {
89 return true; 88 return true;
90 } 89 }
91 90
92 bool TestTabStripModelDelegate::LargeIconsPermitted() const { 91 bool TestTabStripModelDelegate::LargeIconsPermitted() const {
93 return true; 92 return true;
94 } 93 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/tabs/test_tab_strip_model_delegate.h ('k') | chrome/browser/ui/toolbar/wrench_menu_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698