OLD | NEW |
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 UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_H_ | 5 #ifndef UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_H_ |
6 #define UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_H_ | 6 #define UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "ui/compositor/layer_animation_observer.h" | 9 #include "ui/compositor/layer_animation_observer.h" |
9 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
10 #include "ui/views/views_export.h" | 11 #include "ui/views/views_export.h" |
11 | 12 |
12 namespace views { | 13 namespace views { |
13 | 14 |
14 // A View that can be closed by a slide-out touch gesture. | 15 // A View that can be closed by a slide-out touch gesture. |
15 class VIEWS_EXPORT SlideOutView : public views::View, | 16 class VIEWS_EXPORT SlideOutView : public views::View, |
16 public ui::ImplicitAnimationObserver { | 17 public ui::ImplicitAnimationObserver { |
17 public: | 18 public: |
(...skipping 23 matching lines...) Expand all Loading... |
41 void OnImplicitAnimationsCompleted() override; | 42 void OnImplicitAnimationsCompleted() override; |
42 | 43 |
43 float gesture_scroll_amount_; | 44 float gesture_scroll_amount_; |
44 | 45 |
45 DISALLOW_COPY_AND_ASSIGN(SlideOutView); | 46 DISALLOW_COPY_AND_ASSIGN(SlideOutView); |
46 }; | 47 }; |
47 | 48 |
48 } // namespace views | 49 } // namespace views |
49 | 50 |
50 #endif // UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_H_ | 51 #endif // UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_H_ |
OLD | NEW |