OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "ui/base/animation/animation_delegate.h" | 13 #include "ui/base/animation/animation_delegate.h" |
14 #include "ui/base/animation/slide_animation.h" | 14 #include "ui/base/animation/slide_animation.h" |
15 #include "views/view.h" | 15 #include "ui/views/view.h" |
16 | 16 |
17 class PanelScrollerHeader; | 17 class PanelScrollerHeader; |
18 | 18 |
19 class PanelScroller : public views::View, public ui::AnimationDelegate { | 19 class PanelScroller : public views::View, public ui::AnimationDelegate { |
20 public: | 20 public: |
21 PanelScroller(); | 21 PanelScroller(); |
22 virtual ~PanelScroller(); | 22 virtual ~PanelScroller(); |
23 | 23 |
24 static PanelScroller* CreateWindow(); | 24 static PanelScroller* CreateWindow(); |
25 | 25 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 // When animating a scroll, these indicate the beginning and ending of the | 61 // When animating a scroll, these indicate the beginning and ending of the |
62 // scroll. The scroll_pos_ always indicates the current one. | 62 // scroll. The scroll_pos_ always indicates the current one. |
63 int animated_scroll_begin_; | 63 int animated_scroll_begin_; |
64 int animated_scroll_end_; | 64 int animated_scroll_end_; |
65 | 65 |
66 DISALLOW_COPY_AND_ASSIGN(PanelScroller); | 66 DISALLOW_COPY_AND_ASSIGN(PanelScroller); |
67 }; | 67 }; |
68 | 68 |
69 #endif // CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_H_ | 69 #endif // CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_H_ |
OLD | NEW |