| 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 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ |
| 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ | 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "mojo/services/public/cpp/view_manager/types.h" | 10 #include "mojo/services/public/cpp/view_manager/types.h" |
| 11 #include "third_party/skia/include/core/SkColor.h" | 11 #include "third_party/skia/include/core/SkColor.h" |
| 12 | 12 |
| 13 class SkBitmap; | 13 class SkBitmap; |
| 14 | 14 |
| 15 namespace mojo { | 15 namespace mojo { |
| 16 namespace view_manager { | |
| 17 | 16 |
| 18 class Node; | 17 class Node; |
| 19 class ViewManager; | 18 class ViewManager; |
| 20 class ViewObserver; | 19 class ViewObserver; |
| 21 | 20 |
| 22 // Views are owned by the ViewManager. | 21 // Views are owned by the ViewManager. |
| 23 class View { | 22 class View { |
| 24 public: | 23 public: |
| 25 static View* Create(ViewManager* manager); | 24 static View* Create(ViewManager* manager); |
| 26 | 25 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 47 | 46 |
| 48 Id id_; | 47 Id id_; |
| 49 Node* node_; | 48 Node* node_; |
| 50 ViewManager* manager_; | 49 ViewManager* manager_; |
| 51 | 50 |
| 52 ObserverList<ViewObserver> observers_; | 51 ObserverList<ViewObserver> observers_; |
| 53 | 52 |
| 54 DISALLOW_COPY_AND_ASSIGN(View); | 53 DISALLOW_COPY_AND_ASSIGN(View); |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 } // namespace view_manager | |
| 58 } // namespace mojo | 56 } // namespace mojo |
| 59 | 57 |
| 60 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ | 58 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_ |
| OLD | NEW |