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

Side by Side Diff: cc/animation/animation.cc

Issue 1912023003: CC Animation: Remove Observers and Observations in namings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observertype
Patch Set: Rename it in .cc comments as well Created 4 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
« no previous file with comments | « cc/animation/animation.h ('k') | cc/animation/animation_host.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "cc/animation/animation.h" 5 #include "cc/animation/animation.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 iterations_(1), 54 iterations_(1),
55 iteration_start_(0), 55 iteration_start_(0),
56 direction_(DIRECTION_NORMAL), 56 direction_(DIRECTION_NORMAL),
57 playback_rate_(1), 57 playback_rate_(1),
58 fill_mode_(FILL_MODE_BOTH), 58 fill_mode_(FILL_MODE_BOTH),
59 needs_synchronized_start_time_(false), 59 needs_synchronized_start_time_(false),
60 received_finished_event_(false), 60 received_finished_event_(false),
61 suspended_(false), 61 suspended_(false),
62 is_controlling_instance_(false), 62 is_controlling_instance_(false),
63 is_impl_only_(false), 63 is_impl_only_(false),
64 affects_active_observers_(true), 64 affects_active_elements_(true),
65 affects_pending_observers_(true) {} 65 affects_pending_elements_(true) {}
66 66
67 Animation::~Animation() { 67 Animation::~Animation() {
68 if (run_state_ == RUNNING || run_state_ == PAUSED) 68 if (run_state_ == RUNNING || run_state_ == PAUSED)
69 SetRunState(ABORTED, base::TimeTicks()); 69 SetRunState(ABORTED, base::TimeTicks());
70 } 70 }
71 71
72 void Animation::SetRunState(RunState run_state, 72 void Animation::SetRunState(RunState run_state,
73 base::TimeTicks monotonic_time) { 73 base::TimeTicks monotonic_time) {
74 if (suspended_) 74 if (suspended_)
75 return; 75 return;
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 // the main thread. 260 // the main thread.
261 if (run_state_ == Animation::PAUSED || 261 if (run_state_ == Animation::PAUSED ||
262 other->run_state_ == Animation::PAUSED) { 262 other->run_state_ == Animation::PAUSED) {
263 other->run_state_ = run_state_; 263 other->run_state_ = run_state_;
264 other->pause_time_ = pause_time_; 264 other->pause_time_ = pause_time_;
265 other->total_paused_time_ = total_paused_time_; 265 other->total_paused_time_ = total_paused_time_;
266 } 266 }
267 } 267 }
268 268
269 } // namespace cc 269 } // namespace cc
OLDNEW
« no previous file with comments | « cc/animation/animation.h ('k') | cc/animation/animation_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698