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_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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 void set_closing(bool closing) { closing_ = closing; } | 94 void set_closing(bool closing) { closing_ = closing; } |
95 bool closing() const { return closing_; } | 95 bool closing() const { return closing_; } |
96 | 96 |
97 // TabRendererGtk overrides: | 97 // TabRendererGtk overrides: |
98 virtual bool IsSelected() const; | 98 virtual bool IsSelected() const; |
99 virtual bool IsVisible() const; | 99 virtual bool IsVisible() const; |
100 virtual void SetVisible(bool visible) const; | 100 virtual void SetVisible(bool visible) const; |
101 virtual void CloseButtonClicked(); | 101 virtual void CloseButtonClicked(); |
102 virtual void UpdateData(TabContents* contents, | 102 virtual void UpdateData(TabContents* contents, |
103 bool phantom, | 103 bool phantom, |
| 104 bool app, |
104 bool loading_only); | 105 bool loading_only); |
105 virtual void SetBounds(const gfx::Rect& bounds); | 106 virtual void SetBounds(const gfx::Rect& bounds); |
106 | 107 |
107 private: | 108 private: |
108 class ContextMenuController; | 109 class ContextMenuController; |
109 class TabGtkObserverHelper; | 110 class TabGtkObserverHelper; |
110 friend class ContextMenuController; | 111 friend class ContextMenuController; |
111 | 112 |
112 // MessageLoop::Observer implementation: | 113 // MessageLoop::Observer implementation: |
113 virtual void WillProcessEvent(GdkEvent* event); | 114 virtual void WillProcessEvent(GdkEvent* event); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // 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 |
200 // 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 |
201 // 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 |
202 // drag-failed event. | 203 // drag-failed event. |
203 ScopedRunnableMethodFactory<TabGtk> drag_end_factory_; | 204 ScopedRunnableMethodFactory<TabGtk> drag_end_factory_; |
204 | 205 |
205 DISALLOW_COPY_AND_ASSIGN(TabGtk); | 206 DISALLOW_COPY_AND_ASSIGN(TabGtk); |
206 }; | 207 }; |
207 | 208 |
208 #endif // CHROME_BROWSER_GTK_TABS_TAB_GTK_H_ | 209 #endif // CHROME_BROWSER_GTK_TABS_TAB_GTK_H_ |
OLD | NEW |