OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ash/aura/shell_port_classic.h" | 5 #include "ash/aura/shell_port_classic.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/accelerators/accelerator_controller.h" | 9 #include "ash/accelerators/accelerator_controller.h" |
10 #include "ash/accelerators/accelerator_controller_delegate_aura.h" | 10 #include "ash/accelerators/accelerator_controller_delegate_aura.h" |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 void ShellPortClassic::CreatePointerWatcherAdapter() { | 242 void ShellPortClassic::CreatePointerWatcherAdapter() { |
243 pointer_watcher_adapter_ = base::MakeUnique<PointerWatcherAdapter>(); | 243 pointer_watcher_adapter_ = base::MakeUnique<PointerWatcherAdapter>(); |
244 } | 244 } |
245 | 245 |
246 std::unique_ptr<AshWindowTreeHost> ShellPortClassic::CreateAshWindowTreeHost( | 246 std::unique_ptr<AshWindowTreeHost> ShellPortClassic::CreateAshWindowTreeHost( |
247 const AshWindowTreeHostInitParams& init_params) { | 247 const AshWindowTreeHostInitParams& init_params) { |
248 // A return value of null results in falling back to the default. | 248 // A return value of null results in falling back to the default. |
249 return nullptr; | 249 return nullptr; |
250 } | 250 } |
251 | 251 |
| 252 void ShellPortClassic::OnCreatedRootWindowContainers( |
| 253 RootWindowController* root_window_controller) {} |
| 254 |
252 void ShellPortClassic::CreatePrimaryHost() { | 255 void ShellPortClassic::CreatePrimaryHost() { |
253 Shell::Get()->window_tree_host_manager()->Start(); | 256 Shell::Get()->window_tree_host_manager()->Start(); |
254 AshWindowTreeHostInitParams ash_init_params; | 257 AshWindowTreeHostInitParams ash_init_params; |
255 Shell::Get()->window_tree_host_manager()->CreatePrimaryHost(ash_init_params); | 258 Shell::Get()->window_tree_host_manager()->CreatePrimaryHost(ash_init_params); |
256 } | 259 } |
257 | 260 |
258 void ShellPortClassic::InitHosts(const ShellInitParams& init_params) { | 261 void ShellPortClassic::InitHosts(const ShellInitParams& init_params) { |
259 Shell::Get()->window_tree_host_manager()->InitHosts(); | 262 Shell::Get()->window_tree_host_manager()->InitHosts(); |
260 } | 263 } |
261 | 264 |
(...skipping 19 matching lines...) Expand all Loading... |
281 for (auto& observer : display_observers_) | 284 for (auto& observer : display_observers_) |
282 observer.OnDisplayConfigurationChanging(); | 285 observer.OnDisplayConfigurationChanging(); |
283 } | 286 } |
284 | 287 |
285 void ShellPortClassic::OnDisplayConfigurationChanged() { | 288 void ShellPortClassic::OnDisplayConfigurationChanged() { |
286 for (auto& observer : display_observers_) | 289 for (auto& observer : display_observers_) |
287 observer.OnDisplayConfigurationChanged(); | 290 observer.OnDisplayConfigurationChanged(); |
288 } | 291 } |
289 | 292 |
290 } // namespace ash | 293 } // namespace ash |
OLD | NEW |