| 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 | |
| 119 // TabRendererGtk overrides: | 116 // TabRendererGtk overrides: |
| 120 virtual bool IsActive() const; | 117 virtual bool IsActive() const; |
| 121 virtual bool IsSelected() const; | 118 virtual bool IsSelected() const; |
| 122 virtual bool IsVisible() const; | 119 virtual bool IsVisible() const; |
| 123 virtual void SetVisible(bool visible) const; | 120 virtual void SetVisible(bool visible) const; |
| 124 virtual void CloseButtonClicked(); | 121 virtual void CloseButtonClicked(); |
| 125 virtual void UpdateData(TabContents* contents, bool app, bool loading_only); | 122 virtual void UpdateData(TabContents* contents, bool app, bool loading_only); |
| 126 virtual void SetBounds(const gfx::Rect& bounds); | 123 virtual void SetBounds(const gfx::Rect& bounds); |
| 127 | 124 |
| 128 private: | 125 private: |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 // mouse release event on the the dragged widget, otherwise, we don't know | 215 // mouse release event on the the dragged widget, otherwise, we don't know |
| 219 // when the drag has ended when the user presses space or enter. We queue | 216 // when the drag has ended when the user presses space or enter. We queue |
| 220 // a task to end the drag and only run it if GTK+ didn't send us the | 217 // a task to end the drag and only run it if GTK+ didn't send us the |
| 221 // drag-failed event. | 218 // drag-failed event. |
| 222 ScopedRunnableMethodFactory<TabGtk> drag_end_factory_; | 219 ScopedRunnableMethodFactory<TabGtk> drag_end_factory_; |
| 223 | 220 |
| 224 DISALLOW_COPY_AND_ASSIGN(TabGtk); | 221 DISALLOW_COPY_AND_ASSIGN(TabGtk); |
| 225 }; | 222 }; |
| 226 | 223 |
| 227 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_GTK_H_ | 224 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_GTK_H_ |
| OLD | NEW |