Chromium Code Reviews| 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_MODEL_H_ | 5 #ifndef CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ |
| 6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ | 6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 518 // If the TabContentsWrapper at |to_index| differs from |old_contents| | 518 // If the TabContentsWrapper at |to_index| differs from |old_contents| |
| 519 // notifies observers. | 519 // notifies observers. |
| 520 void NotifyTabSelectedIfChanged(TabContentsWrapper* old_contents, | 520 void NotifyTabSelectedIfChanged(TabContentsWrapper* old_contents, |
| 521 int to_index, | 521 int to_index, |
| 522 bool user_gesture); | 522 bool user_gesture); |
| 523 | 523 |
| 524 // Notifies the observers the selection changed. |old_selected_index| gives | 524 // Notifies the observers the selection changed. |old_selected_index| gives |
| 525 // the old selected index. | 525 // the old selected index. |
| 526 void NotifySelectionChanged(int old_selected_index); | 526 void NotifySelectionChanged(int old_selected_index); |
| 527 | 527 |
| 528 // Notifies the observers the selection changed. |old_selected_indexes| gives | |
|
James Hawkins
2011/05/18 18:03:10
nit: The last sentence is a bit redundant. Somethi
dpapad
2011/06/01 18:05:41
Done.
| |
| 529 // the old selected indexes. | |
| 530 void NotifyMultipleSelectionChanged( | |
| 531 const std::vector<int>& old_selected_indexes); | |
| 532 | |
| 528 // Returns the number of New Tab tabs in the TabStripModel. | 533 // Returns the number of New Tab tabs in the TabStripModel. |
| 529 int GetNewTabCount() const; | 534 int GetNewTabCount() const; |
| 530 | 535 |
| 531 // Selects either the next tab (|foward| is true), or the previous tab | 536 // Selects either the next tab (|foward| is true), or the previous tab |
| 532 // (|forward| is false). | 537 // (|forward| is false). |
| 533 void SelectRelativeTab(bool forward); | 538 void SelectRelativeTab(bool forward); |
| 534 | 539 |
| 535 // Does the work of MoveTabContentsAt. This has no checks to make sure the | 540 // Does the work of MoveTabContentsAt. This has no checks to make sure the |
| 536 // position is valid, those are done in MoveTabContentsAt. | 541 // position is valid, those are done in MoveTabContentsAt. |
| 537 void MoveTabContentsAtImpl(int index, | 542 void MoveTabContentsAtImpl(int index, |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 634 | 639 |
| 635 // A scoped container for notification registries. | 640 // A scoped container for notification registries. |
| 636 NotificationRegistrar registrar_; | 641 NotificationRegistrar registrar_; |
| 637 | 642 |
| 638 TabStripSelectionModel selection_model_; | 643 TabStripSelectionModel selection_model_; |
| 639 | 644 |
| 640 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel); | 645 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel); |
| 641 }; | 646 }; |
| 642 | 647 |
| 643 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ | 648 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ |
| OLD | NEW |