| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_APP_LIST_VIEWS_CONTENTS_ANIMATOR_H_ | 5 #ifndef UI_APP_LIST_VIEWS_CONTENTS_ANIMATOR_H_ |
| 6 #define UI_APP_LIST_VIEWS_CONTENTS_ANIMATOR_H_ | 6 #define UI_APP_LIST_VIEWS_CONTENTS_ANIMATOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 class DefaultAnimator : public ContentsAnimator { | 73 class DefaultAnimator : public ContentsAnimator { |
| 74 public: | 74 public: |
| 75 explicit DefaultAnimator(ContentsView* contents_view); | 75 explicit DefaultAnimator(ContentsView* contents_view); |
| 76 | 76 |
| 77 ~DefaultAnimator() override {} | 77 ~DefaultAnimator() override {} |
| 78 | 78 |
| 79 // ContentsAnimator overrides: | 79 // ContentsAnimator overrides: |
| 80 std::string NameForTests() const override; | 80 std::string NameForTests() const override; |
| 81 void Update(double progress, int from_page, int to_page) override; | 81 void Update(double progress, int from_page, int to_page) override; |
| 82 | 82 |
| 83 private: |
| 83 DISALLOW_COPY_AND_ASSIGN(DefaultAnimator); | 84 DISALLOW_COPY_AND_ASSIGN(DefaultAnimator); |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 // Animator between the start page and apps grid page. | 87 // Animator between the start page and apps grid page. |
| 87 class StartToAppsAnimator : public ContentsAnimator { | 88 class StartToAppsAnimator : public ContentsAnimator { |
| 88 public: | 89 public: |
| 89 explicit StartToAppsAnimator(ContentsView* contents_view); | 90 explicit StartToAppsAnimator(ContentsView* contents_view); |
| 90 | 91 |
| 91 ~StartToAppsAnimator() override {} | 92 ~StartToAppsAnimator() override {} |
| 92 | 93 |
| 93 // ContentsAnimator overrides: | 94 // ContentsAnimator overrides: |
| 94 std::string NameForTests() const override; | 95 std::string NameForTests() const override; |
| 95 void Update(double progress, int start_page, int apps_page) override; | 96 void Update(double progress, int start_page, int apps_page) override; |
| 96 | 97 |
| 98 private: |
| 97 DISALLOW_COPY_AND_ASSIGN(StartToAppsAnimator); | 99 DISALLOW_COPY_AND_ASSIGN(StartToAppsAnimator); |
| 98 }; | 100 }; |
| 99 | 101 |
| 100 // Animator from start page to custom page. | 102 // Animator from start page to custom page. |
| 101 class StartToCustomAnimator : public ContentsAnimator { | 103 class StartToCustomAnimator : public ContentsAnimator { |
| 102 public: | 104 public: |
| 103 explicit StartToCustomAnimator(ContentsView* contents_view); | 105 explicit StartToCustomAnimator(ContentsView* contents_view); |
| 104 | 106 |
| 105 std::string NameForTests() const override; | 107 std::string NameForTests() const override; |
| 106 void Update(double progress, int start_page, int custom_page) override; | 108 void Update(double progress, int start_page, int custom_page) override; |
| 107 | 109 |
| 110 private: |
| 108 DISALLOW_COPY_AND_ASSIGN(StartToCustomAnimator); | 111 DISALLOW_COPY_AND_ASSIGN(StartToCustomAnimator); |
| 109 }; | 112 }; |
| 110 | 113 |
| 111 } // namespace app_list | 114 } // namespace app_list |
| 112 | 115 |
| 113 #endif // UI_APP_LIST_VIEWS_CONTENTS_ANIMATOR_H_ | 116 #endif // UI_APP_LIST_VIEWS_CONTENTS_ANIMATOR_H_ |
| OLD | NEW |