| 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_DEFAULT_TAB_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ |
| 6 #define CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ | 6 #define CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 // Overridden from TabStripModelObserver: | 62 // Overridden from TabStripModelObserver: |
| 63 virtual void TabInsertedAt(TabContentsWrapper* contents, | 63 virtual void TabInsertedAt(TabContentsWrapper* contents, |
| 64 int index, | 64 int index, |
| 65 bool foreground); | 65 bool foreground); |
| 66 virtual void TabClosingAt(TabStripModel* tab_strip_model, | 66 virtual void TabClosingAt(TabStripModel* tab_strip_model, |
| 67 TabContentsWrapper* contents, | 67 TabContentsWrapper* contents, |
| 68 int index); | 68 int index); |
| 69 virtual void TabDetachedAt(TabContentsWrapper* contents, int index); | 69 virtual void TabDetachedAt(TabContentsWrapper* contents, int index); |
| 70 virtual void TabDeselected(TabContentsWrapper* contents); | 70 virtual void TabDeselected(TabContentsWrapper* contents); |
| 71 virtual void TabSelectedAt(TabContentsWrapper* old_contents, | 71 virtual void ActiveTabChanged(TabContentsWrapper* old_contents, |
| 72 TabContentsWrapper* new_contents, | 72 TabContentsWrapper* new_contents, |
| 73 int index, | 73 int index, |
| 74 bool user_gesture); | 74 bool user_gesture); |
| 75 virtual void TabMoved(TabContentsWrapper* contents, | 75 virtual void TabMoved(TabContentsWrapper* contents, |
| 76 int from_index, | 76 int from_index, |
| 77 int to_index); | 77 int to_index); |
| 78 virtual void TabReplacedAt(TabStripModel* tab_strip_model, | 78 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
| 79 TabContentsWrapper* old_contents, | 79 TabContentsWrapper* old_contents, |
| 80 TabContentsWrapper* new_contents, | 80 TabContentsWrapper* new_contents, |
| 81 int index); | 81 int index); |
| 82 virtual void TabPinnedStateChanged(TabContentsWrapper* contents, int index); | 82 virtual void TabPinnedStateChanged(TabContentsWrapper* contents, int index); |
| 83 virtual void TabStripEmpty(); | 83 virtual void TabStripEmpty(); |
| 84 | 84 |
| 85 private: | 85 private: |
| 86 TabHandlerDelegate* delegate_; | 86 TabHandlerDelegate* delegate_; |
| 87 | 87 |
| 88 scoped_ptr<TabStripModel> model_; | 88 scoped_ptr<TabStripModel> model_; |
| 89 | 89 |
| 90 DISALLOW_COPY_AND_ASSIGN(DefaultTabHandler); | 90 DISALLOW_COPY_AND_ASSIGN(DefaultTabHandler); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 #endif // CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ | 93 #endif // CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ |
| 94 | |
| OLD | NEW |