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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 TabStripModel::ContextMenuCommand command_id, TabGtk* tab); | 142 TabStripModel::ContextMenuCommand command_id, TabGtk* tab); |
143 virtual void StartHighlightTabsForCommand( | 143 virtual void StartHighlightTabsForCommand( |
144 TabStripModel::ContextMenuCommand command_id, TabGtk* tab); | 144 TabStripModel::ContextMenuCommand command_id, TabGtk* tab); |
145 virtual void StopHighlightTabsForCommand( | 145 virtual void StopHighlightTabsForCommand( |
146 TabStripModel::ContextMenuCommand command_id, TabGtk* tab); | 146 TabStripModel::ContextMenuCommand command_id, TabGtk* tab); |
147 virtual void StopAllHighlighting(); | 147 virtual void StopAllHighlighting(); |
148 virtual void MaybeStartDrag(TabGtk* tab, const gfx::Point& point); | 148 virtual void MaybeStartDrag(TabGtk* tab, const gfx::Point& point); |
149 virtual void ContinueDrag(GdkDragContext* context); | 149 virtual void ContinueDrag(GdkDragContext* context); |
150 virtual bool EndDrag(bool canceled); | 150 virtual bool EndDrag(bool canceled); |
151 virtual bool HasAvailableDragActions() const; | 151 virtual bool HasAvailableDragActions() const; |
152 virtual ThemeService* GetThemeProvider(); | 152 virtual GtkThemeService* GetThemeProvider(); |
153 virtual TabStripMenuController* GetTabStripMenuControllerForTab(TabGtk* tab); | 153 virtual TabStripMenuController* GetTabStripMenuControllerForTab(TabGtk* tab); |
154 | 154 |
155 // MessageLoop::Observer implementation: | 155 // MessageLoop::Observer implementation: |
156 virtual void WillProcessEvent(GdkEvent* event); | 156 virtual void WillProcessEvent(GdkEvent* event); |
157 virtual void DidProcessEvent(GdkEvent* event); | 157 virtual void DidProcessEvent(GdkEvent* event); |
158 | 158 |
159 // Overridden from content::NotificationObserver: | 159 // Overridden from content::NotificationObserver: |
160 virtual void Observe(int type, | 160 virtual void Observe(int type, |
161 const content::NotificationSource& source, | 161 const content::NotificationSource& source, |
162 const content::NotificationDetails& details); | 162 const content::NotificationDetails& details); |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 // True if the tabstrip has already been added as a MessageLoop observer. | 484 // True if the tabstrip has already been added as a MessageLoop observer. |
485 bool added_as_message_loop_observer_; | 485 bool added_as_message_loop_observer_; |
486 | 486 |
487 // Helper for performing tab selection as a result of dragging over a tab. | 487 // Helper for performing tab selection as a result of dragging over a tab. |
488 HoverTabSelector hover_tab_selector_; | 488 HoverTabSelector hover_tab_selector_; |
489 | 489 |
490 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); | 490 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); |
491 }; | 491 }; |
492 | 492 |
493 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ | 493 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ |
OLD | NEW |