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/shell.h" | 5 #include "ash/shell.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 display_color_manager_.reset(new DisplayColorManager( | 645 display_color_manager_.reset(new DisplayColorManager( |
646 display_configurator_.get(), init_params.blocking_pool)); | 646 display_configurator_.get(), init_params.blocking_pool)); |
647 #endif // defined(OS_CHROMEOS) | 647 #endif // defined(OS_CHROMEOS) |
648 | 648 |
649 if (!display_initialized) | 649 if (!display_initialized) |
650 display_manager_->InitDefaultDisplay(); | 650 display_manager_->InitDefaultDisplay(); |
651 | 651 |
652 display_manager_->RefreshFontParams(); | 652 display_manager_->RefreshFontParams(); |
653 | 653 |
654 aura::Env::GetInstance()->set_context_factory(init_params.context_factory); | 654 aura::Env::GetInstance()->set_context_factory(init_params.context_factory); |
| 655 aura::Env::GetInstance()->set_context_factory_private( |
| 656 init_params.context_factory_private); |
655 | 657 |
656 // The WindowModalityController needs to be at the front of the input event | 658 // The WindowModalityController needs to be at the front of the input event |
657 // pretarget handler list to ensure that it processes input events when modal | 659 // pretarget handler list to ensure that it processes input events when modal |
658 // windows are active. | 660 // windows are active. |
659 window_modality_controller_.reset(new ::wm::WindowModalityController(this)); | 661 window_modality_controller_.reset(new ::wm::WindowModalityController(this)); |
660 | 662 |
661 env_filter_.reset(new ::wm::CompoundEventFilter); | 663 env_filter_.reset(new ::wm::CompoundEventFilter); |
662 AddPreTargetHandler(env_filter_.get()); | 664 AddPreTargetHandler(env_filter_.get()); |
663 | 665 |
664 wm::AshFocusRules* focus_rules = new wm::AshFocusRules(); | 666 wm::AshFocusRules* focus_rules = new wm::AshFocusRules(); |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
911 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const { | 913 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const { |
912 return std::unique_ptr<ui::EventTargetIterator>(); | 914 return std::unique_ptr<ui::EventTargetIterator>(); |
913 } | 915 } |
914 | 916 |
915 ui::EventTargeter* Shell::GetEventTargeter() { | 917 ui::EventTargeter* Shell::GetEventTargeter() { |
916 NOTREACHED(); | 918 NOTREACHED(); |
917 return nullptr; | 919 return nullptr; |
918 } | 920 } |
919 | 921 |
920 } // namespace ash | 922 } // namespace ash |
OLD | NEW |