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

Side by Side Diff: content/browser/frame_host/frame_tree.cc

Issue 1825273002: Add more out of line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « content/browser/frame_host/frame_tree.h ('k') | content/browser/gpu/gpu_process_host.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/browser/frame_host/frame_tree.h" 5 #include "content/browser/frame_host/frame_tree.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <queue> 9 #include <queue>
10 #include <utility> 10 #include <utility>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 77
78 FrameTree::NodeIterator FrameTree::NodeRange::end() { 78 FrameTree::NodeIterator FrameTree::NodeRange::end() {
79 return NodeIterator(nullptr, nullptr); 79 return NodeIterator(nullptr, nullptr);
80 } 80 }
81 81
82 FrameTree::NodeRange::NodeRange(FrameTreeNode* root, 82 FrameTree::NodeRange::NodeRange(FrameTreeNode* root,
83 FrameTreeNode* node_to_skip) 83 FrameTreeNode* node_to_skip)
84 : root_(root), node_to_skip_(node_to_skip) {} 84 : root_(root), node_to_skip_(node_to_skip) {}
85 85
86 FrameTree::ConstNodeIterator::ConstNodeIterator(
87 const ConstNodeIterator& other) = default;
88
86 FrameTree::ConstNodeIterator::~ConstNodeIterator() {} 89 FrameTree::ConstNodeIterator::~ConstNodeIterator() {}
87 90
88 FrameTree::ConstNodeIterator& FrameTree::ConstNodeIterator::operator++() { 91 FrameTree::ConstNodeIterator& FrameTree::ConstNodeIterator::operator++() {
89 for (size_t i = 0; i < current_node_->child_count(); ++i) { 92 for (size_t i = 0; i < current_node_->child_count(); ++i) {
90 const FrameTreeNode* child = current_node_->child_at(i); 93 const FrameTreeNode* child = current_node_->child_at(i);
91 queue_.push(child); 94 queue_.push(child);
92 } 95 }
93 96
94 if (!queue_.empty()) { 97 if (!queue_.empty()) {
95 current_node_ = queue_.front(); 98 current_node_ = queue_.front();
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 // This is only used to set page-level focus in cross-process subframes, and 504 // This is only used to set page-level focus in cross-process subframes, and
502 // requests to set focus in main frame's SiteInstance are ignored. 505 // requests to set focus in main frame's SiteInstance are ignored.
503 if (instance != root_manager->current_frame_host()->GetSiteInstance()) { 506 if (instance != root_manager->current_frame_host()->GetSiteInstance()) {
504 RenderFrameProxyHost* proxy = 507 RenderFrameProxyHost* proxy =
505 root_manager->GetRenderFrameProxyHost(instance); 508 root_manager->GetRenderFrameProxyHost(instance);
506 proxy->Send(new InputMsg_SetFocus(proxy->GetRoutingID(), is_focused)); 509 proxy->Send(new InputMsg_SetFocus(proxy->GetRoutingID(), is_focused));
507 } 510 }
508 } 511 }
509 512
510 } // namespace content 513 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/frame_tree.h ('k') | content/browser/gpu/gpu_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698