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 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ | 5 #include "mojo/services/public/cpp/view_manager/lib/view_private.h" |
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 | 6 |
10 namespace mojo { | 7 namespace mojo { |
11 namespace services { | 8 namespace services { |
12 namespace view_manager { | 9 namespace view_manager { |
13 | 10 |
14 class View { | 11 ViewPrivate::ViewPrivate(View* view) |
15 public: | 12 : view_(view) { |
16 private: | 13 } |
17 DISALLOW_COPY_AND_ASSIGN(View); | 14 |
18 }; | 15 ViewPrivate::~ViewPrivate() { |
| 16 } |
| 17 |
| 18 // static |
| 19 View* ViewPrivate::LocalCreate() { |
| 20 return new View; |
| 21 } |
19 | 22 |
20 } // namespace view_manager | 23 } // namespace view_manager |
21 } // namespace services | 24 } // namespace services |
22 } // namespace mojo | 25 } // namespace mojo |
23 | |
24 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ | |
OLD | NEW |