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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 always_on_top_controller_->GetLayoutManager()); | 674 always_on_top_controller_->GetLayoutManager()); |
675 Shell::GetInstance()->delegate()->VirtualKeyboardActivated(false); | 675 Shell::GetInstance()->delegate()->VirtualKeyboardActivated(false); |
676 } | 676 } |
677 } | 677 } |
678 | 678 |
679 bool RootWindowController::IsVirtualKeyboardWindow(aura::Window* window) { | 679 bool RootWindowController::IsVirtualKeyboardWindow(aura::Window* window) { |
680 aura::Window* parent = GetContainer(kShellWindowId_ImeWindowParentContainer); | 680 aura::Window* parent = GetContainer(kShellWindowId_ImeWindowParentContainer); |
681 return parent ? parent->Contains(window) : false; | 681 return parent ? parent->Contains(window) : false; |
682 } | 682 } |
683 | 683 |
| 684 void RootWindowController::SetTouchAccessibilityAnchorPoint( |
| 685 const gfx::Point& anchor_point) { |
| 686 #if defined(OS_CHROMEOS) |
| 687 if (touch_exploration_manager_) |
| 688 touch_exploration_manager_->SetTouchAccessibilityAnchorPoint(anchor_point); |
| 689 #endif // defined(OS_CHROMEOS) |
| 690 } |
| 691 |
684 //////////////////////////////////////////////////////////////////////////////// | 692 //////////////////////////////////////////////////////////////////////////////// |
685 // RootWindowController, private: | 693 // RootWindowController, private: |
686 | 694 |
687 RootWindowController::RootWindowController(AshWindowTreeHost* ash_host) | 695 RootWindowController::RootWindowController(AshWindowTreeHost* ash_host) |
688 : ash_host_(ash_host), | 696 : ash_host_(ash_host), |
689 root_window_layout_(NULL), | 697 root_window_layout_(NULL), |
690 docked_layout_manager_(NULL), | 698 docked_layout_manager_(NULL), |
691 panel_layout_manager_(NULL), | 699 panel_layout_manager_(NULL), |
692 touch_hud_debug_(NULL), | 700 touch_hud_debug_(NULL), |
693 touch_hud_projection_(NULL) { | 701 touch_hud_projection_(NULL) { |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1083 aura::Window* primary_root_window = Shell::GetInstance() | 1091 aura::Window* primary_root_window = Shell::GetInstance() |
1084 ->window_tree_host_manager() | 1092 ->window_tree_host_manager() |
1085 ->GetPrimaryRootWindow(); | 1093 ->GetPrimaryRootWindow(); |
1086 return GetRootWindowSettings(primary_root_window)->controller; | 1094 return GetRootWindowSettings(primary_root_window)->controller; |
1087 } | 1095 } |
1088 | 1096 |
1089 return GetRootWindowSettings(root_window)->controller; | 1097 return GetRootWindowSettings(root_window)->controller; |
1090 } | 1098 } |
1091 | 1099 |
1092 } // namespace ash | 1100 } // namespace ash |
OLD | NEW |