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

Side by Side Diff: services/ui/launcher/launcher_view_tree.cc

Issue 1779933003: Mozart: Replace Set/Reset nomenclature with Set/Clear. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-8
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 | « services/gfx/compositor/renderer_state.cc ('k') | services/ui/view_manager/view_registry.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 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 "services/ui/launcher/launcher_view_tree.h" 5 #include "services/ui/launcher/launcher_view_tree.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "mojo/public/cpp/application/connect.h" 8 #include "mojo/public/cpp/application/connect.h"
9 #include "mojo/services/gfx/composition/cpp/formatting.h" 9 #include "mojo/services/gfx/composition/cpp/formatting.h"
10 #include "mojo/services/ui/views/cpp/formatting.h" 10 #include "mojo/services/ui/views/cpp/formatting.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 view_tree_->SetRenderer(renderer.Pass()); 47 view_tree_->SetRenderer(renderer.Pass());
48 } 48 }
49 49
50 LauncherViewTree::~LauncherViewTree() {} 50 LauncherViewTree::~LauncherViewTree() {}
51 51
52 void LauncherViewTree::SetRoot(mojo::ui::ViewOwnerPtr owner) { 52 void LauncherViewTree::SetRoot(mojo::ui::ViewOwnerPtr owner) {
53 if (owner) { 53 if (owner) {
54 view_tree_->SetRoot(++root_key_, owner.Pass()); 54 view_tree_->SetRoot(++root_key_, owner.Pass());
55 root_was_set_ = true; 55 root_was_set_ = true;
56 } else { 56 } else {
57 view_tree_->ResetRoot(nullptr); 57 view_tree_->ClearRoot(nullptr);
58 root_was_set_ = false; 58 root_was_set_ = false;
59 } 59 }
60 root_layout_info_.reset(); 60 root_layout_info_.reset();
61 } 61 }
62 62
63 void LauncherViewTree::SetViewportMetrics( 63 void LauncherViewTree::SetViewportMetrics(
64 mojo::ViewportMetricsPtr viewport_metrics) { 64 mojo::ViewportMetricsPtr viewport_metrics) {
65 viewport_metrics_ = viewport_metrics.Pass(); 65 viewport_metrics_ = viewport_metrics.Pass();
66 view_tree_->RequestLayout(); 66 view_tree_->RequestLayout();
67 } 67 }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 << ", scene_token.value=" << info->scene_token->value; 131 << ", scene_token.value=" << info->scene_token->value;
132 132
133 root_layout_info_ = info.Pass(); 133 root_layout_info_ = info.Pass();
134 } 134 }
135 135
136 void LauncherViewTree::Shutdown() { 136 void LauncherViewTree::Shutdown() {
137 shutdown_callback_.Run(); 137 shutdown_callback_.Run();
138 } 138 }
139 139
140 } // namespace launcher 140 } // namespace launcher
OLDNEW
« no previous file with comments | « services/gfx/compositor/renderer_state.cc ('k') | services/ui/view_manager/view_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698