Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: ash/shell.cc

Issue 2231533004: Pointer watcher modifications to support laser pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/wm_shell.cc ('k') | ui/gfx/vector_icons/palette_mode_laser_pointer.icon » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 window_tree_host_manager_->CreatePrimaryHost( 818 window_tree_host_manager_->CreatePrimaryHost(
819 ShellInitParamsToAshWindowTreeHostInitParams(init_params)); 819 ShellInitParamsToAshWindowTreeHostInitParams(init_params));
820 aura::Window* root_window = window_tree_host_manager_->GetPrimaryRootWindow(); 820 aura::Window* root_window = window_tree_host_manager_->GetPrimaryRootWindow();
821 wm_shell_->set_root_window_for_new_windows(WmWindowAura::Get(root_window)); 821 wm_shell_->set_root_window_for_new_windows(WmWindowAura::Get(root_window));
822 822
823 #if defined(OS_CHROMEOS) 823 #if defined(OS_CHROMEOS)
824 resolution_notification_controller_.reset( 824 resolution_notification_controller_.reset(
825 new ResolutionNotificationController); 825 new ResolutionNotificationController);
826 #endif 826 #endif
827 827
828 if (cursor_manager_) 828 if (cursor_manager_) {
829 cursor_manager_->SetDisplay( 829 cursor_manager_->SetDisplay(
830 display::Screen::GetScreen()->GetPrimaryDisplay()); 830 display::Screen::GetScreen()->GetPrimaryDisplay());
831 // wm_shell_->SetCursorManager(base::MakeUnique<::wm::CursorManager>(
832 // base::WrapUnique<AshNativeCursorManager>(native_cursor_manager_)));
833 wm_shell_->SetCursorManager(base::WrapUnique<::wm::CursorManager>(
834 cursor_manager_.get()));
jdufault 2016/08/11 01:09:57 This is causing chrome to consistently crash on sh
835 }
831 836
832 accelerator_controller_delegate_.reset(new AcceleratorControllerDelegateAura); 837 accelerator_controller_delegate_.reset(new AcceleratorControllerDelegateAura);
833 wm_shell_->SetAcceleratorController(base::MakeUnique<AcceleratorController>( 838 wm_shell_->SetAcceleratorController(base::MakeUnique<AcceleratorController>(
834 accelerator_controller_delegate_.get(), nullptr)); 839 accelerator_controller_delegate_.get(), nullptr));
835 wm_shell_->CreateMaximizeModeController(); 840 wm_shell_->CreateMaximizeModeController();
836 841
837 AddPreTargetHandler(window_tree_host_manager_->input_method_event_handler()); 842 AddPreTargetHandler(window_tree_host_manager_->input_method_event_handler());
838 843
839 #if defined(OS_CHROMEOS) 844 #if defined(OS_CHROMEOS)
840 magnifier_key_scroll_handler_ = MagnifierKeyScroller::CreateHandler(); 845 magnifier_key_scroll_handler_ = MagnifierKeyScroller::CreateHandler();
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const { 1064 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const {
1060 return std::unique_ptr<ui::EventTargetIterator>(); 1065 return std::unique_ptr<ui::EventTargetIterator>();
1061 } 1066 }
1062 1067
1063 ui::EventTargeter* Shell::GetEventTargeter() { 1068 ui::EventTargeter* Shell::GetEventTargeter() {
1064 NOTREACHED(); 1069 NOTREACHED();
1065 return nullptr; 1070 return nullptr;
1066 } 1071 }
1067 1072
1068 } // namespace ash 1073 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm_shell.cc ('k') | ui/gfx/vector_icons/palette_mode_laser_pointer.icon » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698