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

Side by Side Diff: ash/shell.h

Issue 2115663002: Folds methods in WmShellCommon to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 5 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
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>
11 11
12 #include "ash/ash_export.h" 12 #include "ash/ash_export.h"
13 #include "ash/common/shelf/shelf_types.h" 13 #include "ash/common/shelf/shelf_types.h"
14 #include "ash/common/wm_shell_common.h"
15 #include "ash/metrics/user_metrics_recorder.h" 14 #include "ash/metrics/user_metrics_recorder.h"
16 #include "ash/wm/cursor_manager_chromeos.h" 15 #include "ash/wm/cursor_manager_chromeos.h"
17 #include "ash/wm/system_modal_container_event_filter_delegate.h" 16 #include "ash/wm/system_modal_container_event_filter_delegate.h"
18 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
19 #include "base/gtest_prod_util.h" 18 #include "base/gtest_prod_util.h"
20 #include "base/macros.h" 19 #include "base/macros.h"
21 #include "base/memory/weak_ptr.h" 20 #include "base/memory/weak_ptr.h"
22 #include "base/observer_list.h" 21 #include "base/observer_list.h"
23 #include "ui/aura/window.h" 22 #include "ui/aura/window.h"
24 #include "ui/base/ui_base_types.h" 23 #include "ui/base/ui_base_types.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 class KeyboardUMAEventFilter; 104 class KeyboardUMAEventFilter;
106 class LinkHandlerModelFactory; 105 class LinkHandlerModelFactory;
107 class LocaleNotificationController; 106 class LocaleNotificationController;
108 class LockStateController; 107 class LockStateController;
109 enum class LoginStatus; 108 enum class LoginStatus;
110 class MagnificationController; 109 class MagnificationController;
111 class MaximizeModeController; 110 class MaximizeModeController;
112 class MaximizeModeWindowManager; 111 class MaximizeModeWindowManager;
113 class MediaDelegate; 112 class MediaDelegate;
114 class MouseCursorEventFilter; 113 class MouseCursorEventFilter;
115 class MruWindowTracker;
116 class NewWindowDelegate; 114 class NewWindowDelegate;
117 class OverlayEventFilter; 115 class OverlayEventFilter;
118 class PartialMagnificationController; 116 class PartialMagnificationController;
119 class PointerWatcherDelegate; 117 class PointerWatcherDelegate;
120 class PowerButtonController; 118 class PowerButtonController;
121 class PowerEventObserver; 119 class PowerEventObserver;
122 class ProjectingObserver; 120 class ProjectingObserver;
123 class ResizeShadowController; 121 class ResizeShadowController;
124 class ResolutionNotificationController; 122 class ResolutionNotificationController;
125 class RootWindowController; 123 class RootWindowController;
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 void set_link_handler_model_factory( 340 void set_link_handler_model_factory(
343 LinkHandlerModelFactory* link_handler_model_factory) { 341 LinkHandlerModelFactory* link_handler_model_factory) {
344 link_handler_model_factory_ = link_handler_model_factory; 342 link_handler_model_factory_ = link_handler_model_factory;
345 } 343 }
346 PowerButtonController* power_button_controller() { 344 PowerButtonController* power_button_controller() {
347 return power_button_controller_.get(); 345 return power_button_controller_.get();
348 } 346 }
349 LockStateController* lock_state_controller() { 347 LockStateController* lock_state_controller() {
350 return lock_state_controller_.get(); 348 return lock_state_controller_.get();
351 } 349 }
352 MruWindowTracker* mru_window_tracker() {
353 return wm_shell_common_->mru_window_tracker();
354 }
355 VideoDetector* video_detector() { return video_detector_.get(); } 350 VideoDetector* video_detector() { return video_detector_.get(); }
356 WindowCycleController* window_cycle_controller() { 351 WindowCycleController* window_cycle_controller() {
357 return window_cycle_controller_.get(); 352 return window_cycle_controller_.get();
358 } 353 }
359 WindowTreeHostManager* window_tree_host_manager() { 354 WindowTreeHostManager* window_tree_host_manager() {
360 return window_tree_host_manager_.get(); 355 return window_tree_host_manager_.get();
361 } 356 }
362 #if defined(OS_CHROMEOS) 357 #if defined(OS_CHROMEOS)
363 PowerEventObserver* power_event_observer() { 358 PowerEventObserver* power_event_observer() {
364 return power_event_observer_.get(); 359 return power_event_observer_.get();
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 aura::Window* lost_active) override; 584 aura::Window* lost_active) override;
590 585
591 static Shell* instance_; 586 static Shell* instance_;
592 587
593 // If set before the Shell is initialized, the mouse cursor will be hidden 588 // If set before the Shell is initialized, the mouse cursor will be hidden
594 // when the screen is initially created. 589 // when the screen is initially created.
595 static bool initially_hide_cursor_; 590 static bool initially_hide_cursor_;
596 591
597 std::unique_ptr<ScopedOverviewAnimationSettingsFactoryAura> 592 std::unique_ptr<ScopedOverviewAnimationSettingsFactoryAura>
598 scoped_overview_animation_settings_factory_; 593 scoped_overview_animation_settings_factory_;
599 std::unique_ptr<WmShellCommon> wm_shell_common_;
600 std::unique_ptr<WmShellAura> wm_shell_; 594 std::unique_ptr<WmShellAura> wm_shell_;
601 595
602 // When no explicit target display/RootWindow is given, new windows are 596 // When no explicit target display/RootWindow is given, new windows are
603 // created on |scoped_target_root_window_| , unless NULL in 597 // created on |scoped_target_root_window_| , unless NULL in
604 // which case they are created on |target_root_window_|. 598 // which case they are created on |target_root_window_|.
605 // |target_root_window_| never becomes NULL during the session. 599 // |target_root_window_| never becomes NULL during the session.
606 aura::Window* target_root_window_; 600 aura::Window* target_root_window_;
607 aura::Window* scoped_target_root_window_; 601 aura::Window* scoped_target_root_window_;
608 602
609 // The CompoundEventFilter owned by aura::Env object. 603 // The CompoundEventFilter owned by aura::Env object.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 base::SequencedWorkerPool* blocking_pool_; 726 base::SequencedWorkerPool* blocking_pool_;
733 727
734 bool in_mus_ = false; 728 bool in_mus_ = false;
735 729
736 DISALLOW_COPY_AND_ASSIGN(Shell); 730 DISALLOW_COPY_AND_ASSIGN(Shell);
737 }; 731 };
738 732
739 } // namespace ash 733 } // namespace ash
740 734
741 #endif // ASH_SHELL_H_ 735 #endif // ASH_SHELL_H_
OLDNEW
« ash/common/wm_shell.h ('K') | « ash/shelf/shelf_layout_manager.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698