| 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 #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 Loading... |
| 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_ |
| OLD | NEW |