| 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_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 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 // ViewIDUtil::Delegate implementation --------------------------------------- | 106 // ViewIDUtil::Delegate implementation --------------------------------------- |
| 107 virtual GtkWidget* GetWidgetForViewID(ViewID id) OVERRIDE; | 107 virtual GtkWidget* GetWidgetForViewID(ViewID id) OVERRIDE; |
| 108 | 108 |
| 109 protected: | 109 protected: |
| 110 // TabStripModelObserver implementation: | 110 // TabStripModelObserver implementation: |
| 111 virtual void TabInsertedAt(content::WebContents* contents, | 111 virtual void TabInsertedAt(content::WebContents* contents, |
| 112 int index, | 112 int index, |
| 113 bool foreground) OVERRIDE; | 113 bool foreground) OVERRIDE; |
| 114 virtual void TabDetachedAt(content::WebContents* contents, | 114 virtual void TabDetachedAt(content::WebContents* contents, |
| 115 int index) OVERRIDE; | 115 int index, |
| 116 bool closing_all) OVERRIDE; |
| 116 virtual void TabMoved(content::WebContents* contents, | 117 virtual void TabMoved(content::WebContents* contents, |
| 117 int from_index, | 118 int from_index, |
| 118 int to_index) OVERRIDE; | 119 int to_index) OVERRIDE; |
| 119 virtual void ActiveTabChanged(content::WebContents* old_contents, | 120 virtual void ActiveTabChanged(content::WebContents* old_contents, |
| 120 content::WebContents* new_contents, | 121 content::WebContents* new_contents, |
| 121 int index, | 122 int index, |
| 122 int reason) OVERRIDE; | 123 int reason) OVERRIDE; |
| 123 virtual void TabSelectionChanged( | 124 virtual void TabSelectionChanged( |
| 124 TabStripModel* tab_strip_model, | 125 TabStripModel* tab_strip_model, |
| 125 const ui::ListSelectionModel& old_model) OVERRIDE; | 126 const ui::ListSelectionModel& old_model) OVERRIDE; |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 | 495 |
| 495 // Helper for performing tab selection as a result of dragging over a tab. | 496 // Helper for performing tab selection as a result of dragging over a tab. |
| 496 HoverTabSelector hover_tab_selector_; | 497 HoverTabSelector hover_tab_selector_; |
| 497 | 498 |
| 498 content::NotificationRegistrar registrar_; | 499 content::NotificationRegistrar registrar_; |
| 499 | 500 |
| 500 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); | 501 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); |
| 501 }; | 502 }; |
| 502 | 503 |
| 503 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ | 504 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ |
| OLD | NEW |