OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/tabs/tab_strip_model.h" | 5 #include "chrome/browser/tabs/tab_strip_model.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 bool maximize) { | 98 bool maximize) { |
99 return NULL; | 99 return NULL; |
100 } | 100 } |
101 virtual void ContinueDraggingDetachedTab(TabContentsWrapper* contents, | 101 virtual void ContinueDraggingDetachedTab(TabContentsWrapper* contents, |
102 const gfx::Rect& window_bounds, | 102 const gfx::Rect& window_bounds, |
103 const gfx::Rect& tab_bounds) { | 103 const gfx::Rect& tab_bounds) { |
104 } | 104 } |
105 virtual int GetDragActions() const { return 0; } | 105 virtual int GetDragActions() const { return 0; } |
106 virtual TabContentsWrapper* CreateTabContentsForURL( | 106 virtual TabContentsWrapper* CreateTabContentsForURL( |
107 const GURL& url, | 107 const GURL& url, |
108 const GURL& referrer, | 108 const content::Referrer& referrer, |
109 Profile* profile, | 109 Profile* profile, |
110 content::PageTransition transition, | 110 content::PageTransition transition, |
111 bool defer_load, | 111 bool defer_load, |
112 SiteInstance* instance) const { | 112 SiteInstance* instance) const { |
113 if (url == GURL(chrome::kChromeUINewTabURL)) | 113 if (url == GURL(chrome::kChromeUINewTabURL)) |
114 return dummy_contents_; | 114 return dummy_contents_; |
115 return NULL; | 115 return NULL; |
116 } | 116 } |
117 virtual bool CanDuplicateContentsAt(int index) { return false; } | 117 virtual bool CanDuplicateContentsAt(int index) { return false; } |
118 virtual void DuplicateContentsAt(int index) {} | 118 virtual void DuplicateContentsAt(int index) {} |
(...skipping 2256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2375 ASSERT_EQ(1, observer.GetStateCount()); | 2375 ASSERT_EQ(1, observer.GetStateCount()); |
2376 MockTabStripModelObserver::State s( | 2376 MockTabStripModelObserver::State s( |
2377 contents2, 1, MockTabStripModelObserver::SELECT); | 2377 contents2, 1, MockTabStripModelObserver::SELECT); |
2378 s.src_contents = contents2; | 2378 s.src_contents = contents2; |
2379 s.src_index = 1; | 2379 s.src_index = 1; |
2380 s.user_gesture = false; | 2380 s.user_gesture = false; |
2381 EXPECT_TRUE(observer.StateEquals(0, s)); | 2381 EXPECT_TRUE(observer.StateEquals(0, s)); |
2382 strip.RemoveObserver(&observer); | 2382 strip.RemoveObserver(&observer); |
2383 strip.CloseAllTabs(); | 2383 strip.CloseAllTabs(); |
2384 } | 2384 } |
OLD | NEW |