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

Side by Side Diff: mandoline/tab/frame_tree.cc

Issue 1239313004: More html_viewer OOPIF changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile Created 5 years, 5 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 | « mandoline/tab/frame_tree.h ('k') | mandoline/tab/public/interfaces/frame_tree.mojom » ('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 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
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
OLDNEW
« no previous file with comments | « mandoline/tab/frame_tree.h ('k') | mandoline/tab/public/interfaces/frame_tree.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698