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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_drag_controller.cc

Issue 10917075: events: Move some files into ui/base/events/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 months 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) 2012 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 #include "chrome/browser/ui/views/tabs/tab_drag_controller.h" 5 #include "chrome/browser/ui/views/tabs/tab_drag_controller.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <set> 8 #include <set>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 17 matching lines...) Expand all
28 #include "content/public/browser/notification_details.h" 28 #include "content/public/browser/notification_details.h"
29 #include "content/public/browser/notification_service.h" 29 #include "content/public/browser/notification_service.h"
30 #include "content/public/browser/notification_source.h" 30 #include "content/public/browser/notification_source.h"
31 #include "content/public/browser/notification_types.h" 31 #include "content/public/browser/notification_types.h"
32 #include "content/public/browser/user_metrics.h" 32 #include "content/public/browser/user_metrics.h"
33 #include "content/public/browser/web_contents.h" 33 #include "content/public/browser/web_contents.h"
34 #include "grit/theme_resources.h" 34 #include "grit/theme_resources.h"
35 #include "ui/base/animation/animation.h" 35 #include "ui/base/animation/animation.h"
36 #include "ui/base/animation/animation_delegate.h" 36 #include "ui/base/animation/animation_delegate.h"
37 #include "ui/base/animation/slide_animation.h" 37 #include "ui/base/animation/slide_animation.h"
38 #include "ui/base/events.h" 38 #include "ui/base/events/event_constants.h"
39 #include "ui/base/resource/resource_bundle.h" 39 #include "ui/base/resource/resource_bundle.h"
40 #include "ui/gfx/canvas.h" 40 #include "ui/gfx/canvas.h"
41 #include "ui/gfx/image/image_skia.h" 41 #include "ui/gfx/image/image_skia.h"
42 #include "ui/gfx/screen.h" 42 #include "ui/gfx/screen.h"
43 #include "ui/views/widget/root_view.h" 43 #include "ui/views/widget/root_view.h"
44 #include "ui/views/widget/widget.h" 44 #include "ui/views/widget/widget.h"
45 45
46 #if defined(USE_ASH) 46 #if defined(USE_ASH)
47 #include "ash/shell.h" 47 #include "ash/shell.h"
48 #include "ash/wm/property_util.h" 48 #include "ash/wm/property_util.h"
(...skipping 1932 matching lines...) Expand 10 before | Expand all | Expand 10 after
1981 gfx::Point TabDragController::GetWindowOffset( 1981 gfx::Point TabDragController::GetWindowOffset(
1982 const gfx::Point& point_in_screen) { 1982 const gfx::Point& point_in_screen) {
1983 TabStrip* owning_tabstrip = (attached_tabstrip_ && detach_into_browser_) ? 1983 TabStrip* owning_tabstrip = (attached_tabstrip_ && detach_into_browser_) ?
1984 attached_tabstrip_ : source_tabstrip_; 1984 attached_tabstrip_ : source_tabstrip_;
1985 views::View* toplevel_view = owning_tabstrip->GetWidget()->GetContentsView(); 1985 views::View* toplevel_view = owning_tabstrip->GetWidget()->GetContentsView();
1986 1986
1987 gfx::Point offset = point_in_screen; 1987 gfx::Point offset = point_in_screen;
1988 views::View::ConvertPointFromScreen(toplevel_view, &offset); 1988 views::View::ConvertPointFromScreen(toplevel_view, &offset);
1989 return offset; 1989 return offset;
1990 } 1990 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698