Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: chrome/browser/gtk/tabs/dragged_tab_controller_gtk.cc

Issue 5875005: Cleanup: Remove unneeded includes of notification_service.h.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: put includes in right order Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "chrome/browser/gtk/tabs/dragged_tab_controller_gtk.h" 5 #include "chrome/browser/gtk/tabs/dragged_tab_controller_gtk.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "chrome/browser/gtk/browser_window_gtk.h" 10 #include "chrome/browser/gtk/browser_window_gtk.h"
11 #include "chrome/browser/gtk/gtk_util.h" 11 #include "chrome/browser/gtk/gtk_util.h"
12 #include "chrome/browser/gtk/tabs/dragged_tab_gtk.h" 12 #include "chrome/browser/gtk/tabs/dragged_tab_gtk.h"
13 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h" 13 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h"
14 #include "chrome/browser/platform_util.h" 14 #include "chrome/browser/platform_util.h"
15 #include "chrome/browser/tab_contents/tab_contents.h" 15 #include "chrome/browser/tab_contents/tab_contents.h"
16 #include "chrome/browser/tabs/tab_strip_model.h" 16 #include "chrome/browser/tabs/tab_strip_model.h"
17 #include "chrome/browser/ui/browser.h" 17 #include "chrome/browser/ui/browser.h"
18 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 18 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
19 #include "chrome/common/notification_service.h" 19 #include "chrome/common/notification_source.h"
20 20
21 namespace { 21 namespace {
22 22
23 // Delay, in ms, during dragging before we bring a window to front. 23 // Delay, in ms, during dragging before we bring a window to front.
24 const int kBringToFrontDelay = 750; 24 const int kBringToFrontDelay = 750;
25 25
26 // Used to determine how far a tab must obscure another tab in order to swap 26 // Used to determine how far a tab must obscure another tab in order to swap
27 // their indexes. 27 // their indexes.
28 const int kHorizontalMoveThreshold = 16; // pixels 28 const int kHorizontalMoveThreshold = 16; // pixels
29 29
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 gfx::NativeView dragged_tab = dragged_tab_->widget(); 778 gfx::NativeView dragged_tab = dragged_tab_->widget();
779 dock_windows_.insert(dragged_tab); 779 dock_windows_.insert(dragged_tab);
780 window = DockInfo::GetLocalProcessWindowAtPoint(GetCursorScreenPoint(), 780 window = DockInfo::GetLocalProcessWindowAtPoint(GetCursorScreenPoint(),
781 dock_windows_); 781 dock_windows_);
782 dock_windows_.erase(dragged_tab); 782 dock_windows_.erase(dragged_tab);
783 } 783 }
784 784
785 if (window) 785 if (window)
786 gtk_window_present(GTK_WINDOW(window)); 786 gtk_window_present(GTK_WINDOW(window));
787 } 787 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/tab_contents_container_gtk.cc ('k') | chrome/browser/history/in_memory_history_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698