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

Unified Diff: ash/common/wm_shell.h

Issue 2131733002: mash: Migrate [Keyboard]Brightness code to ash/common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/system/keyboard_brightness_control_delegate.h ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm_shell.h
diff --git a/ash/common/wm_shell.h b/ash/common/wm_shell.h
index aa3036879cbed789f35a59495027ed0b0409226a..c3283b74eb8c56982a9b7b87a49572d43195a188 100644
--- a/ash/common/wm_shell.h
+++ b/ash/common/wm_shell.h
@@ -15,10 +15,6 @@
#include "ash/common/metrics/user_metrics_action.h"
#include "base/observer_list.h"
-namespace gfx {
-class Rect;
-}
-
namespace views {
class PointerWatcher;
}
@@ -26,8 +22,10 @@ class PointerWatcher;
namespace ash {
class AccessibilityDelegate;
+class BrightnessControlDelegate;
class DisplayInfo;
class FocusCycler;
+class KeyboardBrightnessControlDelegate;
class KeyboardUI;
class MaximizeModeController;
class MruWindowTracker;
@@ -41,7 +39,6 @@ class WindowResizer;
class WindowSelectorController;
class WmActivationObserver;
class WmDisplayObserver;
-class WmRootWindowController;
class WmWindow;
namespace wm {
@@ -64,8 +61,16 @@ class ASH_EXPORT WmShell {
ShellDelegate* delegate() { return delegate_.get(); }
+ BrightnessControlDelegate* brightness_control_delegate() {
+ return brightness_control_delegate_.get();
+ }
+
FocusCycler* focus_cycler() { return focus_cycler_.get(); }
+ KeyboardBrightnessControlDelegate* keyboard_brightness_control_delegate() {
+ return keyboard_brightness_control_delegate_.get();
+ }
+
KeyboardUI* keyboard_ui() { return keyboard_ui_.get(); }
MaximizeModeController* maximize_mode_controller() {
@@ -234,13 +239,18 @@ class ASH_EXPORT WmShell {
void DeleteMruWindowTracker();
private:
+ friend class AcceleratorControllerTest;
friend class Shell;
static WmShell* instance_;
base::ObserverList<ShellObserver> shell_observers_;
std::unique_ptr<ShellDelegate> delegate_;
+
+ std::unique_ptr<BrightnessControlDelegate> brightness_control_delegate_;
std::unique_ptr<FocusCycler> focus_cycler_;
+ std::unique_ptr<KeyboardBrightnessControlDelegate>
+ keyboard_brightness_control_delegate_;
std::unique_ptr<KeyboardUI> keyboard_ui_;
std::unique_ptr<MaximizeModeController> maximize_mode_controller_;
std::unique_ptr<MediaDelegate> media_delegate_;
« no previous file with comments | « ash/common/system/keyboard_brightness_control_delegate.h ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698