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

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

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 #ifndef CHROME_BROWSER_TABS_TAB_STRIP_SELECTION_MODEL_H_ 5 #ifndef CHROME_BROWSER_TABS_TAB_STRIP_SELECTION_MODEL_H_
6 #define CHROME_BROWSER_TABS_TAB_STRIP_SELECTION_MODEL_H_ 6 #define CHROME_BROWSER_TABS_TAB_STRIP_SELECTION_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // selected indices. 88 // selected indices.
89 void Clear(); 89 void Clear();
90 90
91 // Returns the selected indices. The selection is always ordered in acending 91 // Returns the selected indices. The selection is always ordered in acending
92 // order. 92 // order.
93 const SelectedIndices& selected_indices() const { return selected_indices_; } 93 const SelectedIndices& selected_indices() const { return selected_indices_; }
94 94
95 // Copies the selection from |source| to this. 95 // Copies the selection from |source| to this.
96 void Copy(const TabStripSelectionModel& source); 96 void Copy(const TabStripSelectionModel& source);
97 97
98 // Compares this selection with |rhs|.
99 bool Equals(const TabStripSelectionModel& rhs) const;
100
98 private: 101 private:
99 SelectedIndices selected_indices_; 102 SelectedIndices selected_indices_;
100 103
101 int active_; 104 int active_;
102 105
103 int anchor_; 106 int anchor_;
104 107
105 DISALLOW_COPY_AND_ASSIGN(TabStripSelectionModel); 108 DISALLOW_COPY_AND_ASSIGN(TabStripSelectionModel);
106 }; 109 };
107 110
108 #endif // CHROME_BROWSER_TABS_TAB_STRIP_SELECTION_MODEL_H_ 111 #endif // CHROME_BROWSER_TABS_TAB_STRIP_SELECTION_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/tabs/tab_strip_model_unittest.cc ('k') | chrome/browser/tabs/tab_strip_selection_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698