| 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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 scoped_ptr<DropInfo> drop_info_; | 476 scoped_ptr<DropInfo> drop_info_; |
| 477 | 477 |
| 478 // The controller for a drag initiated from a Tab. Valid for the lifetime of | 478 // The controller for a drag initiated from a Tab. Valid for the lifetime of |
| 479 // the drag session. | 479 // the drag session. |
| 480 scoped_ptr<DraggedTabControllerGtk> drag_controller_; | 480 scoped_ptr<DraggedTabControllerGtk> drag_controller_; |
| 481 | 481 |
| 482 // A factory that is used to construct a delayed callback to the | 482 // A factory that is used to construct a delayed callback to the |
| 483 // ResizeLayoutTabsNow method. | 483 // ResizeLayoutTabsNow method. |
| 484 base::WeakPtrFactory<TabStripGtk> weak_factory_; | 484 base::WeakPtrFactory<TabStripGtk> weak_factory_; |
| 485 | 485 |
| 486 // A different factory for calls to Layout(). |
| 487 base::WeakPtrFactory<TabStripGtk> layout_factory_; |
| 488 |
| 486 // True if the tabstrip has already been added as a MessageLoop observer. | 489 // True if the tabstrip has already been added as a MessageLoop observer. |
| 487 bool added_as_message_loop_observer_; | 490 bool added_as_message_loop_observer_; |
| 488 | 491 |
| 489 // Helper for performing tab selection as a result of dragging over a tab. | 492 // Helper for performing tab selection as a result of dragging over a tab. |
| 490 HoverTabSelector hover_tab_selector_; | 493 HoverTabSelector hover_tab_selector_; |
| 491 | 494 |
| 492 content::NotificationRegistrar registrar_; | 495 content::NotificationRegistrar registrar_; |
| 493 | 496 |
| 494 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); | 497 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); |
| 495 }; | 498 }; |
| 496 | 499 |
| 497 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ | 500 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_STRIP_GTK_H_ |
| OLD | NEW |