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

Side by Side Diff: ash/shell.cc

Issue 1924703002: Rename gfx::Display/Screen to display::Display/Screen in ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/shell.h ('k') | ash/shell/content/client/shell_browser_main_parts.cc » ('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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 #include "ui/app_list/presenter/app_list_presenter.h" 89 #include "ui/app_list/presenter/app_list_presenter.h"
90 #include "ui/aura/client/aura_constants.h" 90 #include "ui/aura/client/aura_constants.h"
91 #include "ui/aura/env.h" 91 #include "ui/aura/env.h"
92 #include "ui/aura/layout_manager.h" 92 #include "ui/aura/layout_manager.h"
93 #include "ui/aura/window.h" 93 #include "ui/aura/window.h"
94 #include "ui/aura/window_event_dispatcher.h" 94 #include "ui/aura/window_event_dispatcher.h"
95 #include "ui/base/ui_base_switches.h" 95 #include "ui/base/ui_base_switches.h"
96 #include "ui/base/user_activity/user_activity_detector.h" 96 #include "ui/base/user_activity/user_activity_detector.h"
97 #include "ui/compositor/layer.h" 97 #include "ui/compositor/layer.h"
98 #include "ui/compositor/layer_animator.h" 98 #include "ui/compositor/layer_animator.h"
99 #include "ui/display/display.h"
100 #include "ui/display/screen.h"
99 #include "ui/events/event_target_iterator.h" 101 #include "ui/events/event_target_iterator.h"
100 #include "ui/gfx/display.h"
101 #include "ui/gfx/geometry/size.h" 102 #include "ui/gfx/geometry/size.h"
102 #include "ui/gfx/image/image_skia.h" 103 #include "ui/gfx/image/image_skia.h"
103 #include "ui/gfx/screen.h"
104 #include "ui/keyboard/keyboard_controller.h" 104 #include "ui/keyboard/keyboard_controller.h"
105 #include "ui/keyboard/keyboard_switches.h" 105 #include "ui/keyboard/keyboard_switches.h"
106 #include "ui/keyboard/keyboard_util.h" 106 #include "ui/keyboard/keyboard_util.h"
107 #include "ui/message_center/message_center.h" 107 #include "ui/message_center/message_center.h"
108 #include "ui/views/corewm/tooltip_aura.h" 108 #include "ui/views/corewm/tooltip_aura.h"
109 #include "ui/views/corewm/tooltip_controller.h" 109 #include "ui/views/corewm/tooltip_controller.h"
110 #include "ui/views/focus/focus_manager_factory.h" 110 #include "ui/views/focus/focus_manager_factory.h"
111 #include "ui/views/widget/native_widget_aura.h" 111 #include "ui/views/widget/native_widget_aura.h"
112 #include "ui/views/widget/widget.h" 112 #include "ui/views/widget/widget.h"
113 #include "ui/wm/core/accelerator_filter.h" 113 #include "ui/wm/core/accelerator_filter.h"
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 ShellInitParamsToAshWindowTreeHostInitParams(init_params)); 963 ShellInitParamsToAshWindowTreeHostInitParams(init_params));
964 aura::Window* root_window = window_tree_host_manager_->GetPrimaryRootWindow(); 964 aura::Window* root_window = window_tree_host_manager_->GetPrimaryRootWindow();
965 target_root_window_ = root_window; 965 target_root_window_ = root_window;
966 966
967 #if defined(OS_CHROMEOS) 967 #if defined(OS_CHROMEOS)
968 resolution_notification_controller_.reset( 968 resolution_notification_controller_.reset(
969 new ResolutionNotificationController); 969 new ResolutionNotificationController);
970 #endif 970 #endif
971 971
972 if (cursor_manager_) 972 if (cursor_manager_)
973 cursor_manager_->SetDisplay(gfx::Screen::GetScreen()->GetPrimaryDisplay()); 973 cursor_manager_->SetDisplay(
974 display::Screen::GetScreen()->GetPrimaryDisplay());
974 975
975 accelerator_controller_.reset(new AcceleratorController); 976 accelerator_controller_.reset(new AcceleratorController);
976 maximize_mode_controller_.reset(new MaximizeModeController()); 977 maximize_mode_controller_.reset(new MaximizeModeController());
977 978
978 AddPreTargetHandler(window_tree_host_manager_->input_method_event_handler()); 979 AddPreTargetHandler(window_tree_host_manager_->input_method_event_handler());
979 980
980 #if defined(OS_CHROMEOS) 981 #if defined(OS_CHROMEOS)
981 magnifier_key_scroll_handler_ = MagnifierKeyScroller::CreateHandler(); 982 magnifier_key_scroll_handler_ = MagnifierKeyScroller::CreateHandler();
982 AddPreTargetHandler(magnifier_key_scroll_handler_.get()); 983 AddPreTargetHandler(magnifier_key_scroll_handler_.get());
983 speech_feedback_handler_ = SpokenFeedbackToggler::CreateHandler(); 984 speech_feedback_handler_ = SpokenFeedbackToggler::CreateHandler();
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 1240
1240 void Shell::OnWindowActivated( 1241 void Shell::OnWindowActivated(
1241 aura::client::ActivationChangeObserver::ActivationReason reason, 1242 aura::client::ActivationChangeObserver::ActivationReason reason,
1242 aura::Window* gained_active, 1243 aura::Window* gained_active,
1243 aura::Window* lost_active) { 1244 aura::Window* lost_active) {
1244 if (gained_active) 1245 if (gained_active)
1245 target_root_window_ = gained_active->GetRootWindow(); 1246 target_root_window_ = gained_active->GetRootWindow();
1246 } 1247 }
1247 1248
1248 } // namespace ash 1249 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell.h ('k') | ash/shell/content/client/shell_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698