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

Side by Side Diff: ash/shell.h

Issue 1782793002: Ash: Implement Toasts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment Created 4 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 | « ash/ash_strings.grd ('k') | ash/shell.cc » ('j') | ash/shell.cc » ('J')
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 struct ShellInitParams; 134 struct ShellInitParams;
135 class ShellObserver; 135 class ShellObserver;
136 class SlowAnimationEventFilter; 136 class SlowAnimationEventFilter;
137 class StatusAreaWidget; 137 class StatusAreaWidget;
138 class StickyKeysController; 138 class StickyKeysController;
139 class SystemGestureEventFilter; 139 class SystemGestureEventFilter;
140 class SystemModalContainerEventFilter; 140 class SystemModalContainerEventFilter;
141 class SystemTray; 141 class SystemTray;
142 class SystemTrayDelegate; 142 class SystemTrayDelegate;
143 class SystemTrayNotifier; 143 class SystemTrayNotifier;
144 class ToastManager;
144 class ToplevelWindowEventHandler; 145 class ToplevelWindowEventHandler;
145 class TouchTransformerController; 146 class TouchTransformerController;
146 class TouchObserverHUD; 147 class TouchObserverHUD;
147 class UserWallpaperDelegate; 148 class UserWallpaperDelegate;
148 class VirtualKeyboardController; 149 class VirtualKeyboardController;
149 class VideoActivityNotifier; 150 class VideoActivityNotifier;
150 class VideoDetector; 151 class VideoDetector;
151 class WebNotificationTray; 152 class WebNotificationTray;
152 class WindowCycleController; 153 class WindowCycleController;
153 class WindowPositioner; 154 class WindowPositioner;
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 577
577 // Toggles cursor compositing on/off. Native cursor is disabled when cursor 578 // Toggles cursor compositing on/off. Native cursor is disabled when cursor
578 // compositing is enabled, and vice versa. 579 // compositing is enabled, and vice versa.
579 void SetCursorCompositingEnabled(bool enabled); 580 void SetCursorCompositingEnabled(bool enabled);
580 581
581 StickyKeysController* sticky_keys_controller() { 582 StickyKeysController* sticky_keys_controller() {
582 return sticky_keys_controller_.get(); 583 return sticky_keys_controller_.get();
583 } 584 }
584 #endif // defined(OS_CHROMEOS) 585 #endif // defined(OS_CHROMEOS)
585 586
587 ToastManager* toast_manager() { return toast_manager_.get(); }
588
586 GPUSupport* gpu_support() { return gpu_support_.get(); } 589 GPUSupport* gpu_support() { return gpu_support_.get(); }
587 590
588 private: 591 private:
589 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); 592 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor);
590 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); 593 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors);
591 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); 594 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate);
592 friend class RootWindowController; 595 friend class RootWindowController;
593 friend class ScopedTargetRootWindow; 596 friend class ScopedTargetRootWindow;
594 friend class test::ShellTestApi; 597 friend class test::ShellTestApi;
595 friend class shell::WindowWatcher; 598 friend class shell::WindowWatcher;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 741
739 // Implements content::ScreenOrientationController for ChromeOS 742 // Implements content::ScreenOrientationController for ChromeOS
740 scoped_ptr<ScreenOrientationController> screen_orientation_controller_; 743 scoped_ptr<ScreenOrientationController> screen_orientation_controller_;
741 744
742 scoped_ptr<TouchTransformerController> touch_transformer_controller_; 745 scoped_ptr<TouchTransformerController> touch_transformer_controller_;
743 746
744 scoped_ptr<ui::EventHandler> magnifier_key_scroll_handler_; 747 scoped_ptr<ui::EventHandler> magnifier_key_scroll_handler_;
745 scoped_ptr<ui::EventHandler> speech_feedback_handler_; 748 scoped_ptr<ui::EventHandler> speech_feedback_handler_;
746 #endif // defined(OS_CHROMEOS) 749 #endif // defined(OS_CHROMEOS)
747 750
751 scoped_ptr<ToastManager> toast_manager_;
748 scoped_ptr<MaximizeModeController> maximize_mode_controller_; 752 scoped_ptr<MaximizeModeController> maximize_mode_controller_;
749 753
750 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a 754 // |native_cursor_manager_| is owned by |cursor_manager_|, but we keep a
751 // pointer to vend to test code. 755 // pointer to vend to test code.
752 AshNativeCursorManager* native_cursor_manager_; 756 AshNativeCursorManager* native_cursor_manager_;
753 757
754 // Cursor may be hidden on certain key events in ChromeOS, whereas we never 758 // Cursor may be hidden on certain key events in ChromeOS, whereas we never
755 // hide the cursor on Windows. 759 // hide the cursor on Windows.
756 scoped_ptr<::wm::CursorManager> cursor_manager_; 760 scoped_ptr<::wm::CursorManager> cursor_manager_;
757 761
(...skipping 12 matching lines...) Expand all
770 bool in_mus_ = false; 774 bool in_mus_ = false;
771 775
772 scoped_ptr<KeyboardUI> keyboard_ui_; 776 scoped_ptr<KeyboardUI> keyboard_ui_;
773 777
774 DISALLOW_COPY_AND_ASSIGN(Shell); 778 DISALLOW_COPY_AND_ASSIGN(Shell);
775 }; 779 };
776 780
777 } // namespace ash 781 } // namespace ash
778 782
779 #endif // ASH_SHELL_H_ 783 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/shell.cc » ('j') | ash/shell.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698