Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_TABS_TAB_STRIP_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_ |
| 6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_ | 6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 452 | 452 |
| 453 private: | 453 private: |
| 454 // Used when making selection notifications. | 454 // Used when making selection notifications. |
| 455 enum NotifyTypes { | 455 enum NotifyTypes { |
| 456 NOTIFY_DEFAULT, | 456 NOTIFY_DEFAULT, |
| 457 | 457 |
| 458 // The selection is changing from a user gesture. | 458 // The selection is changing from a user gesture. |
| 459 NOTIFY_USER_GESTURE, | 459 NOTIFY_USER_GESTURE, |
| 460 }; | 460 }; |
| 461 | 461 |
| 462 // Conveniance for converting a vector of indices into a vector of | |
|
Avi (use Gerrit)
2013/06/03 18:41:35
typo: Convenience
| |
| 463 // WebContents. | |
| 464 std::vector<content::WebContents*> GetWebContentsFromIndicies( | |
|
Avi (use Gerrit)
2013/06/03 18:41:35
typo: Indices
| |
| 465 const std::vector<int>& indices) const; | |
| 466 | |
| 462 // Gets the set of tab indices whose domain matches the tab at |index|. | 467 // Gets the set of tab indices whose domain matches the tab at |index|. |
| 463 void GetIndicesWithSameDomain(int index, std::vector<int>* indices); | 468 void GetIndicesWithSameDomain(int index, std::vector<int>* indices); |
| 464 | 469 |
| 465 // Gets the set of tab indices that have the same opener as the tab at | 470 // Gets the set of tab indices that have the same opener as the tab at |
| 466 // |index|. | 471 // |index|. |
| 467 void GetIndicesWithSameOpener(int index, std::vector<int>* indices); | 472 void GetIndicesWithSameOpener(int index, std::vector<int>* indices); |
| 468 | 473 |
| 469 // If |index| is selected all the selected indices are returned, otherwise a | 474 // If |index| is selected all the selected indices are returned, otherwise a |
| 470 // vector with |index| is returned. This is used when executing commands to | 475 // vector with |index| is returned. This is used when executing commands to |
| 471 // determine which indices the command applies to. | 476 // determine which indices the command applies to. |
| (...skipping 162 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 content::NotificationRegistrar registrar_; | 641 content::NotificationRegistrar registrar_; |
| 637 | 642 |
| 638 ui::ListSelectionModel selection_model_; | 643 ui::ListSelectionModel selection_model_; |
| 639 | 644 |
| 640 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel); | 645 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel); |
| 641 }; | 646 }; |
| 642 | 647 |
| 643 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_ | 648 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_ |
| OLD | NEW |