| 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 "ash/host/ash_window_tree_host.h" | 5 #include "ash/host/ash_window_tree_host.h" |
| 6 | 6 |
| 7 #include "ash/ash_export.h" | 7 #include "ash/ash_export.h" |
| 8 #include "ash/ash_switches.h" | 8 #include "ash/ash_switches.h" |
| 9 #include "ash/host/ash_remote_window_tree_host_win.h" | 9 #include "ash/host/ash_remote_window_tree_host_win.h" |
| 10 #include "ash/host/ash_window_tree_host_init_params.h" | 10 #include "ash/host/ash_window_tree_host_init_params.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 TransformerHelper transformer_helper_; | 107 TransformerHelper transformer_helper_; |
| 108 | 108 |
| 109 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostWin); | 109 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostWin); |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 } // namespace | 112 } // namespace |
| 113 | 113 |
| 114 AshWindowTreeHost* AshWindowTreeHost::Create( | 114 AshWindowTreeHost* AshWindowTreeHost::Create( |
| 115 const AshWindowTreeHostInitParams& init_params) { | 115 const AshWindowTreeHostInitParams& init_params) { |
| 116 if (base::win::GetVersion() >= base::win::VERSION_WIN7 && | 116 if (base::win::GetVersion() >= base::win::VERSION_WIN7 && |
| 117 !CommandLine::ForCurrentProcess()->HasSwitch( | 117 !base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 118 ash::switches::kForceAshToDesktop)) | 118 ash::switches::kForceAshToDesktop)) |
| 119 return new AshRemoteWindowTreeHostWin(init_params.remote_hwnd); | 119 return new AshRemoteWindowTreeHostWin(init_params.remote_hwnd); |
| 120 | 120 |
| 121 return new AshWindowTreeHostWin(init_params.initial_bounds); | 121 return new AshWindowTreeHostWin(init_params.initial_bounds); |
| 122 } | 122 } |
| 123 | 123 |
| 124 } // namespace ash | 124 } // namespace ash |
| OLD | NEW |