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

Side by Side Diff: chrome/browser/views/tabs/browser_tab_strip.cc

Issue 155441: Nukes the 3 arg TabMoved variant in favor of the 4 arg variant.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/browser_tab_strip.h ('k') | chrome/browser/views/tabs/tab_overview_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698