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

Unified Diff: services/ui/view_manager/view_layout_request.cc

Issue 1552043002: Make Mozart view manager use the new compositor. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-12
Patch Set: Created 4 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: services/ui/view_manager/view_layout_request.cc
diff --git a/services/ui/view_manager/view_layout_request.cc b/services/ui/view_manager/view_layout_request.cc
index cbec836cabbb2bd4fe503308be8adc812596d679..9ff591c530ef1030b87bb3c3a47f4a7e931533d0 100644
--- a/services/ui/view_manager/view_layout_request.cc
+++ b/services/ui/view_manager/view_layout_request.cc
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/logging.h"
#include "services/ui/view_manager/view_layout_request.h"
+#include "base/logging.h"
+
namespace view_manager {
ViewLayoutRequest::ViewLayoutRequest(
@@ -23,11 +24,11 @@ void ViewLayoutRequest::AddCallback(const ViewLayoutCallback& callback) {
callbacks_.emplace_back(callback);
}
-void ViewLayoutRequest::DispatchLayoutInfo(mojo::ui::ViewLayoutInfo* info) {
+void ViewLayoutRequest::DispatchLayoutInfo(mojo::ui::ViewLayoutInfoPtr info) {
DCHECK(!was_dispatched_);
was_dispatched_ = true;
for (const auto& callback : callbacks_)
- callback.Run(info ? info->Clone() : nullptr);
+ callback.Run(info ? info.Clone() : nullptr);
}
} // namespace view_manager

Powered by Google App Engine
This is Rietveld 408576698