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_DRAGGED_TAB_CONTROLLER_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
11 #include <set> | 11 #include <set> |
12 | 12 |
13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
14 #include "base/timer.h" | 14 #include "base/timer.h" |
15 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | |
16 #include "chrome/browser/ui/tabs/dock_info.h" | 15 #include "chrome/browser/ui/tabs/dock_info.h" |
17 #include "chrome/common/notification_observer.h" | 16 #include "chrome/common/notification_observer.h" |
18 #include "chrome/common/notification_registrar.h" | 17 #include "chrome/common/notification_registrar.h" |
| 18 #include "content/browser/tab_contents/tab_contents_delegate.h" |
19 #include "ui/base/x/x11_util.h" | 19 #include "ui/base/x/x11_util.h" |
20 | 20 |
21 class DraggedTabGtk; | 21 class DraggedTabGtk; |
22 class TabGtk; | 22 class TabGtk; |
23 class TabStripGtk; | 23 class TabStripGtk; |
24 class TabContentsWrapper; | 24 class TabContentsWrapper; |
25 | 25 |
26 class DraggedTabControllerGtk : public NotificationObserver, | 26 class DraggedTabControllerGtk : public NotificationObserver, |
27 public TabContentsDelegate { | 27 public TabContentsDelegate { |
28 public: | 28 public: |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 262 |
263 // Timer used to bring the window under the cursor to front. If the user | 263 // Timer used to bring the window under the cursor to front. If the user |
264 // stops moving the mouse for a brief time over a browser window, it is | 264 // stops moving the mouse for a brief time over a browser window, it is |
265 // brought to front. | 265 // brought to front. |
266 base::OneShotTimer<DraggedTabControllerGtk> bring_to_front_timer_; | 266 base::OneShotTimer<DraggedTabControllerGtk> bring_to_front_timer_; |
267 | 267 |
268 DISALLOW_COPY_AND_ASSIGN(DraggedTabControllerGtk); | 268 DISALLOW_COPY_AND_ASSIGN(DraggedTabControllerGtk); |
269 }; | 269 }; |
270 | 270 |
271 #endif // CHROME_BROWSER_UI_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ | 271 #endif // CHROME_BROWSER_UI_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ |
OLD | NEW |