| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/metrics/nacl_histogram.h" | 5 #include "base/metrics/nacl_histogram.h" |
| 6 #include "chrome/browser/tabs/default_tab_handler.h" | 6 #include "chrome/browser/tabs/default_tab_handler.h" |
| 7 #include "chrome/browser/tabs/tab_strip_model.h" | 7 #include "chrome/browser/tabs/tab_strip_model.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 | 9 |
| 10 //////////////////////////////////////////////////////////////////////////////// | 10 //////////////////////////////////////////////////////////////////////////////// |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 index, | 164 index, |
| 165 user_gesture); | 165 user_gesture); |
| 166 } | 166 } |
| 167 | 167 |
| 168 void DefaultTabHandler::TabMoved(TabContentsWrapper* contents, | 168 void DefaultTabHandler::TabMoved(TabContentsWrapper* contents, |
| 169 int from_index, | 169 int from_index, |
| 170 int to_index) { | 170 int to_index) { |
| 171 delegate_->AsBrowser()->TabMoved(contents, from_index, to_index); | 171 delegate_->AsBrowser()->TabMoved(contents, from_index, to_index); |
| 172 } | 172 } |
| 173 | 173 |
| 174 void DefaultTabHandler::TabReplacedAt(TabContentsWrapper* old_contents, | 174 void DefaultTabHandler::TabReplacedAt(TabStripModel* tab_strip_model, |
| 175 TabContentsWrapper* old_contents, |
| 175 TabContentsWrapper* new_contents, | 176 TabContentsWrapper* new_contents, |
| 176 int index) { | 177 int index) { |
| 177 delegate_->AsBrowser()->TabReplacedAt(old_contents, new_contents, index); | 178 delegate_->AsBrowser()->TabReplacedAt(tab_strip_model, old_contents, |
| 179 new_contents, index); |
| 178 } | 180 } |
| 179 | 181 |
| 180 void DefaultTabHandler::TabPinnedStateChanged(TabContentsWrapper* contents, | 182 void DefaultTabHandler::TabPinnedStateChanged(TabContentsWrapper* contents, |
| 181 int index) { | 183 int index) { |
| 182 delegate_->AsBrowser()->TabPinnedStateChanged(contents, index); | 184 delegate_->AsBrowser()->TabPinnedStateChanged(contents, index); |
| 183 } | 185 } |
| 184 | 186 |
| 185 void DefaultTabHandler::TabStripEmpty() { | 187 void DefaultTabHandler::TabStripEmpty() { |
| 186 delegate_->AsBrowser()->TabStripEmpty(); | 188 delegate_->AsBrowser()->TabStripEmpty(); |
| 187 } | 189 } |
| 188 | 190 |
| 189 //////////////////////////////////////////////////////////////////////////////// | 191 //////////////////////////////////////////////////////////////////////////////// |
| 190 // TabHandler, public: | 192 // TabHandler, public: |
| 191 | 193 |
| 192 // static | 194 // static |
| 193 TabHandler* TabHandler::CreateTabHandler(TabHandlerDelegate* delegate) { | 195 TabHandler* TabHandler::CreateTabHandler(TabHandlerDelegate* delegate) { |
| 194 return new DefaultTabHandler(delegate); | 196 return new DefaultTabHandler(delegate); |
| 195 } | 197 } |
| 196 | 198 |
| OLD | NEW |