OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_GTK_TABS_TAB_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_TABS_TAB_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_TABS_TAB_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_TABS_TAB_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 GtkWidget* widget() const { return event_box_; } | 106 GtkWidget* widget() const { return event_box_; } |
107 | 107 |
108 // Used to set/check whether this Tab is being animated closed. | 108 // Used to set/check whether this Tab is being animated closed. |
109 void set_closing(bool closing) { closing_ = closing; } | 109 void set_closing(bool closing) { closing_ = closing; } |
110 bool closing() const { return closing_; } | 110 bool closing() const { return closing_; } |
111 | 111 |
112 // Used to set/check whether this Tab is being dragged. | 112 // Used to set/check whether this Tab is being dragged. |
113 void set_dragging(bool dragging) { dragging_ = dragging; } | 113 void set_dragging(bool dragging) { dragging_ = dragging; } |
114 bool dragging() const { return dragging_; } | 114 bool dragging() const { return dragging_; } |
115 | 115 |
| 116 // Raise to top of Z-order. |
| 117 void Raise() const; |
| 118 |
116 // TabRendererGtk overrides: | 119 // TabRendererGtk overrides: |
117 virtual bool IsActive() const; | 120 virtual bool IsActive() const; |
118 virtual bool IsSelected() const; | 121 virtual bool IsSelected() const; |
119 virtual bool IsVisible() const; | 122 virtual bool IsVisible() const; |
120 virtual void SetVisible(bool visible) const; | 123 virtual void SetVisible(bool visible) const; |
121 virtual void CloseButtonClicked(); | 124 virtual void CloseButtonClicked(); |
122 virtual void UpdateData(TabContents* contents, bool app, bool loading_only); | 125 virtual void UpdateData(TabContents* contents, bool app, bool loading_only); |
123 virtual void SetBounds(const gfx::Rect& bounds); | 126 virtual void SetBounds(const gfx::Rect& bounds); |
124 | 127 |
125 private: | 128 private: |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 // mouse release event on the the dragged widget, otherwise, we don't know | 218 // mouse release event on the the dragged widget, otherwise, we don't know |
216 // when the drag has ended when the user presses space or enter. We queue | 219 // when the drag has ended when the user presses space or enter. We queue |
217 // a task to end the drag and only run it if GTK+ didn't send us the | 220 // a task to end the drag and only run it if GTK+ didn't send us the |
218 // drag-failed event. | 221 // drag-failed event. |
219 ScopedRunnableMethodFactory<TabGtk> drag_end_factory_; | 222 ScopedRunnableMethodFactory<TabGtk> drag_end_factory_; |
220 | 223 |
221 DISALLOW_COPY_AND_ASSIGN(TabGtk); | 224 DISALLOW_COPY_AND_ASSIGN(TabGtk); |
222 }; | 225 }; |
223 | 226 |
224 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_GTK_H_ | 227 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_GTK_H_ |
OLD | NEW |