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

Side by Side Diff: ash/shell.h

Issue 972153004: Make ui::DisplayConfigurator a singleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make a Singleton Created 5 years, 9 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 | « no previous file | ash/shell.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 #ifndef ASH_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 // Starts the animation that occurs on first login. 512 // Starts the animation that occurs on first login.
513 void DoInitialWorkspaceAnimation(); 513 void DoInitialWorkspaceAnimation();
514 514
515 MaximizeModeController* maximize_mode_controller() { 515 MaximizeModeController* maximize_mode_controller() {
516 return maximize_mode_controller_.get(); 516 return maximize_mode_controller_.get();
517 } 517 }
518 518
519 #if defined(OS_CHROMEOS) 519 #if defined(OS_CHROMEOS)
520 // TODO(oshima): Move these objects to DisplayController. 520 // TODO(oshima): Move these objects to DisplayController.
521 ui::DisplayConfigurator* display_configurator() { 521 ui::DisplayConfigurator* display_configurator() {
522 return display_configurator_.get(); 522 return display_configurator_;
523 } 523 }
524 DisplayConfiguratorAnimation* display_configurator_animation() { 524 DisplayConfiguratorAnimation* display_configurator_animation() {
525 return display_configurator_animation_.get(); 525 return display_configurator_animation_.get();
526 } 526 }
527 DisplayErrorObserver* display_error_observer() { 527 DisplayErrorObserver* display_error_observer() {
528 return display_error_observer_.get(); 528 return display_error_observer_.get();
529 } 529 }
530 530
531 ResolutionNotificationController* resolution_notification_controller() { 531 ResolutionNotificationController* resolution_notification_controller() {
532 return resolution_notification_controller_.get(); 532 return resolution_notification_controller_.get();
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 scoped_ptr<StickyKeysController> sticky_keys_controller_; 717 scoped_ptr<StickyKeysController> sticky_keys_controller_;
718 scoped_ptr<ResolutionNotificationController> 718 scoped_ptr<ResolutionNotificationController>
719 resolution_notification_controller_; 719 resolution_notification_controller_;
720 scoped_ptr<BluetoothNotificationController> 720 scoped_ptr<BluetoothNotificationController>
721 bluetooth_notification_controller_; 721 bluetooth_notification_controller_;
722 scoped_ptr<LogoutConfirmationController> logout_confirmation_controller_; 722 scoped_ptr<LogoutConfirmationController> logout_confirmation_controller_;
723 scoped_ptr<LastWindowClosedLogoutReminder> 723 scoped_ptr<LastWindowClosedLogoutReminder>
724 last_window_closed_logout_reminder_; 724 last_window_closed_logout_reminder_;
725 scoped_ptr<VirtualKeyboardController> virtual_keyboard_controller_; 725 scoped_ptr<VirtualKeyboardController> virtual_keyboard_controller_;
726 // Controls video output device state. 726 // Controls video output device state.
727 scoped_ptr<ui::DisplayConfigurator> display_configurator_; 727 // Bare pointer as is a singleton.
728 ui::DisplayConfigurator* display_configurator_;
728 scoped_ptr<DisplayConfiguratorAnimation> display_configurator_animation_; 729 scoped_ptr<DisplayConfiguratorAnimation> display_configurator_animation_;
729 scoped_ptr<DisplayErrorObserver> display_error_observer_; 730 scoped_ptr<DisplayErrorObserver> display_error_observer_;
730 scoped_ptr<ProjectingObserver> projecting_observer_; 731 scoped_ptr<ProjectingObserver> projecting_observer_;
731 732
732 // Listens for output changes and updates the display manager. 733 // Listens for output changes and updates the display manager.
733 scoped_ptr<DisplayChangeObserver> display_change_observer_; 734 scoped_ptr<DisplayChangeObserver> display_change_observer_;
734 735
735 // Implements content::ScreenOrientationController for ChromeOS 736 // Implements content::ScreenOrientationController for ChromeOS
736 scoped_ptr<ScreenOrientationController> screen_orientation_controller_; 737 scoped_ptr<ScreenOrientationController> screen_orientation_controller_;
737 738
(...skipping 26 matching lines...) Expand all
764 765
765 // Injected content::GPUDataManager support. 766 // Injected content::GPUDataManager support.
766 scoped_ptr<GPUSupport> gpu_support_; 767 scoped_ptr<GPUSupport> gpu_support_;
767 768
768 DISALLOW_COPY_AND_ASSIGN(Shell); 769 DISALLOW_COPY_AND_ASSIGN(Shell);
769 }; 770 };
770 771
771 } // namespace ash 772 } // namespace ash
772 773
773 #endif // ASH_SHELL_H_ 774 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698