| 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 10 matching lines...) Expand all Loading... |
| 21 public: | 21 public: |
| 22 class TabAnimation; | 22 class TabAnimation; |
| 23 | 23 |
| 24 explicit TabStripGtk(TabStripModel* model); | 24 explicit TabStripGtk(TabStripModel* model); |
| 25 virtual ~TabStripGtk(); | 25 virtual ~TabStripGtk(); |
| 26 | 26 |
| 27 // Initialize and load the TabStrip into a container. | 27 // Initialize and load the TabStrip into a container. |
| 28 void Init(); | 28 void Init(); |
| 29 void AddTabStripToBox(GtkWidget* box); | 29 void AddTabStripToBox(GtkWidget* box); |
| 30 | 30 |
| 31 void Show(); |
| 32 void Hide(); |
| 33 |
| 31 TabStripModel* model() const { return model_; } | 34 TabStripModel* model() const { return model_; } |
| 32 | 35 |
| 33 // Sets the bounds of the tabs. | 36 // Sets the bounds of the tabs. |
| 34 void Layout(); | 37 void Layout(); |
| 35 | 38 |
| 36 // Sets the bounds of the tabstrip. | 39 // Sets the bounds of the tabstrip. |
| 37 void SetBounds(const gfx::Rect& bounds) { bounds_ = bounds; } | 40 void SetBounds(const gfx::Rect& bounds) { bounds_ = bounds; } |
| 38 | 41 |
| 39 // Updates loading animations for the TabStrip. | 42 // Updates loading animations for the TabStrip. |
| 40 void UpdateLoadingAnimations(); | 43 void UpdateLoadingAnimations(); |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // will be snapped back to when the drag is released. | 297 // will be snapped back to when the drag is released. |
| 295 gfx::Rect snap_bounds_; | 298 gfx::Rect snap_bounds_; |
| 296 | 299 |
| 297 // When a tab is being dragged, certain gtk events should be ignored. | 300 // When a tab is being dragged, certain gtk events should be ignored. |
| 298 bool is_dragging_; | 301 bool is_dragging_; |
| 299 | 302 |
| 300 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); | 303 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); |
| 301 }; | 304 }; |
| 302 | 305 |
| 303 #endif // CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_ | 306 #endif // CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_ |
| OLD | NEW |