| 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_constants.h" |
| 10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 } | 461 } |
| 462 | 462 |
| 463 void RootWindowController::UpdateShelfVisibility() { | 463 void RootWindowController::UpdateShelfVisibility() { |
| 464 shelf_->shelf_layout_manager()->UpdateVisibilityState(); | 464 shelf_->shelf_layout_manager()->UpdateVisibilityState(); |
| 465 } | 465 } |
| 466 | 466 |
| 467 void RootWindowController::InitTouchHuds() { | 467 void RootWindowController::InitTouchHuds() { |
| 468 CommandLine* command_line = CommandLine::ForCurrentProcess(); | 468 CommandLine* command_line = CommandLine::ForCurrentProcess(); |
| 469 if (command_line->HasSwitch(switches::kAshTouchHud)) | 469 if (command_line->HasSwitch(switches::kAshTouchHud)) |
| 470 set_touch_hud_debug(new TouchHudDebug(root_window_.get())); | 470 set_touch_hud_debug(new TouchHudDebug(root_window_.get())); |
| 471 if (Shell::GetInstance()->is_touch_hud_projection_enabled()) | 471 if (Shell::GetInstance()->delegate()->IsTouchHudProjectionEnabled()) |
| 472 EnableTouchHudProjection(); | 472 EnableTouchHudProjection(); |
| 473 } | 473 } |
| 474 | 474 |
| 475 aura::Window* RootWindowController::GetFullscreenWindow() const { | 475 aura::Window* RootWindowController::GetFullscreenWindow() const { |
| 476 aura::Window* container = workspace_controller_->GetActiveWorkspaceWindow(); | 476 aura::Window* container = workspace_controller_->GetActiveWorkspaceWindow(); |
| 477 for (size_t i = 0; i < container->children().size(); ++i) { | 477 for (size_t i = 0; i < container->children().size(); ++i) { |
| 478 aura::Window* child = container->children()[i]; | 478 aura::Window* child = container->children()[i]; |
| 479 if (ash::wm::IsWindowFullscreen(child)) | 479 if (ash::wm::IsWindowFullscreen(child)) |
| 480 return child; | 480 return child; |
| 481 } | 481 } |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 "OverlayContainer", | 662 "OverlayContainer", |
| 663 lock_screen_related_containers); | 663 lock_screen_related_containers); |
| 664 SetUsesScreenCoordinates(overlay_container); | 664 SetUsesScreenCoordinates(overlay_container); |
| 665 | 665 |
| 666 CreateContainer(kShellWindowId_PowerButtonAnimationContainer, | 666 CreateContainer(kShellWindowId_PowerButtonAnimationContainer, |
| 667 "PowerButtonAnimationContainer", root_window) ; | 667 "PowerButtonAnimationContainer", root_window) ; |
| 668 } | 668 } |
| 669 | 669 |
| 670 } // namespace internal | 670 } // namespace internal |
| 671 } // namespace ash | 671 } // namespace ash |
| OLD | NEW |