| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_ORDER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_TABS_TAB_STRIP_MODEL_ORDER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_ORDER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_ORDER_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/tabs/tab_strip_model.h" | 9 #include "chrome/browser/tabs/tab_strip_model.h" |
| 10 #include "chrome/common/page_transition_types.h" | 10 #include "content/common/page_transition_types.h" |
| 11 | 11 |
| 12 class TabContentsWrapper; | 12 class TabContentsWrapper; |
| 13 | 13 |
| 14 /////////////////////////////////////////////////////////////////////////////// | 14 /////////////////////////////////////////////////////////////////////////////// |
| 15 // TabStripModelOrderController | 15 // TabStripModelOrderController |
| 16 // | 16 // |
| 17 // An object that allows different types of ordering and reselection to be | 17 // An object that allows different types of ordering and reselection to be |
| 18 // heuristics plugged into a TabStripModel. | 18 // heuristics plugged into a TabStripModel. |
| 19 // | 19 // |
| 20 class TabStripModelOrderController : public TabStripModelObserver { | 20 class TabStripModelOrderController : public TabStripModelObserver { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 int GetValidIndex(int index, int removing_index) const; | 55 int GetValidIndex(int index, int removing_index) const; |
| 56 | 56 |
| 57 TabStripModel* tabstrip_; | 57 TabStripModel* tabstrip_; |
| 58 | 58 |
| 59 TabStripModel::InsertionPolicy insertion_policy_; | 59 TabStripModel::InsertionPolicy insertion_policy_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(TabStripModelOrderController); | 61 DISALLOW_COPY_AND_ASSIGN(TabStripModelOrderController); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_ORDER_CONTROLLER_H_ | 64 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_ORDER_CONTROLLER_H_ |
| OLD | NEW |