| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/views/tabs/browser_tab_strip.h" | 5 #include "chrome/browser/views/tabs/browser_tab_strip.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profile.h" |
| 9 #include "chrome/browser/tab_contents/tab_contents.h" | 9 #include "chrome/browser/tab_contents/tab_contents.h" |
| 10 #include "chrome/browser/views/tabs/tab_strip.h" // for CreateTabStrip only. | 10 #include "chrome/browser/views/tabs/tab_strip.h" // for CreateTabStrip only. |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 void BrowserTabStrip::TabSelectedAt(TabContents* old_contents, | 123 void BrowserTabStrip::TabSelectedAt(TabContents* old_contents, |
| 124 TabContents* contents, | 124 TabContents* contents, |
| 125 int index, | 125 int index, |
| 126 bool user_gesture) { | 126 bool user_gesture) { |
| 127 TabStrip2::SelectTabAt(index); | 127 TabStrip2::SelectTabAt(index); |
| 128 } | 128 } |
| 129 | 129 |
| 130 void BrowserTabStrip::TabMoved(TabContents* contents, | 130 void BrowserTabStrip::TabMoved(TabContents* contents, |
| 131 int from_index, | 131 int from_index, |
| 132 int to_index) { | 132 int to_index, |
| 133 bool pinned_state_changed) { |
| 133 TabStrip2::MoveTabAt(from_index, to_index); | 134 TabStrip2::MoveTabAt(from_index, to_index); |
| 134 } | 135 } |
| 135 | 136 |
| 136 void BrowserTabStrip::TabChangedAt(TabContents* contents, int index) { | 137 void BrowserTabStrip::TabChangedAt(TabContents* contents, int index) { |
| 137 // TODO | 138 // TODO |
| 138 } | 139 } |
| 139 | 140 |
| 140 //////////////////////////////////////////////////////////////////////////////// | 141 //////////////////////////////////////////////////////////////////////////////// |
| 141 // BrowserTabStrip, TabStrip2Model overrides: | 142 // BrowserTabStrip, TabStrip2Model overrides: |
| 142 | 143 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 237 |
| 237 //////////////////////////////////////////////////////////////////////////////// | 238 //////////////////////////////////////////////////////////////////////////////// |
| 238 // TabStripWrapper, public: | 239 // TabStripWrapper, public: |
| 239 | 240 |
| 240 // static | 241 // static |
| 241 TabStripWrapper* TabStripWrapper::CreateTabStrip(TabStripModel* model) { | 242 TabStripWrapper* TabStripWrapper::CreateTabStrip(TabStripModel* model) { |
| 242 if (TabStrip2::Enabled()) | 243 if (TabStrip2::Enabled()) |
| 243 return new BrowserTabStrip(model); | 244 return new BrowserTabStrip(model); |
| 244 return new TabStrip(model); | 245 return new TabStrip(model); |
| 245 } | 246 } |
| OLD | NEW |