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

Unified Diff: ash/common/wm_shell.h

Issue 2103053004: mash: Convert virtual keyboard system tray item to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak 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 side-by-side diff with in-line comments
Download patch
Index: ash/common/wm_shell.h
diff --git a/ash/common/wm_shell.h b/ash/common/wm_shell.h
index 6d9498fe2e3dea5760139637be6c61a7f5e89fe4..ab8417afe65a38282f61107ae445033548fb15e9 100644
--- a/ash/common/wm_shell.h
+++ b/ash/common/wm_shell.h
@@ -26,6 +26,7 @@ namespace ash {
class AccessibilityDelegate;
class DisplayInfo;
class FocusCycler;
+class KeyboardUI;
class MruWindowTracker;
class SessionStateDelegate;
class ShellObserver;
@@ -52,6 +53,8 @@ class ASH_EXPORT WmShell {
FocusCycler* focus_cycler() { return focus_cycler_.get(); }
+ KeyboardUI* keyboard_ui() { return keyboard_ui_.get(); }
+
SystemTrayNotifier* system_tray_notifier() {
return system_tray_notifier_.get();
}
@@ -165,6 +168,8 @@ class ASH_EXPORT WmShell {
WmShell();
virtual ~WmShell();
+ void SetKeyboardUI(std::unique_ptr<KeyboardUI> keyboard_ui);
+
// If |delegate| is not null, sets and initializes the delegate. If |delegate|
// is null, shuts down and destroys the delegate.
void SetSystemTrayDelegate(std::unique_ptr<SystemTrayDelegate> delegate);
@@ -177,6 +182,7 @@ class ASH_EXPORT WmShell {
static WmShell* instance_;
std::unique_ptr<FocusCycler> focus_cycler_;
+ std::unique_ptr<KeyboardUI> keyboard_ui_;
std::unique_ptr<SystemTrayNotifier> system_tray_notifier_;
std::unique_ptr<SystemTrayDelegate> system_tray_delegate_;
std::unique_ptr<WindowSelectorController> window_selector_controller_;

Powered by Google App Engine
This is Rietveld 408576698