| 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 <queue> | 7 #include <queue> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/ash_constants.h" | 10 #include "ash/ash_constants.h" |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 always_on_top_controller_->GetLayoutManager()); | 669 always_on_top_controller_->GetLayoutManager()); |
| 670 Shell::GetInstance()->delegate()->VirtualKeyboardActivated(false); | 670 Shell::GetInstance()->delegate()->VirtualKeyboardActivated(false); |
| 671 } | 671 } |
| 672 } | 672 } |
| 673 | 673 |
| 674 bool RootWindowController::IsVirtualKeyboardWindow(aura::Window* window) { | 674 bool RootWindowController::IsVirtualKeyboardWindow(aura::Window* window) { |
| 675 aura::Window* parent = GetContainer(kShellWindowId_ImeWindowParentContainer); | 675 aura::Window* parent = GetContainer(kShellWindowId_ImeWindowParentContainer); |
| 676 return parent ? parent->Contains(window) : false; | 676 return parent ? parent->Contains(window) : false; |
| 677 } | 677 } |
| 678 | 678 |
| 679 void RootWindowController::SetTouchAccessibilityAnchorPoint( |
| 680 const gfx::Point& anchor_point) { |
| 681 #if defined(OS_CHROMEOS) |
| 682 if (touch_exploration_manager_) |
| 683 touch_exploration_manager_->SetTouchAccessibilityAnchorPoint(anchor_point); |
| 684 #endif // defined(OS_CHROMEOS) |
| 685 } |
| 686 |
| 679 //////////////////////////////////////////////////////////////////////////////// | 687 //////////////////////////////////////////////////////////////////////////////// |
| 680 // RootWindowController, private: | 688 // RootWindowController, private: |
| 681 | 689 |
| 682 RootWindowController::RootWindowController(AshWindowTreeHost* ash_host) | 690 RootWindowController::RootWindowController(AshWindowTreeHost* ash_host) |
| 683 : ash_host_(ash_host), | 691 : ash_host_(ash_host), |
| 684 root_window_layout_(NULL), | 692 root_window_layout_(NULL), |
| 685 docked_layout_manager_(NULL), | 693 docked_layout_manager_(NULL), |
| 686 panel_layout_manager_(NULL), | 694 panel_layout_manager_(NULL), |
| 687 touch_hud_debug_(NULL), | 695 touch_hud_debug_(NULL), |
| 688 touch_hud_projection_(NULL) { | 696 touch_hud_projection_(NULL) { |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1076 aura::Window* primary_root_window = Shell::GetInstance() | 1084 aura::Window* primary_root_window = Shell::GetInstance() |
| 1077 ->window_tree_host_manager() | 1085 ->window_tree_host_manager() |
| 1078 ->GetPrimaryRootWindow(); | 1086 ->GetPrimaryRootWindow(); |
| 1079 return GetRootWindowSettings(primary_root_window)->controller; | 1087 return GetRootWindowSettings(primary_root_window)->controller; |
| 1080 } | 1088 } |
| 1081 | 1089 |
| 1082 return GetRootWindowSettings(root_window)->controller; | 1090 return GetRootWindowSettings(root_window)->controller; |
| 1083 } | 1091 } |
| 1084 | 1092 |
| 1085 } // namespace ash | 1093 } // namespace ash |
| OLD | NEW |