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

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

Issue 155588: GTK Themes: Tint throbbers like we tint all other buttons in the interface. (Closed)
Patch Set: Changes for tony Created 11 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
« no previous file with comments | « chrome/browser/gtk/tabs/dragged_tab_gtk.cc ('k') | chrome/browser/gtk/tabs/tab_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/theme_provider.h"
8 #include "base/basictypes.h" 9 #include "base/basictypes.h"
9 #include "base/message_loop.h" 10 #include "base/message_loop.h"
10 #include "chrome/browser/gtk/tabs/tab_renderer_gtk.h" 11 #include "chrome/browser/gtk/tabs/tab_renderer_gtk.h"
11 #include "chrome/browser/tabs/tab_strip_model.h" 12 #include "chrome/browser/tabs/tab_strip_model.h"
12 13
13 namespace gfx { 14 namespace gfx {
14 class Path; 15 class Path;
15 } 16 }
16 17
18 class ThemeProvider;
19
17 class TabGtk : public TabRendererGtk, 20 class TabGtk : public TabRendererGtk,
18 public MessageLoopForUI::Observer { 21 public MessageLoopForUI::Observer {
19 public: 22 public:
20 // An interface implemented by an object that can help this Tab complete 23 // An interface implemented by an object that can help this Tab complete
21 // various actions. The index parameter is the index of this Tab in the 24 // various actions. The index parameter is the index of this Tab in the
22 // TabRenderer::Model. 25 // TabRenderer::Model.
23 class TabDelegate { 26 class TabDelegate {
24 public: 27 public:
25 // Returns true if the specified Tab is selected. 28 // Returns true if the specified Tab is selected.
26 virtual bool IsTabSelected(const TabGtk* tab) const = 0; 29 virtual bool IsTabSelected(const TabGtk* tab) const = 0;
(...skipping 30 matching lines...) Expand all
57 // Ends dragging a Tab. |canceled| is true if the drag was aborted in a way 60 // Ends dragging a Tab. |canceled| is true if the drag was aborted in a way
58 // other than the user releasing the mouse. Returns whether the tab has been 61 // other than the user releasing the mouse. Returns whether the tab has been
59 // destroyed. 62 // destroyed.
60 virtual bool EndDrag(bool canceled) = 0; 63 virtual bool EndDrag(bool canceled) = 0;
61 64
62 // Returns true if the associated TabStrip's delegate supports tab moving or 65 // Returns true if the associated TabStrip's delegate supports tab moving or
63 // detaching. Used by the Frame to determine if dragging on the Tab 66 // detaching. Used by the Frame to determine if dragging on the Tab
64 // itself should move the window in cases where there's only one 67 // itself should move the window in cases where there's only one
65 // non drag-able Tab. 68 // non drag-able Tab.
66 virtual bool HasAvailableDragActions() const = 0; 69 virtual bool HasAvailableDragActions() const = 0;
70
71 // Returns the theme provider for icons and colors.
72 virtual ThemeProvider* GetThemeProvider() = 0;
67 }; 73 };
68 74
69 explicit TabGtk(TabDelegate* delegate); 75 TabGtk(TabDelegate* delegate);
70 virtual ~TabGtk(); 76 virtual ~TabGtk();
71 77
72 // Access the delegate. 78 // Access the delegate.
73 TabDelegate* delegate() const { return delegate_; } 79 TabDelegate* delegate() const { return delegate_; }
74 80
75 GtkWidget* widget() const { return event_box_; } 81 GtkWidget* widget() const { return event_box_; }
76 82
77 // Used to set/check whether this Tab is being animated closed. 83 // Used to set/check whether this Tab is being animated closed.
78 void set_closing(bool closing) { closing_ = closing; } 84 void set_closing(bool closing) { closing_ = closing; }
79 bool closing() const { return closing_; } 85 bool closing() const { return closing_; }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // DCHECK. 152 // DCHECK.
147 GtkWidget* event_box_; 153 GtkWidget* event_box_;
148 154
149 // True if this tab is being dragged. 155 // True if this tab is being dragged.
150 bool dragging_; 156 bool dragging_;
151 157
152 DISALLOW_COPY_AND_ASSIGN(TabGtk); 158 DISALLOW_COPY_AND_ASSIGN(TabGtk);
153 }; 159 };
154 160
155 #endif // CHROME_BROWSER_GTK_TABS_TAB_GTK_H_ 161 #endif // CHROME_BROWSER_GTK_TABS_TAB_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/tabs/dragged_tab_gtk.cc ('k') | chrome/browser/gtk/tabs/tab_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698