| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 virtual bool EndDrag(bool canceled); | 144 virtual bool EndDrag(bool canceled); |
| 145 virtual bool HasAvailableDragActions() const; | 145 virtual bool HasAvailableDragActions() const; |
| 146 virtual ThemeService* GetThemeProvider(); | 146 virtual ThemeService* GetThemeProvider(); |
| 147 virtual TabStripMenuController* GetTabStripMenuControllerForTab(TabGtk* tab); | 147 virtual TabStripMenuController* GetTabStripMenuControllerForTab(TabGtk* tab); |
| 148 | 148 |
| 149 // MessageLoop::Observer implementation: | 149 // MessageLoop::Observer implementation: |
| 150 virtual void WillProcessEvent(GdkEvent* event); | 150 virtual void WillProcessEvent(GdkEvent* event); |
| 151 virtual void DidProcessEvent(GdkEvent* event); | 151 virtual void DidProcessEvent(GdkEvent* event); |
| 152 | 152 |
| 153 // Overridden from NotificationObserver: | 153 // Overridden from NotificationObserver: |
| 154 virtual void Observe(NotificationType type, | 154 virtual void Observe(int type, |
| 155 const NotificationSource& source, | 155 const NotificationSource& source, |
| 156 const NotificationDetails& details); | 156 const NotificationDetails& details); |
| 157 | 157 |
| 158 // Horizontal gap between mini-tabs and normal tabs. | 158 // Horizontal gap between mini-tabs and normal tabs. |
| 159 static const int mini_to_non_mini_gap_; | 159 static const int mini_to_non_mini_gap_; |
| 160 | 160 |
| 161 private: | 161 private: |
| 162 friend class BrowserWindowGtk; | 162 friend class BrowserWindowGtk; |
| 163 friend class DraggedTabControllerGtk; | 163 friend class DraggedTabControllerGtk; |
| 164 friend class InsertTabAnimation; | 164 friend class InsertTabAnimation; |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 // True if the tabstrip has already been added as a MessageLoop observer. | 462 // True if the tabstrip has already been added as a MessageLoop observer. |
| 463 bool added_as_message_loop_observer_; | 463 bool added_as_message_loop_observer_; |
| 464 | 464 |
| 465 // Helper for performing tab selection as a result of dragging over a tab. | 465 // Helper for performing tab selection as a result of dragging over a tab. |
| 466 HoverTabSelector hover_tab_selector_; | 466 HoverTabSelector hover_tab_selector_; |
| 467 | 467 |
| 468 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); | 468 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); |
| 469 }; | 469 }; |
| 470 | 470 |
| 471 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ | 471 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ |
| OLD | NEW |