| 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/root_window_controller.h" | 5 #include "ash/root_window_controller.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "ash/ash_constants.h" |
| 9 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
| 10 #include "ash/desktop_background/desktop_background_widget_controller.h" | 11 #include "ash/desktop_background/desktop_background_widget_controller.h" |
| 11 #include "ash/display/display_controller.h" | 12 #include "ash/display/display_controller.h" |
| 12 #include "ash/display/display_manager.h" | 13 #include "ash/display/display_manager.h" |
| 13 #include "ash/focus_cycler.h" | 14 #include "ash/focus_cycler.h" |
| 14 #include "ash/shelf_types.h" | 15 #include "ash/shelf_types.h" |
| 15 #include "ash/shell.h" | 16 #include "ash/shell.h" |
| 16 #include "ash/shell_delegate.h" | 17 #include "ash/shell_delegate.h" |
| 17 #include "ash/shell_factory.h" | 18 #include "ash/shell_factory.h" |
| 18 #include "ash/shell_window_ids.h" | 19 #include "ash/shell_window_ids.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 49 #include "ui/gfx/screen.h" | 50 #include "ui/gfx/screen.h" |
| 50 #include "ui/views/controls/menu/menu_model_adapter.h" | 51 #include "ui/views/controls/menu/menu_model_adapter.h" |
| 51 #include "ui/views/controls/menu/menu_runner.h" | 52 #include "ui/views/controls/menu/menu_runner.h" |
| 52 #include "ui/views/corewm/visibility_controller.h" | 53 #include "ui/views/corewm/visibility_controller.h" |
| 53 #include "ui/views/view_model.h" | 54 #include "ui/views/view_model.h" |
| 54 #include "ui/views/view_model_utils.h" | 55 #include "ui/views/view_model_utils.h" |
| 55 | 56 |
| 56 namespace ash { | 57 namespace ash { |
| 57 namespace { | 58 namespace { |
| 58 | 59 |
| 59 #if defined(OS_CHROMEOS) | |
| 60 // Background color used for the Chrome OS boot splash screen. | |
| 61 const SkColor kChromeOsBootColor = SkColorSetARGB(0xff, 0xfe, 0xfe, 0xfe); | |
| 62 #endif | |
| 63 | |
| 64 // Duration for the animation that hides the boot splash screen, in | 60 // Duration for the animation that hides the boot splash screen, in |
| 65 // milliseconds. This should be short enough in relation to | 61 // milliseconds. This should be short enough in relation to |
| 66 // wm/window_animation.cc's brightness/grayscale fade animation that the login | 62 // wm/window_animation.cc's brightness/grayscale fade animation that the login |
| 67 // background image animation isn't hidden by the splash screen animation. | 63 // background image animation isn't hidden by the splash screen animation. |
| 68 const int kBootSplashScreenHideDurationMs = 500; | 64 const int kBootSplashScreenHideDurationMs = 500; |
| 69 | 65 |
| 70 // Creates a new window for use as a container. | 66 // Creates a new window for use as a container. |
| 71 aura::Window* CreateContainer(int window_id, | 67 aura::Window* CreateContainer(int window_id, |
| 72 const char* name, | 68 const char* name, |
| 73 aura::Window* parent) { | 69 aura::Window* parent) { |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 "OverlayContainer", | 687 "OverlayContainer", |
| 692 lock_screen_related_containers); | 688 lock_screen_related_containers); |
| 693 SetUsesScreenCoordinates(overlay_container); | 689 SetUsesScreenCoordinates(overlay_container); |
| 694 | 690 |
| 695 CreateContainer(kShellWindowId_PowerButtonAnimationContainer, | 691 CreateContainer(kShellWindowId_PowerButtonAnimationContainer, |
| 696 "PowerButtonAnimationContainer", root_window) ; | 692 "PowerButtonAnimationContainer", root_window) ; |
| 697 } | 693 } |
| 698 | 694 |
| 699 } // namespace internal | 695 } // namespace internal |
| 700 } // namespace ash | 696 } // namespace ash |
| OLD | NEW |