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 #include "mojo/services/view_manager/connection_manager.h" | 5 #include "mojo/services/view_manager/connection_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "mojo/converters/input_events/input_events_type_converters.h" |
8 #include "mojo/public/cpp/application/application_connection.h" | 9 #include "mojo/public/cpp/application/application_connection.h" |
9 #include "mojo/public/interfaces/application/service_provider.mojom.h" | 10 #include "mojo/public/interfaces/application/service_provider.mojom.h" |
10 #include "mojo/services/public/cpp/input_events/input_events_type_converters.h" | |
11 #include "mojo/services/view_manager/view_manager_service_impl.h" | 11 #include "mojo/services/view_manager/view_manager_service_impl.h" |
12 | 12 |
13 namespace mojo { | 13 namespace mojo { |
14 namespace service { | 14 namespace service { |
15 | 15 |
16 ConnectionManager::ScopedChange::ScopedChange( | 16 ConnectionManager::ScopedChange::ScopedChange( |
17 ViewManagerServiceImpl* connection, | 17 ViewManagerServiceImpl* connection, |
18 ConnectionManager* connection_manager, | 18 ConnectionManager* connection_manager, |
19 bool is_delete_view) | 19 bool is_delete_view) |
20 : connection_manager_(connection_manager), | 20 : connection_manager_(connection_manager), |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 void ConnectionManager::OnWillChangeViewVisibility(const ServerView* view) { | 288 void ConnectionManager::OnWillChangeViewVisibility(const ServerView* view) { |
289 for (ConnectionMap::iterator i = connection_map_.begin(); | 289 for (ConnectionMap::iterator i = connection_map_.begin(); |
290 i != connection_map_.end(); | 290 i != connection_map_.end(); |
291 ++i) { | 291 ++i) { |
292 i->second->ProcessWillChangeViewVisibility(view, IsChangeSource(i->first)); | 292 i->second->ProcessWillChangeViewVisibility(view, IsChangeSource(i->first)); |
293 } | 293 } |
294 } | 294 } |
295 | 295 |
296 } // namespace service | 296 } // namespace service |
297 } // namespace mojo | 297 } // namespace mojo |
OLD | NEW |