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

Unified Diff: mojo/services/public/cpp/view_manager/lib/view_manager.cc

Issue 260863008: Add support for mapping node tree on the client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 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
« no previous file with comments | « mojo/mojo_services.gypi ('k') | mojo/services/public/cpp/view_manager/lib/view_manager_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/public/cpp/view_manager/lib/view_manager.cc
diff --git a/mojo/services/public/cpp/view_manager/lib/view_manager.cc b/mojo/services/public/cpp/view_manager/lib/view_manager.cc
index 7fd82e7617a8bf39ae332593d50a167b0cb15912..3c45538281b797933354e65c26532d461a0fe9b2 100644
--- a/mojo/services/public/cpp/view_manager/lib/view_manager.cc
+++ b/mojo/services/public/cpp/view_manager/lib/view_manager.cc
@@ -1,20 +1,32 @@
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-
-#include "mojo/services/public/cpp/view_manager/view_manager.h"
-
-#include "mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.h"
-
-namespace mojo {
-namespace services {
-namespace view_manager {
-
-ViewManager::ViewManager(Shell* shell)
- : shell_(shell),
- synchronizer_(new ViewManagerSynchronizer(this)) {}
-ViewManager::~ViewManager() {}
-
-} // namespace view_manager
-} // namespace services
-} // namespace mojo
+
+#include "mojo/services/public/cpp/view_manager/view_manager.h"
+
+#include "mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.h"
+
+namespace mojo {
+namespace services {
+namespace view_manager {
+
+ViewManager::ViewManager(Shell* shell)
+ : shell_(shell),
+ synchronizer_(new ViewManagerSynchronizer(this)) {}
+ViewManager::~ViewManager() {}
+
+void ViewManager::BuildNodeTree(const mojo::Callback<void()>& callback) {
+ synchronizer_->BuildNodeTree(callback);
+}
+
+void ViewManager::AddObserver(ViewManagerObserver* observer) {
+ observers_.AddObserver(observer);
+}
+
+void ViewManager::RemoveObserver(ViewManagerObserver* observer) {
+ observers_.RemoveObserver(observer);
+}
+
+} // namespace view_manager
+} // namespace services
+} // namespace mojo
« no previous file with comments | « mojo/mojo_services.gypi ('k') | mojo/services/public/cpp/view_manager/lib/view_manager_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698