| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.h" | 5 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.h" |
| 6 | 6 |
| 7 #include "ash/media_controller.h" | 7 #include "ash/media_controller.h" |
| 8 #include "ash/multi_profile_uma.h" | 8 #include "ash/multi_profile_uma.h" |
| 9 #include "ash/public/cpp/shell_window_ids.h" | 9 #include "ash/public/cpp/shell_window_ids.h" |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 std::vector<Profile*> profiles = | 81 std::vector<Profile*> profiles = |
| 82 g_browser_process->profile_manager()->GetLoadedProfiles(); | 82 g_browser_process->profile_manager()->GetLoadedProfiles(); |
| 83 for (std::vector<Profile*>::iterator it = profiles.begin(); | 83 for (std::vector<Profile*>::iterator it = profiles.begin(); |
| 84 it != profiles.end() && app_window == NULL; | 84 it != profiles.end() && app_window == NULL; |
| 85 it++) { | 85 it++) { |
| 86 app_window = extensions::AppWindowRegistry::Get(*it) | 86 app_window = extensions::AppWindowRegistry::Get(*it) |
| 87 ->GetAppWindowForNativeWindow(window); | 87 ->GetAppWindowForNativeWindow(window); |
| 88 } | 88 } |
| 89 if (app_window) { | 89 if (app_window) { |
| 90 if (app_window->window_type() == | 90 if (app_window->window_type() == |
| 91 extensions::AppWindow::WINDOW_TYPE_PANEL || | 91 extensions::AppWindow::WINDOW_TYPE_PANEL) { |
| 92 app_window->window_type() == | |
| 93 extensions::AppWindow::WINDOW_TYPE_V1_PANEL) { | |
| 94 window_type = ash::MultiProfileUMA::TELEPORT_WINDOW_PANEL; | 92 window_type = ash::MultiProfileUMA::TELEPORT_WINDOW_PANEL; |
| 95 } else { | 93 } else { |
| 96 window_type = ash::MultiProfileUMA::TELEPORT_WINDOW_V2_APP; | 94 window_type = ash::MultiProfileUMA::TELEPORT_WINDOW_V2_APP; |
| 97 } | 95 } |
| 98 } | 96 } |
| 99 } | 97 } |
| 100 ash::MultiProfileUMA::RecordTeleportWindowType(window_type); | 98 ash::MultiProfileUMA::RecordTeleportWindowType(window_type); |
| 101 } | 99 } |
| 102 | 100 |
| 103 bool HasSystemModalTransientChildWindow(aura::Window* window) { | 101 bool HasSystemModalTransientChildWindow(aura::Window* window) { |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 window->Hide(); | 703 window->Hide(); |
| 706 } | 704 } |
| 707 | 705 |
| 708 int MultiUserWindowManagerChromeOS::GetAdjustedAnimationTimeInMS( | 706 int MultiUserWindowManagerChromeOS::GetAdjustedAnimationTimeInMS( |
| 709 int default_time_in_ms) const { | 707 int default_time_in_ms) const { |
| 710 return animation_speed_ == ANIMATION_SPEED_NORMAL ? default_time_in_ms : | 708 return animation_speed_ == ANIMATION_SPEED_NORMAL ? default_time_in_ms : |
| 711 (animation_speed_ == ANIMATION_SPEED_FAST ? 10 : 0); | 709 (animation_speed_ == ANIMATION_SPEED_FAST ? 10 : 0); |
| 712 } | 710 } |
| 713 | 711 |
| 714 } // namespace chrome | 712 } // namespace chrome |
| OLD | NEW |