| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/bind.h" | 6 #include "base/bind.h" |
| 7 #include "mojo/public/cpp/application/application_delegate.h" | 7 #include "mojo/public/cpp/application/application_delegate.h" |
| 8 #include "mojo/public/cpp/application/application_impl.h" | 8 #include "mojo/public/cpp/application/application_impl.h" |
| 9 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" | 9 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 base::Bind(&ViewManagerInit::DidConnect, | 24 base::Bind(&ViewManagerInit::DidConnect, |
| 25 base::Unretained(this))); | 25 base::Unretained(this))); |
| 26 } | 26 } |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 void DidConnect(bool result) { | 29 void DidConnect(bool result) { |
| 30 DCHECK(result); | 30 DCHECK(result); |
| 31 VLOG(1) << "ViewManagerInit::DidConnection result=" << result; | 31 VLOG(1) << "ViewManagerInit::DidConnection result=" << result; |
| 32 } | 32 } |
| 33 | 33 |
| 34 view_manager::ViewManagerInitServicePtr view_manager_init_; | 34 ViewManagerInitServicePtr view_manager_init_; |
| 35 | 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(ViewManagerInit); | 36 DISALLOW_COPY_AND_ASSIGN(ViewManagerInit); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 } // namespace examples | 39 } // namespace examples |
| 40 | 40 |
| 41 // static | 41 // static |
| 42 ApplicationDelegate* ApplicationDelegate::Create() { | 42 ApplicationDelegate* ApplicationDelegate::Create() { |
| 43 return new examples::ViewManagerInit(); | 43 return new examples::ViewManagerInit(); |
| 44 } | 44 } |
| 45 | 45 |
| 46 } // namespace mojo | 46 } // namespace mojo |
| OLD | NEW |