| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_UI_VIEW_MANAGER_VIEW_ASSOCIATE_TABLE_H_ | 5 #ifndef SERVICES_UI_VIEW_MANAGER_VIEW_ASSOCIATE_TABLE_H_ |
| 6 #define SERVICES_UI_VIEW_MANAGER_VIEW_ASSOCIATE_TABLE_H_ | 6 #define SERVICES_UI_VIEW_MANAGER_VIEW_ASSOCIATE_TABLE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "mojo/common/binding_set.h" | 14 #include "mojo/common/binding_set.h" |
| 15 #include "mojo/public/cpp/application/application_impl.h" | |
| 16 #include "mojo/services/ui/views/interfaces/view_associates.mojom.h" | 15 #include "mojo/services/ui/views/interfaces/view_associates.mojom.h" |
| 17 #include "mojo/services/ui/views/interfaces/view_manager.mojom.h" | 16 #include "mojo/services/ui/views/interfaces/view_manager.mojom.h" |
| 18 | 17 |
| 19 namespace view_manager { | 18 namespace view_manager { |
| 20 | 19 |
| 21 // Maintains a table of all connected view associates. | 20 // Maintains a table of all connected view associates. |
| 22 class ViewAssociateTable : public mojo::ui::ViewAssociateOwner { | 21 class ViewAssociateTable : public mojo::ui::ViewAssociateOwner { |
| 23 public: | 22 public: |
| 24 using AssociateConnectionErrorCallback = | 23 using AssociateConnectionErrorCallback = |
| 25 base::Callback<void(const std::string&)>; | 24 base::Callback<void(const std::string&)>; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 uint32_t pending_connection_count_ = 0u; | 74 uint32_t pending_connection_count_ = 0u; |
| 76 bool waiting_to_register_associates_ = true; | 75 bool waiting_to_register_associates_ = true; |
| 77 std::vector<base::Closure> deferred_work_; | 76 std::vector<base::Closure> deferred_work_; |
| 78 | 77 |
| 79 DISALLOW_COPY_AND_ASSIGN(ViewAssociateTable); | 78 DISALLOW_COPY_AND_ASSIGN(ViewAssociateTable); |
| 80 }; | 79 }; |
| 81 | 80 |
| 82 } // namespace view_manager | 81 } // namespace view_manager |
| 83 | 82 |
| 84 #endif // SERVICES_UI_VIEW_MANAGER_VIEW_ASSOCIATE_TABLE_H_ | 83 #endif // SERVICES_UI_VIEW_MANAGER_VIEW_ASSOCIATE_TABLE_H_ |
| OLD | NEW |