| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_GTK_TABS_TAB_STRIP_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_ | 6 #define CHROME_BROWSER_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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 TabStripModel* model() const { return model_; } | 47 TabStripModel* model() const { return model_; } |
| 48 | 48 |
| 49 BrowserWindowGtk* window() const { return window_; } | 49 BrowserWindowGtk* window() const { return window_; } |
| 50 | 50 |
| 51 GtkWidget* widget() const { return tabstrip_.get(); } | 51 GtkWidget* widget() const { return tabstrip_.get(); } |
| 52 | 52 |
| 53 // Returns true if there is an active drag session. | 53 // Returns true if there is an active drag session. |
| 54 bool IsDragSessionActive() const { return drag_controller_.get() != NULL; } | 54 bool IsDragSessionActive() const { return drag_controller_.get() != NULL; } |
| 55 | 55 |
| 56 // Cancels the current drag session, if any. | |
| 57 void CancelActiveDragSession(); | |
| 58 | |
| 59 // Sets the bounds of the tabs. | 56 // Sets the bounds of the tabs. |
| 60 void Layout(); | 57 void Layout(); |
| 61 | 58 |
| 62 // Queues a draw for the tabstrip widget. | 59 // Queues a draw for the tabstrip widget. |
| 63 void SchedulePaint(); | 60 void SchedulePaint(); |
| 64 | 61 |
| 65 // Sets the bounds of the tabstrip. | 62 // Sets the bounds of the tabstrip. |
| 66 void SetBounds(const gfx::Rect& bounds); | 63 void SetBounds(const gfx::Rect& bounds); |
| 67 | 64 |
| 68 // Returns the bounds of the tabstrip. | 65 // Returns the bounds of the tabstrip. |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 // ResizeLayoutTabsNow method. | 451 // ResizeLayoutTabsNow method. |
| 455 ScopedRunnableMethodFactory<TabStripGtk> resize_layout_factory_; | 452 ScopedRunnableMethodFactory<TabStripGtk> resize_layout_factory_; |
| 456 | 453 |
| 457 // True if the tabstrip has already been added as a MessageLoop observer. | 454 // True if the tabstrip has already been added as a MessageLoop observer. |
| 458 bool added_as_message_loop_observer_; | 455 bool added_as_message_loop_observer_; |
| 459 | 456 |
| 460 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); | 457 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); |
| 461 }; | 458 }; |
| 462 | 459 |
| 463 #endif // CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_ | 460 #endif // CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_ |
| OLD | NEW |