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_UI_GTK_TABS_TAB_STRIP_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 #include <vector> | 10 #include <vector> |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 // ViewIDUtil::Delegate implementation --------------------------------------- | 101 // ViewIDUtil::Delegate implementation --------------------------------------- |
102 virtual GtkWidget* GetWidgetForViewID(ViewID id); | 102 virtual GtkWidget* GetWidgetForViewID(ViewID id); |
103 | 103 |
104 protected: | 104 protected: |
105 // TabStripModelObserver implementation: | 105 // TabStripModelObserver implementation: |
106 virtual void TabInsertedAt(TabContentsWrapper* contents, | 106 virtual void TabInsertedAt(TabContentsWrapper* contents, |
107 int index, | 107 int index, |
108 bool foreground); | 108 bool foreground); |
109 virtual void TabDetachedAt(TabContentsWrapper* contents, int index); | 109 virtual void TabDetachedAt(TabContentsWrapper* contents, int index); |
110 virtual void TabSelectedAt(TabContentsWrapper* old_contents, | 110 virtual void ActiveTabChanged(TabContentsWrapper* old_contents, |
111 TabContentsWrapper* contents, | 111 TabContentsWrapper* contents, |
112 int index, | 112 int index, |
113 bool user_gesture); | 113 bool user_gesture); |
114 virtual void TabMoved(TabContentsWrapper* contents, | 114 virtual void TabMoved(TabContentsWrapper* contents, |
115 int from_index, | 115 int from_index, |
116 int to_index); | 116 int to_index); |
117 virtual void TabChangedAt(TabContentsWrapper* contents, int index, | 117 virtual void TabChangedAt(TabContentsWrapper* contents, int index, |
118 TabChangeType change_type); | 118 TabChangeType change_type); |
119 virtual void TabReplacedAt(TabStripModel* tab_strip_model, | 119 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
120 TabContentsWrapper* old_contents, | 120 TabContentsWrapper* old_contents, |
121 TabContentsWrapper* new_contents, | 121 TabContentsWrapper* new_contents, |
122 int index); | 122 int index); |
123 virtual void TabMiniStateChanged(TabContentsWrapper* contents, int index); | 123 virtual void TabMiniStateChanged(TabContentsWrapper* contents, int index); |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 // True if the tabstrip has already been added as a MessageLoop observer. | 461 // True if the tabstrip has already been added as a MessageLoop observer. |
462 bool added_as_message_loop_observer_; | 462 bool added_as_message_loop_observer_; |
463 | 463 |
464 // Helper for performing tab selection as a result of dragging over a tab. | 464 // Helper for performing tab selection as a result of dragging over a tab. |
465 HoverTabSelector hover_tab_selector_; | 465 HoverTabSelector hover_tab_selector_; |
466 | 466 |
467 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); | 467 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); |
468 }; | 468 }; |
469 | 469 |
470 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ | 470 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ |
OLD | NEW |