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

Side by Side Diff: ash/shell.h

Issue 2072853002: Implement "pinned" mode in ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 6 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/shelf/shelf_layout_manager_unittest.cc ('k') | 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 <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 class PowerEventObserver; 125 class PowerEventObserver;
126 class ProjectingObserver; 126 class ProjectingObserver;
127 class ResizeShadowController; 127 class ResizeShadowController;
128 class ResolutionNotificationController; 128 class ResolutionNotificationController;
129 class RootWindowController; 129 class RootWindowController;
130 class ScopedOverviewAnimationSettingsFactoryAura; 130 class ScopedOverviewAnimationSettingsFactoryAura;
131 class ScopedTargetRootWindow; 131 class ScopedTargetRootWindow;
132 class ScreenAsh; 132 class ScreenAsh;
133 class ScreenOrientationController; 133 class ScreenOrientationController;
134 class ScreenshotController; 134 class ScreenshotController;
135 class ScreenPinningController;
135 class ScreenPositionController; 136 class ScreenPositionController;
136 class SessionStateDelegate; 137 class SessionStateDelegate;
137 class Shelf; 138 class Shelf;
138 class ShelfDelegate; 139 class ShelfDelegate;
139 class ShelfItemDelegateManager; 140 class ShelfItemDelegateManager;
140 class ShelfModel; 141 class ShelfModel;
141 class ShelfWindowWatcher; 142 class ShelfWindowWatcher;
142 class ShellDelegate; 143 class ShellDelegate;
143 struct ShellInitParams; 144 struct ShellInitParams;
144 class SlowAnimationEventFilter; 145 class SlowAnimationEventFilter;
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 // returned object. 564 // returned object.
564 ash::FirstRunHelper* CreateFirstRunHelper(); 565 ash::FirstRunHelper* CreateFirstRunHelper();
565 566
566 // Toggles cursor compositing on/off. Native cursor is disabled when cursor 567 // Toggles cursor compositing on/off. Native cursor is disabled when cursor
567 // compositing is enabled, and vice versa. 568 // compositing is enabled, and vice versa.
568 void SetCursorCompositingEnabled(bool enabled); 569 void SetCursorCompositingEnabled(bool enabled);
569 570
570 StickyKeysController* sticky_keys_controller() { 571 StickyKeysController* sticky_keys_controller() {
571 return sticky_keys_controller_.get(); 572 return sticky_keys_controller_.get();
572 } 573 }
574
573 #endif // defined(OS_CHROMEOS) 575 #endif // defined(OS_CHROMEOS)
574 576
577 ScreenPinningController* screen_pinning_controller() {
578 return screen_pinning_controller_.get();
579 }
580
575 ToastManager* toast_manager() { return toast_manager_.get(); } 581 ToastManager* toast_manager() { return toast_manager_.get(); }
576 582
577 GPUSupport* gpu_support() { return gpu_support_.get(); } 583 GPUSupport* gpu_support() { return gpu_support_.get(); }
578 584
579 private: 585 private:
580 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); 586 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor);
581 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); 587 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors);
582 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); 588 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate);
583 friend class RootWindowController; 589 friend class RootWindowController;
584 friend class ScopedTargetRootWindow; 590 friend class ScopedTargetRootWindow;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 std::unique_ptr<SystemGestureEventFilter> system_gesture_filter_; 710 std::unique_ptr<SystemGestureEventFilter> system_gesture_filter_;
705 711
706 // An event filter that pre-handles global accelerators. 712 // An event filter that pre-handles global accelerators.
707 std::unique_ptr<::wm::AcceleratorFilter> accelerator_filter_; 713 std::unique_ptr<::wm::AcceleratorFilter> accelerator_filter_;
708 714
709 std::unique_ptr<DisplayManager> display_manager_; 715 std::unique_ptr<DisplayManager> display_manager_;
710 std::unique_ptr<DisplayConfigurationController> 716 std::unique_ptr<DisplayConfigurationController>
711 display_configuration_controller_; 717 display_configuration_controller_;
712 718
713 std::unique_ptr<LocaleNotificationController> locale_notification_controller_; 719 std::unique_ptr<LocaleNotificationController> locale_notification_controller_;
720 std::unique_ptr<ScreenPinningController> screen_pinning_controller_;
714 721
715 #if defined(OS_CHROMEOS) 722 #if defined(OS_CHROMEOS)
716 std::unique_ptr<PowerEventObserver> power_event_observer_; 723 std::unique_ptr<PowerEventObserver> power_event_observer_;
717 std::unique_ptr<ui::UserActivityPowerManagerNotifier> user_activity_notifier_; 724 std::unique_ptr<ui::UserActivityPowerManagerNotifier> user_activity_notifier_;
718 std::unique_ptr<VideoActivityNotifier> video_activity_notifier_; 725 std::unique_ptr<VideoActivityNotifier> video_activity_notifier_;
719 std::unique_ptr<StickyKeysController> sticky_keys_controller_; 726 std::unique_ptr<StickyKeysController> sticky_keys_controller_;
720 std::unique_ptr<ResolutionNotificationController> 727 std::unique_ptr<ResolutionNotificationController>
721 resolution_notification_controller_; 728 resolution_notification_controller_;
722 std::unique_ptr<BluetoothNotificationController> 729 std::unique_ptr<BluetoothNotificationController>
723 bluetooth_notification_controller_; 730 bluetooth_notification_controller_;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 bool in_mus_ = false; 775 bool in_mus_ = false;
769 776
770 std::unique_ptr<KeyboardUI> keyboard_ui_; 777 std::unique_ptr<KeyboardUI> keyboard_ui_;
771 778
772 DISALLOW_COPY_AND_ASSIGN(Shell); 779 DISALLOW_COPY_AND_ASSIGN(Shell);
773 }; 780 };
774 781
775 } // namespace ash 782 } // namespace ash
776 783
777 #endif // ASH_SHELL_H_ 784 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_layout_manager_unittest.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698