Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: chrome/browser/gtk/tabs/tab_gtk.h

Issue 3011007: Nukes the nano tab style on gtk and brings back the toolbar for apps (Closed)
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_TABS_TAB_GTK_H_
6 #define CHROME_BROWSER_GTK_TABS_TAB_GTK_H_ 6 #define CHROME_BROWSER_GTK_TABS_TAB_GTK_H_
7 7
8 #include "app/gtk_signal.h" 8 #include "app/gtk_signal.h"
9 #include "app/theme_provider.h" 9 #include "app/theme_provider.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 14 matching lines...) Expand all
25 // various actions. The index parameter is the index of this Tab in the 25 // various actions. The index parameter is the index of this Tab in the
26 // TabRenderer::Model. 26 // TabRenderer::Model.
27 class TabDelegate { 27 class TabDelegate {
28 public: 28 public:
29 // Returns true if the specified Tab is selected. 29 // Returns true if the specified Tab is selected.
30 virtual bool IsTabSelected(const TabGtk* tab) const = 0; 30 virtual bool IsTabSelected(const TabGtk* tab) const = 0;
31 31
32 // Returns true if the specified Tab is pinned. 32 // Returns true if the specified Tab is pinned.
33 virtual bool IsTabPinned(const TabGtk* tab) const = 0; 33 virtual bool IsTabPinned(const TabGtk* tab) const = 0;
34 34
35 // Returns true if the specified Tab contains an app.
36 virtual bool IsAppTab(const TabGtk* tab) const = 0;
37
38 // Returns true if the specified Tab is detached. 35 // Returns true if the specified Tab is detached.
39 virtual bool IsTabDetached(const TabGtk* tab) const = 0; 36 virtual bool IsTabDetached(const TabGtk* tab) const = 0;
40 37
41 // Returns true if the toolbar is visible for |tab|.
42 virtual bool IsToolbarVisible(const TabGtk* tab) const = 0;
43
44 // Selects the specified Tab. 38 // Selects the specified Tab.
45 virtual void SelectTab(TabGtk* tab) = 0; 39 virtual void SelectTab(TabGtk* tab) = 0;
46 40
47 // Closes the specified Tab. 41 // Closes the specified Tab.
48 virtual void CloseTab(TabGtk* tab) = 0; 42 virtual void CloseTab(TabGtk* tab) = 0;
49 43
50 // Returns true if the specified command is enabled for the specified Tab. 44 // Returns true if the specified command is enabled for the specified Tab.
51 virtual bool IsCommandEnabledForTab( 45 virtual bool IsCommandEnabledForTab(
52 TabStripModel::ContextMenuCommand command_id, 46 TabStripModel::ContextMenuCommand command_id,
53 const TabGtk* tab) const = 0; 47 const TabGtk* tab) const = 0;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // mouse release event on the the dragged widget, otherwise, we don't know 200 // mouse release event on the the dragged widget, otherwise, we don't know
207 // when the drag has ended when the user presses space or enter. We queue 201 // when the drag has ended when the user presses space or enter. We queue
208 // a task to end the drag and only run it if GTK+ didn't send us the 202 // a task to end the drag and only run it if GTK+ didn't send us the
209 // drag-failed event. 203 // drag-failed event.
210 ScopedRunnableMethodFactory<TabGtk> drag_end_factory_; 204 ScopedRunnableMethodFactory<TabGtk> drag_end_factory_;
211 205
212 DISALLOW_COPY_AND_ASSIGN(TabGtk); 206 DISALLOW_COPY_AND_ASSIGN(TabGtk);
213 }; 207 };
214 208
215 #endif // CHROME_BROWSER_GTK_TABS_TAB_GTK_H_ 209 #endif // CHROME_BROWSER_GTK_TABS_TAB_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698