OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ |
6 #define CHROME_BROWSER_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ | 6 #define CHROME_BROWSER_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 "app/x11_util.h" | 13 #include "app/x11_util.h" |
14 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
15 #include "base/timer.h" | 15 #include "base/timer.h" |
16 #include "chrome/browser/dock_info.h" | 16 #include "chrome/browser/dock_info.h" |
17 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 17 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
| 18 #include "chrome/common/notification_observer.h" |
18 #include "chrome/common/notification_registrar.h" | 19 #include "chrome/common/notification_registrar.h" |
19 | 20 |
20 class DraggedTabGtk; | 21 class DraggedTabGtk; |
21 class TabGtk; | 22 class TabGtk; |
22 class TabStripGtk; | 23 class TabStripGtk; |
23 | 24 |
24 class DraggedTabControllerGtk : public NotificationObserver, | 25 class DraggedTabControllerGtk : public NotificationObserver, |
25 public TabContentsDelegate { | 26 public TabContentsDelegate { |
26 public: | 27 public: |
27 DraggedTabControllerGtk(TabGtk* source_tab, TabStripGtk* source_tabstrip); | 28 DraggedTabControllerGtk(TabGtk* source_tab, TabStripGtk* source_tabstrip); |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 261 |
261 // Timer used to bring the window under the cursor to front. If the user | 262 // Timer used to bring the window under the cursor to front. If the user |
262 // stops moving the mouse for a brief time over a browser window, it is | 263 // stops moving the mouse for a brief time over a browser window, it is |
263 // brought to front. | 264 // brought to front. |
264 base::OneShotTimer<DraggedTabControllerGtk> bring_to_front_timer_; | 265 base::OneShotTimer<DraggedTabControllerGtk> bring_to_front_timer_; |
265 | 266 |
266 DISALLOW_COPY_AND_ASSIGN(DraggedTabControllerGtk); | 267 DISALLOW_COPY_AND_ASSIGN(DraggedTabControllerGtk); |
267 }; | 268 }; |
268 | 269 |
269 #endif // CHROME_BROWSER_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ | 270 #endif // CHROME_BROWSER_GTK_TABS_DRAGGED_TAB_CONTROLLER_GTK_H_ |
OLD | NEW |