| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "mandoline/tab/frame_tree.h" | 5 #include "mandoline/tab/frame_tree.h" |
| 6 | 6 |
| 7 #include "mandoline/tab/frame_tree_delegate.h" | 7 #include "mandoline/tab/frame_tree_delegate.h" |
| 8 #include "mandoline/tab/frame_user_data.h" | 8 #include "mandoline/tab/frame_user_data.h" |
| 9 | 9 |
| 10 namespace mandoline { | 10 namespace mandoline { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 void FrameTree::ProgressChanged() { | 66 void FrameTree::ProgressChanged() { |
| 67 int frame_count = 0; | 67 int frame_count = 0; |
| 68 double total_progress = root_.GatherProgress(&frame_count); | 68 double total_progress = root_.GatherProgress(&frame_count); |
| 69 // Make sure the progress bar never runs backwards, even if that means | 69 // Make sure the progress bar never runs backwards, even if that means |
| 70 // accuracy takes a hit. | 70 // accuracy takes a hit. |
| 71 progress_ = std::max(progress_, total_progress / frame_count); | 71 progress_ = std::max(progress_, total_progress / frame_count); |
| 72 if (delegate_) | 72 if (delegate_) |
| 73 delegate_->ProgressChanged(progress_); | 73 delegate_->ProgressChanged(progress_); |
| 74 } | 74 } |
| 75 | 75 |
| 76 void FrameTree::FrameNameChanged(Frame* frame) { |
| 77 root_.NotifyFrameNameChanged(frame); |
| 78 } |
| 79 |
| 76 } // namespace mandoline | 80 } // namespace mandoline |
| OLD | NEW |