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

Side by Side Diff: chrome/browser/tabs/default_tab_handler.cc

Issue 6155003: Changes instant so that the newly created tab has a new id. Doing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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
« no previous file with comments | « chrome/browser/tabs/default_tab_handler.h ('k') | chrome/browser/tabs/tab_strip_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/tabs/default_tab_handler.h ('k') | chrome/browser/tabs/tab_strip_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698