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

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

Issue 7215003: Multi-tab: Adding new Notification when tab selection changes (again). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing Created 9 years, 6 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) 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 "chrome/browser/tabs/tab_strip_selection_model.h" 5 #include "chrome/browser/tabs/tab_strip_selection_model.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <valarray> 8 #include <valarray>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 anchor_ = active_ = kUnselectedIndex; 134 anchor_ = active_ = kUnselectedIndex;
135 SelectedIndices empty_selection; 135 SelectedIndices empty_selection;
136 selected_indices_.swap(empty_selection); 136 selected_indices_.swap(empty_selection);
137 } 137 }
138 138
139 void TabStripSelectionModel::Copy(const TabStripSelectionModel& source) { 139 void TabStripSelectionModel::Copy(const TabStripSelectionModel& source) {
140 selected_indices_ = source.selected_indices_; 140 selected_indices_ = source.selected_indices_;
141 active_ = source.active_; 141 active_ = source.active_;
142 anchor_ = source.anchor_; 142 anchor_ = source.anchor_;
143 } 143 }
144
145 bool TabStripSelectionModel::Equals(const TabStripSelectionModel& rhs) const {
146 return active_ == rhs.active() &&
147 anchor_ == rhs.anchor() &&
148 selected_indices() == rhs.selected_indices();
149 }
OLDNEW
« no previous file with comments | « chrome/browser/tabs/tab_strip_selection_model.h ('k') | chrome/browser/tabs/tab_strip_selection_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698