| 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 | 407 |
| 408 const TabStripSelectionModel& selection_model() const { | 408 const TabStripSelectionModel& selection_model() const { |
| 409 return selection_model_; | 409 return selection_model_; |
| 410 } | 410 } |
| 411 | 411 |
| 412 // Command level API ///////////////////////////////////////////////////////// | 412 // Command level API ///////////////////////////////////////////////////////// |
| 413 | 413 |
| 414 // Adds a TabContents at the best position in the TabStripModel given | 414 // Adds a TabContents at the best position in the TabStripModel given |
| 415 // the specified insertion index, transition, etc. |add_types| is a bitmask of | 415 // the specified insertion index, transition, etc. |add_types| is a bitmask of |
| 416 // AddTabTypes; see it for details. This method ends up calling into | 416 // AddTabTypes; see it for details. This method ends up calling into |
| 417 // InsertTabContentsAt to do the actual insertion. | 417 // InsertTabContentsAt to do the actual insertion. Pass -1 for |index| to |
| 418 // append the contents to the end of the tab strip. |
| 418 void AddTabContents(TabContents* contents, | 419 void AddTabContents(TabContents* contents, |
| 419 int index, | 420 int index, |
| 420 content::PageTransition transition, | 421 content::PageTransition transition, |
| 421 int add_types); | 422 int add_types); |
| 422 | 423 |
| 423 // Closes the selected tabs. | 424 // Closes the selected tabs. |
| 424 void CloseSelectedTabs(); | 425 void CloseSelectedTabs(); |
| 425 | 426 |
| 426 // Select adjacent tabs | 427 // Select adjacent tabs |
| 427 void SelectNextTab(); | 428 void SelectNextTab(); |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 | 677 |
| 677 // A scoped container for notification registries. | 678 // A scoped container for notification registries. |
| 678 content::NotificationRegistrar registrar_; | 679 content::NotificationRegistrar registrar_; |
| 679 | 680 |
| 680 TabStripSelectionModel selection_model_; | 681 TabStripSelectionModel selection_model_; |
| 681 | 682 |
| 682 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel); | 683 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel); |
| 683 }; | 684 }; |
| 684 | 685 |
| 685 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_ | 686 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_ |
| OLD | NEW |