Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1547)

Side by Side Diff: ash/root_window_controller.cc

Issue 12079002: Minimize black screen during the boot with multi displays (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/display/display_change_observer_x11.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ash/display/display_change_observer_x11.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698