| 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 SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ | 5 #ifndef SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ |
| 6 #define SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ | 6 #define SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 mojo::InterfaceRequest<mojo::ServiceProvider> services, | 84 mojo::InterfaceRequest<mojo::ServiceProvider> services, |
| 85 mojo::ServiceProviderPtr exposed_services); | 85 mojo::ServiceProviderPtr exposed_services); |
| 86 | 86 |
| 87 // The following methods are invoked after the corresponding change has been | 87 // The following methods are invoked after the corresponding change has been |
| 88 // processed. They do the appropriate bookkeeping and update the client as | 88 // processed. They do the appropriate bookkeeping and update the client as |
| 89 // necessary. | 89 // necessary. |
| 90 void ProcessViewBoundsChanged(const ServerView* view, | 90 void ProcessViewBoundsChanged(const ServerView* view, |
| 91 const gfx::Rect& old_bounds, | 91 const gfx::Rect& old_bounds, |
| 92 const gfx::Rect& new_bounds, | 92 const gfx::Rect& new_bounds, |
| 93 bool originated_change); | 93 bool originated_change); |
| 94 void ProcessViewportMetricsChanged(const mojo::ViewportMetrics& old_metrics, |
| 95 const mojo::ViewportMetrics& new_metrics, |
| 96 bool originated_change); |
| 94 void ProcessWillChangeViewHierarchy(const ServerView* view, | 97 void ProcessWillChangeViewHierarchy(const ServerView* view, |
| 95 const ServerView* new_parent, | 98 const ServerView* new_parent, |
| 96 const ServerView* old_parent, | 99 const ServerView* old_parent, |
| 97 bool originated_change); | 100 bool originated_change); |
| 98 void ProcessViewPropertyChanged(const ServerView* view, | 101 void ProcessViewPropertyChanged(const ServerView* view, |
| 99 const std::string& name, | 102 const std::string& name, |
| 100 const std::vector<uint8_t>* new_data, | 103 const std::vector<uint8_t>* new_data, |
| 101 bool originated_change); | 104 bool originated_change); |
| 102 void ProcessViewHierarchyChanged(const ServerView* view, | 105 void ProcessViewHierarchyChanged(const ServerView* view, |
| 103 const ServerView* new_parent, | 106 const ServerView* new_parent, |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 // connection may have no root. A connection has no root if either the root | 239 // connection may have no root. A connection has no root if either the root |
| 237 // is destroyed or Embed() is invoked on the root. | 240 // is destroyed or Embed() is invoked on the root. |
| 238 scoped_ptr<ViewId> root_; | 241 scoped_ptr<ViewId> root_; |
| 239 | 242 |
| 240 DISALLOW_COPY_AND_ASSIGN(ViewManagerServiceImpl); | 243 DISALLOW_COPY_AND_ASSIGN(ViewManagerServiceImpl); |
| 241 }; | 244 }; |
| 242 | 245 |
| 243 } // namespace view_manager | 246 } // namespace view_manager |
| 244 | 247 |
| 245 #endif // SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ | 248 #endif // SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ |
| OLD | NEW |