| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 void SetVerticalOffset(int offset); | 92 void SetVerticalOffset(int offset); |
| 93 | 93 |
| 94 // TabstripOriginProvider implementation ------------------------------------- | 94 // TabstripOriginProvider implementation ------------------------------------- |
| 95 virtual gfx::Point GetTabStripOriginForWidget(GtkWidget* widget); | 95 virtual gfx::Point GetTabStripOriginForWidget(GtkWidget* widget); |
| 96 | 96 |
| 97 // ViewIDUtil::Delegate implementation --------------------------------------- | 97 // ViewIDUtil::Delegate implementation --------------------------------------- |
| 98 virtual GtkWidget* GetWidgetForViewID(ViewID id); | 98 virtual GtkWidget* GetWidgetForViewID(ViewID id); |
| 99 | 99 |
| 100 protected: | 100 protected: |
| 101 // TabStripModelObserver implementation: | 101 // TabStripModelObserver implementation: |
| 102 virtual void TabInsertedAt(TabContents* contents, | 102 virtual void TabInsertedAt(TabContentsWrapper* contents, |
| 103 int index, | 103 int index, |
| 104 bool foreground); | 104 bool foreground); |
| 105 virtual void TabDetachedAt(TabContents* contents, int index); | 105 virtual void TabDetachedAt(TabContentsWrapper* contents, int index); |
| 106 virtual void TabSelectedAt(TabContents* old_contents, | 106 virtual void TabSelectedAt(TabContentsWrapper* old_contents, |
| 107 TabContents* contents, | 107 TabContentsWrapper* contents, |
| 108 int index, | 108 int index, |
| 109 bool user_gesture); | 109 bool user_gesture); |
| 110 virtual void TabMoved(TabContents* contents, | 110 virtual void TabMoved(TabContentsWrapper* contents, |
| 111 int from_index, | 111 int from_index, |
| 112 int to_index); | 112 int to_index); |
| 113 virtual void TabChangedAt(TabContents* contents, int index, | 113 virtual void TabChangedAt(TabContentsWrapper* contents, int index, |
| 114 TabChangeType change_type); | 114 TabChangeType change_type); |
| 115 virtual void TabReplacedAt(TabContents* old_contents, | 115 virtual void TabReplacedAt(TabContentsWrapper* old_contents, |
| 116 TabContents* new_contents, | 116 TabContentsWrapper* new_contents, |
| 117 int index); | 117 int index); |
| 118 virtual void TabMiniStateChanged(TabContents* contents, int index); | 118 virtual void TabMiniStateChanged(TabContentsWrapper* contents, int index); |
| 119 virtual void TabBlockedStateChanged(TabContents* contents, | 119 virtual void TabBlockedStateChanged(TabContentsWrapper* contents, |
| 120 int index); | 120 int index); |
| 121 | 121 |
| 122 // TabGtk::TabDelegate implementation: | 122 // TabGtk::TabDelegate implementation: |
| 123 virtual bool IsTabSelected(const TabGtk* tab) const; | 123 virtual bool IsTabSelected(const TabGtk* tab) const; |
| 124 virtual bool IsTabPinned(const TabGtk* tab) const; | 124 virtual bool IsTabPinned(const TabGtk* tab) const; |
| 125 virtual bool IsTabDetached(const TabGtk* tab) const; | 125 virtual bool IsTabDetached(const TabGtk* tab) const; |
| 126 virtual void SelectTab(TabGtk* tab); | 126 virtual void SelectTab(TabGtk* tab); |
| 127 virtual void CloseTab(TabGtk* tab); | 127 virtual void CloseTab(TabGtk* tab); |
| 128 virtual bool IsCommandEnabledForTab( | 128 virtual bool IsCommandEnabledForTab( |
| 129 TabStripModel::ContextMenuCommand command_id, const TabGtk* tab) const; | 129 TabStripModel::ContextMenuCommand command_id, const TabGtk* tab) const; |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 // ResizeLayoutTabsNow method. | 453 // ResizeLayoutTabsNow method. |
| 454 ScopedRunnableMethodFactory<TabStripGtk> resize_layout_factory_; | 454 ScopedRunnableMethodFactory<TabStripGtk> resize_layout_factory_; |
| 455 | 455 |
| 456 // True if the tabstrip has already been added as a MessageLoop observer. | 456 // True if the tabstrip has already been added as a MessageLoop observer. |
| 457 bool added_as_message_loop_observer_; | 457 bool added_as_message_loop_observer_; |
| 458 | 458 |
| 459 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); | 459 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); |
| 460 }; | 460 }; |
| 461 | 461 |
| 462 #endif // CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_ | 462 #endif // CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_ |
| OLD | NEW |