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 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
509 Shell::GetInstance()->delegate()->CreateKeyboardControllerProxy(); | 509 Shell::GetInstance()->delegate()->CreateKeyboardControllerProxy(); |
510 keyboard_controller_.reset( | 510 keyboard_controller_.reset( |
511 new keyboard::KeyboardController(proxy)); | 511 new keyboard::KeyboardController(proxy)); |
512 aura::Window* keyboard_container = | 512 aura::Window* keyboard_container = |
513 keyboard_controller_->GetContainerWindow(); | 513 keyboard_controller_->GetContainerWindow(); |
514 parent->AddChild(keyboard_container); | 514 parent->AddChild(keyboard_container); |
515 keyboard_container->SetBounds(parent->bounds()); | 515 keyboard_container->SetBounds(parent->bounds()); |
516 } | 516 } |
517 } | 517 } |
518 | 518 |
519 void RootWindowController::SetPendingImmersiveGesture(bool value) { | |
520 aura::Window* container = workspace_controller_->GetActiveWorkspaceWindow(); | |
521 for (size_t i = 0; i < container->children().size(); ++i) { | |
522 aura::Window* child = container->children()[i]; | |
523 if (child->IsVisible() && child->GetProperty(kImmersiveModeKey)) { | |
524 child->SetProperty(kPendingImmersiveGestureKey, value); | |
525 return; | |
526 } | |
pkotwicz
2013/04/19 06:06:44
Can you modify RootWindowController::IsImmersiveMo
pkotwicz
2013/04/21 21:18:19
FYI: I have implemented GetFullscreenWindow() as p
rharrison
2013/04/22 18:36:52
I will change the related code to use GetFullscree
| |
527 } | |
528 } | |
519 | 529 |
520 //////////////////////////////////////////////////////////////////////////////// | 530 //////////////////////////////////////////////////////////////////////////////// |
521 // RootWindowController, private: | 531 // RootWindowController, private: |
522 | 532 |
523 void RootWindowController::CreateContainersInRootWindow( | 533 void RootWindowController::CreateContainersInRootWindow( |
524 aura::RootWindow* root_window) { | 534 aura::RootWindow* root_window) { |
525 // These containers are just used by PowerButtonController to animate groups | 535 // These containers are just used by PowerButtonController to animate groups |
526 // of containers simultaneously without messing up the current transformations | 536 // of containers simultaneously without messing up the current transformations |
527 // on those containers. These are direct children of the root window; all of | 537 // on those containers. These are direct children of the root window; all of |
528 // the other containers are their children. | 538 // the other containers are their children. |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
671 "OverlayContainer", | 681 "OverlayContainer", |
672 lock_screen_related_containers); | 682 lock_screen_related_containers); |
673 SetUsesScreenCoordinates(overlay_container); | 683 SetUsesScreenCoordinates(overlay_container); |
674 | 684 |
675 CreateContainer(kShellWindowId_PowerButtonAnimationContainer, | 685 CreateContainer(kShellWindowId_PowerButtonAnimationContainer, |
676 "PowerButtonAnimationContainer", root_window) ; | 686 "PowerButtonAnimationContainer", root_window) ; |
677 } | 687 } |
678 | 688 |
679 } // namespace internal | 689 } // namespace internal |
680 } // namespace ash | 690 } // namespace ash |
OLD | NEW |