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

Side by Side Diff: ash/wm/gestures/long_press_affordance_handler.h

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « ash/wm/event_client_impl.cc ('k') | ash/wm/gestures/long_press_affordance_handler.cc » ('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 #ifndef ASH_WM_GESTURES_LONG_PRESS_AFFORDANCE_HANDLER_H_ 5 #ifndef ASH_WM_GESTURES_LONG_PRESS_AFFORDANCE_HANDLER_H_
6 #define ASH_WM_GESTURES_LONG_PRESS_AFFORDANCE_HANDLER_H_ 6 #define ASH_WM_GESTURES_LONG_PRESS_AFFORDANCE_HANDLER_H_
7 7
8 #include "base/timer/timer.h" 8 #include "base/timer/timer.h"
9 #include "ui/aura/window_observer.h" 9 #include "ui/aura/window_observer.h"
10 #include "ui/gfx/animation/linear_animation.h" 10 #include "ui/gfx/animation/linear_animation.h"
11 #include "ui/gfx/point.h" 11 #include "ui/gfx/point.h"
12 12
13 namespace ui { 13 namespace ui {
14 class GestureEvent; 14 class GestureEvent;
15 } 15 }
16 16
17 namespace ash { 17 namespace ash {
18 18
19 namespace test { 19 namespace test {
20 class SystemGestureEventFilterTest; 20 class SystemGestureEventFilterTest;
21 } 21 }
22 22
23 namespace internal {
24
25 // LongPressAffordanceHandler displays an animated affordance that is shown 23 // LongPressAffordanceHandler displays an animated affordance that is shown
26 // on a TAP_DOWN gesture. The animation sequence consists of two parts: 24 // on a TAP_DOWN gesture. The animation sequence consists of two parts:
27 // The first part is a grow animation that starts at semi-long-press and 25 // The first part is a grow animation that starts at semi-long-press and
28 // completes on a long-press gesture. The affordance animates to full size 26 // completes on a long-press gesture. The affordance animates to full size
29 // during grow animation. 27 // during grow animation.
30 // The second part is a shrink animation that start after grow and shrinks the 28 // The second part is a shrink animation that start after grow and shrinks the
31 // affordance out of view. 29 // affordance out of view.
32 class LongPressAffordanceHandler : public gfx::LinearAnimation, 30 class LongPressAffordanceHandler : public gfx::LinearAnimation,
33 public aura::WindowObserver { 31 public aura::WindowObserver {
34 public: 32 public:
(...skipping 27 matching lines...) Expand all
62 60
63 scoped_ptr<LongPressAffordanceView> view_; 61 scoped_ptr<LongPressAffordanceView> view_;
64 gfx::Point tap_down_location_; 62 gfx::Point tap_down_location_;
65 base::OneShotTimer<LongPressAffordanceHandler> timer_; 63 base::OneShotTimer<LongPressAffordanceHandler> timer_;
66 aura::Window* tap_down_target_; 64 aura::Window* tap_down_target_;
67 LongPressAnimationType current_animation_type_; 65 LongPressAnimationType current_animation_type_;
68 66
69 DISALLOW_COPY_AND_ASSIGN(LongPressAffordanceHandler); 67 DISALLOW_COPY_AND_ASSIGN(LongPressAffordanceHandler);
70 }; 68 };
71 69
72 } // namespace internal
73 } // namespace ash 70 } // namespace ash
74 71
75 #endif // ASH_WM_GESTURES_LONG_PRESS_AFFORDANCE_HANDLER_H_ 72 #endif // ASH_WM_GESTURES_LONG_PRESS_AFFORDANCE_HANDLER_H_
OLDNEW
« no previous file with comments | « ash/wm/event_client_impl.cc ('k') | ash/wm/gestures/long_press_affordance_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698