| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // destroyed. | 77 // destroyed. |
| 78 virtual bool EndDrag(bool canceled) = 0; | 78 virtual bool EndDrag(bool canceled) = 0; |
| 79 | 79 |
| 80 // Returns true if the associated TabStrip's delegate supports tab moving or | 80 // Returns true if the associated TabStrip's delegate supports tab moving or |
| 81 // detaching. Used by the Frame to determine if dragging on the Tab | 81 // detaching. Used by the Frame to determine if dragging on the Tab |
| 82 // itself should move the window in cases where there's only one | 82 // itself should move the window in cases where there's only one |
| 83 // non drag-able Tab. | 83 // non drag-able Tab. |
| 84 virtual bool HasAvailableDragActions() const = 0; | 84 virtual bool HasAvailableDragActions() const = 0; |
| 85 | 85 |
| 86 // Returns the theme provider for icons and colors. | 86 // Returns the theme provider for icons and colors. |
| 87 virtual GtkThemeService* GetThemeProvider() = 0; | 87 virtual ThemeServiceGtk* GetThemeProvider() = 0; |
| 88 | 88 |
| 89 // Returns a context menu controller for |tab|. Caller takes ownership of | 89 // Returns a context menu controller for |tab|. Caller takes ownership of |
| 90 // the pointed object. | 90 // the pointed object. |
| 91 virtual TabStripMenuController* GetTabStripMenuControllerForTab( | 91 virtual TabStripMenuController* GetTabStripMenuControllerForTab( |
| 92 TabGtk* tab) = 0; | 92 TabGtk* tab) = 0; |
| 93 | 93 |
| 94 protected: | 94 protected: |
| 95 virtual ~TabDelegate() {} | 95 virtual ~TabDelegate() {} |
| 96 }; | 96 }; |
| 97 | 97 |
| (...skipping 120 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 | 218 // 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 | 219 // 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 | 220 // a task to end the drag and only run it if GTK+ didn't send us the |
| 221 // drag-failed event. | 221 // drag-failed event. |
| 222 base::WeakPtrFactory<TabGtk> drag_end_factory_; | 222 base::WeakPtrFactory<TabGtk> drag_end_factory_; |
| 223 | 223 |
| 224 DISALLOW_COPY_AND_ASSIGN(TabGtk); | 224 DISALLOW_COPY_AND_ASSIGN(TabGtk); |
| 225 }; | 225 }; |
| 226 | 226 |
| 227 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_GTK_H_ | 227 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_GTK_H_ |
| OLD | NEW |