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

Side by Side Diff: ui/app_list/views/contents_animator.h

Issue 788493002: app_list: Enable level 1 of cpplint, be stricker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert PRESUBMIT.py changes Created 6 years 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
« no previous file with comments | « ui/app_list/views/cached_label.h ('k') | ui/app_list/views/folder_background_view.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 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
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_
OLDNEW
« no previous file with comments | « ui/app_list/views/cached_label.h ('k') | ui/app_list/views/folder_background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698