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

Side by Side Diff: ash/shell.cc

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Rebase. Created 3 years, 11 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/touch/touch_observer_hud.h » ('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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 } 382 }
383 383
384 //////////////////////////////////////////////////////////////////////////////// 384 ////////////////////////////////////////////////////////////////////////////////
385 // Shell, private: 385 // Shell, private:
386 386
387 Shell::Shell(ShellDelegate* delegate) 387 Shell::Shell(ShellDelegate* delegate)
388 : wm_shell_(new WmShellAura(base::WrapUnique(delegate))), 388 : wm_shell_(new WmShellAura(base::WrapUnique(delegate))),
389 link_handler_model_factory_(nullptr), 389 link_handler_model_factory_(nullptr),
390 activation_client_(nullptr), 390 activation_client_(nullptr),
391 #if defined(OS_CHROMEOS) 391 #if defined(OS_CHROMEOS)
392 display_configurator_(new ui::DisplayConfigurator()), 392 display_configurator_(new display::DisplayConfigurator()),
393 #endif // defined(OS_CHROMEOS) 393 #endif // defined(OS_CHROMEOS)
394 native_cursor_manager_(nullptr), 394 native_cursor_manager_(nullptr),
395 simulate_modal_window_open_for_testing_(false), 395 simulate_modal_window_open_for_testing_(false),
396 is_touch_hud_projection_enabled_(false) { 396 is_touch_hud_projection_enabled_(false) {
397 DCHECK(aura::Env::GetInstanceDontCreate()); 397 DCHECK(aura::Env::GetInstanceDontCreate());
398 gpu_support_.reset(wm_shell_->delegate()->CreateGPUSupport()); 398 gpu_support_.reset(wm_shell_->delegate()->CreateGPUSupport());
399 display_manager_.reset(ScreenAsh::CreateDisplayManager()); 399 display_manager_.reset(ScreenAsh::CreateDisplayManager());
400 window_tree_host_manager_.reset(new WindowTreeHostManager); 400 window_tree_host_manager_.reset(new WindowTreeHostManager);
401 user_metrics_recorder_.reset(new UserMetricsRecorder); 401 user_metrics_recorder_.reset(new UserMetricsRecorder);
402 402
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 display_configuration_controller_.reset(new DisplayConfigurationController( 597 display_configuration_controller_.reset(new DisplayConfigurationController(
598 display_manager_.get(), window_tree_host_manager_.get())); 598 display_manager_.get(), window_tree_host_manager_.get()));
599 599
600 #if defined(OS_CHROMEOS) 600 #if defined(OS_CHROMEOS)
601 601
602 #if defined(USE_OZONE) 602 #if defined(USE_OZONE)
603 display_configurator_->Init( 603 display_configurator_->Init(
604 ui::OzonePlatform::GetInstance()->CreateNativeDisplayDelegate(), 604 ui::OzonePlatform::GetInstance()->CreateNativeDisplayDelegate(),
605 !gpu_support_->IsPanelFittingDisabled()); 605 !gpu_support_->IsPanelFittingDisabled());
606 #elif defined(USE_X11) 606 #elif defined(USE_X11)
607 display_configurator_->Init(base::MakeUnique<ui::NativeDisplayDelegateX11>(), 607 display_configurator_->Init(
608 !gpu_support_->IsPanelFittingDisabled()); 608 base::MakeUnique<display::NativeDisplayDelegateX11>(),
609 !gpu_support_->IsPanelFittingDisabled());
609 #endif 610 #endif
610 611
611 // The DBusThreadManager must outlive this Shell. See the DCHECK in ~Shell. 612 // The DBusThreadManager must outlive this Shell. See the DCHECK in ~Shell.
612 chromeos::DBusThreadManager* dbus_thread_manager = 613 chromeos::DBusThreadManager* dbus_thread_manager =
613 chromeos::DBusThreadManager::Get(); 614 chromeos::DBusThreadManager::Get();
614 projecting_observer_.reset( 615 projecting_observer_.reset(
615 new ProjectingObserver(dbus_thread_manager->GetPowerManagerClient())); 616 new ProjectingObserver(dbus_thread_manager->GetPowerManagerClient()));
616 display_configurator_->AddObserver(projecting_observer_.get()); 617 display_configurator_->AddObserver(projecting_observer_.get());
617 wm_shell_->AddShellObserver(projecting_observer_.get()); 618 wm_shell_->AddShellObserver(projecting_observer_.get());
618 619
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const { 909 std::unique_ptr<ui::EventTargetIterator> Shell::GetChildIterator() const {
909 return std::unique_ptr<ui::EventTargetIterator>(); 910 return std::unique_ptr<ui::EventTargetIterator>();
910 } 911 }
911 912
912 ui::EventTargeter* Shell::GetEventTargeter() { 913 ui::EventTargeter* Shell::GetEventTargeter() {
913 NOTREACHED(); 914 NOTREACHED();
914 return nullptr; 915 return nullptr;
915 } 916 }
916 917
917 } // namespace ash 918 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell.h ('k') | ash/touch/touch_observer_hud.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698