| 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 COMPONENTS_MUS_SERVER_VIEW_H_ | 5 #ifndef COMPONENTS_MUS_SERVER_VIEW_H_ |
| 6 #define COMPONENTS_MUS_SERVER_VIEW_H_ | 6 #define COMPONENTS_MUS_SERVER_VIEW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
| 12 #include "cc/surfaces/surface_factory.h" | 12 #include "cc/surfaces/surface_factory.h" |
| 13 #include "cc/surfaces/surface_factory_client.h" | 13 #include "cc/surfaces/surface_factory_client.h" |
| 14 #include "cc/surfaces/surface_id.h" | 14 #include "cc/surfaces/surface_id.h" |
| 15 #include "cc/surfaces/surface_id_allocator.h" | 15 #include "cc/surfaces/surface_id_allocator.h" |
| 16 #include "components/mus/ids.h" | 16 #include "components/mus/ids.h" |
| 17 #include "components/mus/public/interfaces/view_tree.mojom.h" | 17 #include "components/mus/public/interfaces/view_tree.mojom.h" |
| 18 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" | 18 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" |
| 19 #include "ui/gfx/geometry/rect.h" | 19 #include "ui/gfx/geometry/rect.h" |
| 20 #include "ui/gfx/transform.h" | 20 #include "ui/gfx/transform.h" |
| 21 #include "ui/platform_window/text_input_state.h" | 21 #include "ui/platform_window/text_input_state.h" |
| 22 | 22 |
| 23 namespace mus { | 23 namespace view_manager { |
| 24 | 24 |
| 25 class ServerViewDelegate; | 25 class ServerViewDelegate; |
| 26 class ServerViewObserver; | 26 class ServerViewObserver; |
| 27 | 27 |
| 28 // Server side representation of a view. Delegate is informed of interesting | 28 // Server side representation of a view. Delegate is informed of interesting |
| 29 // events. | 29 // events. |
| 30 // | 30 // |
| 31 // It is assumed that all functions that mutate the tree have validated the | 31 // It is assumed that all functions that mutate the tree have validated the |
| 32 // mutation is possible before hand. For example, Reorder() assumes the supplied | 32 // mutation is possible before hand. For example, Reorder() assumes the supplied |
| 33 // view is a child and not already in position. | 33 // view is a child and not already in position. |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 std::map<std::string, std::vector<uint8_t>> properties_; | 142 std::map<std::string, std::vector<uint8_t>> properties_; |
| 143 | 143 |
| 144 base::ObserverList<ServerViewObserver> observers_; | 144 base::ObserverList<ServerViewObserver> observers_; |
| 145 mojo::SurfaceClientPtr client_; | 145 mojo::SurfaceClientPtr client_; |
| 146 mojo::Binding<Surface> binding_; | 146 mojo::Binding<Surface> binding_; |
| 147 | 147 |
| 148 DISALLOW_COPY_AND_ASSIGN(ServerView); | 148 DISALLOW_COPY_AND_ASSIGN(ServerView); |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 } // namespace mus | 151 } // namespace view_manager |
| 152 | 152 |
| 153 #endif // COMPONENTS_MUS_SERVER_VIEW_H_ | 153 #endif // COMPONENTS_MUS_SERVER_VIEW_H_ |
| OLD | NEW |