Chromium Code Reviews| Index: ash/shell.cc |
| diff --git a/ash/shell.cc b/ash/shell.cc |
| index 3627616f794080c682bfccd2f5e06b325d2f8a1f..e6d32a3d4851beb0bf0c0ccd4303f21da899a808 100644 |
| --- a/ash/shell.cc |
| +++ b/ash/shell.cc |
| @@ -194,7 +194,8 @@ Shell::Shell(ShellDelegate* delegate) |
| panel_layout_manager_(NULL), |
| status_area_widget_(NULL), |
| browser_context_(NULL) { |
| - gfx::Screen::SetInstance(screen_); |
| + gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, screen_); |
| + gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_ALTERNATE, screen_); |
| ui_controls::InstallUIControlsAura(internal::CreateUIControls()); |
| #if defined(OS_CHROMEOS) |
| output_configurator_->AddObserver(output_configurator_animation_.get()); |
| @@ -336,6 +337,11 @@ aura::RootWindow* Shell::GetActiveRootWindow() { |
| } |
| // static |
| +gfx::Screen* Shell::GetAshScreen() { |
| + return gfx::Screen::GetScreenFor(GetActiveRootWindow()); |
|
oshima
2012/10/09 00:26:14
GetPrimaryRootWindow() is better. (it will never c
scottmg
2012/10/09 04:30:47
Done.
|
| +} |
| + |
| +// static |
| Shell::RootWindowList Shell::GetAllRootWindows() { |
| return Shell::GetInstance()->display_controller()-> |
| GetAllRootWindows(); |