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 "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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 } | 155 } |
156 | 156 |
157 void DefaultTabHandler::TabDetachedAt(TabContentsWrapper* contents, int index) { | 157 void DefaultTabHandler::TabDetachedAt(TabContentsWrapper* contents, int index) { |
158 delegate_->AsBrowser()->TabDetachedAt(contents, index); | 158 delegate_->AsBrowser()->TabDetachedAt(contents, index); |
159 } | 159 } |
160 | 160 |
161 void DefaultTabHandler::TabDeselected(TabContentsWrapper* contents) { | 161 void DefaultTabHandler::TabDeselected(TabContentsWrapper* contents) { |
162 delegate_->AsBrowser()->TabDeselected(contents); | 162 delegate_->AsBrowser()->TabDeselected(contents); |
163 } | 163 } |
164 | 164 |
165 void DefaultTabHandler::TabSelectedAt(TabContentsWrapper* old_contents, | 165 void DefaultTabHandler::ActiveTabChanged(TabContentsWrapper* old_contents, |
166 TabContentsWrapper* new_contents, | 166 TabContentsWrapper* new_contents, |
167 int index, | 167 int index, |
168 bool user_gesture) { | 168 bool user_gesture) { |
169 delegate_->AsBrowser()->TabSelectedAt(old_contents, | 169 delegate_->AsBrowser()->ActiveTabChanged(old_contents, |
170 new_contents, | 170 new_contents, |
171 index, | 171 index, |
172 user_gesture); | 172 user_gesture); |
173 } | 173 } |
174 | 174 |
175 void DefaultTabHandler::TabMoved(TabContentsWrapper* contents, | 175 void DefaultTabHandler::TabMoved(TabContentsWrapper* contents, |
176 int from_index, | 176 int from_index, |
177 int to_index) { | 177 int to_index) { |
178 delegate_->AsBrowser()->TabMoved(contents, from_index, to_index); | 178 delegate_->AsBrowser()->TabMoved(contents, from_index, to_index); |
179 } | 179 } |
180 | 180 |
181 void DefaultTabHandler::TabReplacedAt(TabStripModel* tab_strip_model, | 181 void DefaultTabHandler::TabReplacedAt(TabStripModel* tab_strip_model, |
182 TabContentsWrapper* old_contents, | 182 TabContentsWrapper* old_contents, |
(...skipping 12 matching lines...) Expand all Loading... |
195 delegate_->AsBrowser()->TabStripEmpty(); | 195 delegate_->AsBrowser()->TabStripEmpty(); |
196 } | 196 } |
197 | 197 |
198 //////////////////////////////////////////////////////////////////////////////// | 198 //////////////////////////////////////////////////////////////////////////////// |
199 // TabHandler, public: | 199 // TabHandler, public: |
200 | 200 |
201 // static | 201 // static |
202 TabHandler* TabHandler::CreateTabHandler(TabHandlerDelegate* delegate) { | 202 TabHandler* TabHandler::CreateTabHandler(TabHandlerDelegate* delegate) { |
203 return new DefaultTabHandler(delegate); | 203 return new DefaultTabHandler(delegate); |
204 } | 204 } |
205 | |
OLD | NEW |