OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/shell.h" | 5 #include "ash/shell.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/accelerators/accelerator_controller.h" | 10 #include "ash/accelerators/accelerator_controller.h" |
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1170 NOTREACHED(); | 1170 NOTREACHED(); |
1171 return NULL; | 1171 return NULL; |
1172 } | 1172 } |
1173 | 1173 |
1174 void Shell::OnEvent(ui::Event* event) { | 1174 void Shell::OnEvent(ui::Event* event) { |
1175 } | 1175 } |
1176 | 1176 |
1177 //////////////////////////////////////////////////////////////////////////////// | 1177 //////////////////////////////////////////////////////////////////////////////// |
1178 // Shell, aura::client::ActivationChangeObserver implementation: | 1178 // Shell, aura::client::ActivationChangeObserver implementation: |
1179 | 1179 |
1180 void Shell::OnWindowActivated(aura::Window* gained_active, | 1180 void Shell::OnWindowActivated( |
1181 aura::Window* lost_active) { | 1181 aura::client::ActivationChangeObserver::ActivationReason reason, |
| 1182 aura::Window* gained_active, |
| 1183 aura::Window* lost_active) { |
1182 if (gained_active) | 1184 if (gained_active) |
1183 target_root_window_ = gained_active->GetRootWindow(); | 1185 target_root_window_ = gained_active->GetRootWindow(); |
1184 } | 1186 } |
1185 | 1187 |
1186 } // namespace ash | 1188 } // namespace ash |
OLD | NEW |