| 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/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "chrome/browser/tabs/tab_strip_model.h" | 12 #include "chrome/browser/tabs/tab_strip_model.h" |
| 13 #include "chrome/browser/ui/gtk/tabs/tab_renderer_gtk.h" | 13 #include "chrome/browser/ui/gtk/tabs/tab_renderer_gtk.h" |
| 14 #include "ui/base/gtk/gtk_signal.h" | 14 #include "ui/base/gtk/gtk_signal.h" |
| 15 | 15 |
| 16 class TabStripMenuController; | 16 class TabStripMenuController; |
| 17 class ThemeService; | 17 class ThemeService; |
| 18 | 18 |
| 19 namespace gfx { | |
| 20 class Path; | |
| 21 } | |
| 22 | |
| 23 class TabGtk : public TabRendererGtk, | 19 class TabGtk : public TabRendererGtk, |
| 24 public MessageLoopForUI::Observer { | 20 public MessageLoopForUI::Observer { |
| 25 public: | 21 public: |
| 26 // An interface implemented by an object that can help this Tab complete | 22 // An interface implemented by an object that can help this Tab complete |
| 27 // various actions. The index parameter is the index of this Tab in the | 23 // various actions. The index parameter is the index of this Tab in the |
| 28 // TabRenderer::Model. | 24 // TabRenderer::Model. |
| 29 class TabDelegate { | 25 class TabDelegate { |
| 30 public: | 26 public: |
| 31 // Returns true if the specified Tab is active. | 27 // Returns true if the specified Tab is active. |
| 32 virtual bool IsTabActive(const TabGtk* tab) const = 0; | 28 virtual bool IsTabActive(const TabGtk* tab) const = 0; |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 // 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 |
| 220 // 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 |
| 221 // 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 |
| 222 // drag-failed event. | 218 // drag-failed event. |
| 223 base::WeakPtrFactory<TabGtk> drag_end_factory_; | 219 base::WeakPtrFactory<TabGtk> drag_end_factory_; |
| 224 | 220 |
| 225 DISALLOW_COPY_AND_ASSIGN(TabGtk); | 221 DISALLOW_COPY_AND_ASSIGN(TabGtk); |
| 226 }; | 222 }; |
| 227 | 223 |
| 228 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_GTK_H_ | 224 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_GTK_H_ |
| OLD | NEW |