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

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

Issue 10824295: Rid the world of the last of views::Event types: TouchEvent, GestureEvent, MouseWheelEvent, ScrollE… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « chrome/browser/ui/views/tabs/base_tab.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 22 matching lines...) Expand all
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.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/events/event.h"
44 #include "ui/views/widget/root_view.h" 43 #include "ui/views/widget/root_view.h"
45 #include "ui/views/widget/widget.h" 44 #include "ui/views/widget/widget.h"
46 45
47 #if defined(USE_ASH) 46 #if defined(USE_ASH)
48 #include "ash/shell.h" 47 #include "ash/shell.h"
49 #include "ash/wm/property_util.h" 48 #include "ash/wm/property_util.h"
50 #include "ui/aura/env.h" 49 #include "ui/aura/env.h"
51 #include "ui/aura/root_window.h" 50 #include "ui/aura/root_window.h"
52 #include "ui/base/gestures/gesture_recognizer.h" 51 #include "ui/base/gestures/gesture_recognizer.h"
53 #endif 52 #endif
(...skipping 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after
1958 gfx::Point touch_point; 1957 gfx::Point touch_point;
1959 bool got_touch_point = widget_window->GetRootWindow()-> 1958 bool got_touch_point = widget_window->GetRootWindow()->
1960 gesture_recognizer()->GetLastTouchPointForTarget(widget_window, 1959 gesture_recognizer()->GetLastTouchPointForTarget(widget_window,
1961 &touch_point); 1960 &touch_point);
1962 DCHECK(got_touch_point); 1961 DCHECK(got_touch_point);
1963 return touch_point; 1962 return touch_point;
1964 } 1963 }
1965 #endif 1964 #endif
1966 return gfx::Screen::GetCursorScreenPoint(); 1965 return gfx::Screen::GetCursorScreenPoint();
1967 } 1966 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/base_tab.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698