| Index: trunk/src/mojo/services/public/cpp/view_manager/lib/view_manager.cc
|
| ===================================================================
|
| --- trunk/src/mojo/services/public/cpp/view_manager/lib/view_manager.cc (revision 268224)
|
| +++ trunk/src/mojo/services/public/cpp/view_manager/lib/view_manager.cc (working copy)
|
| @@ -1,32 +1,20 @@
|
| // 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() {}
|
| -
|
| -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
|
| +
|
| +#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
|
|
|