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

Side by Side Diff: ash/keyboard/keyboard_ui.h

Issue 2084733002: mash: Move tray accessibility and keyboard to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@typenamespace
Patch Set: rebase 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/common/system/tray_accessibility.cc ('k') | ash/keyboard/keyboard_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_KEYBOARD_KEYBOARD_UI_H_
6 #define ASH_KEYBOARD_KEYBOARD_UI_H_
7
8 #include <memory>
9
10 #include "ash/ash_export.h"
11 #include "base/macros.h"
12 #include "base/observer_list.h"
13
14 namespace ash {
15
16 class KeyboardUIObserver;
17
18 // KeyboardUI wraps the appropriate keyboard ui depending upon whether ash is
19 // running in mus or non-mus.
20 class ASH_EXPORT KeyboardUI {
21 public:
22 virtual ~KeyboardUI();
23
24 static std::unique_ptr<KeyboardUI> Create();
25
26 virtual void Show() = 0;
27 virtual void Hide() = 0;
28
29 // Returns true if the keyboard is enabled.
30 virtual bool IsEnabled() = 0;
31
32 void AddObserver(KeyboardUIObserver* observer);
33 void RemoveObserver(KeyboardUIObserver* observer);
34
35 // Applist also queries this for bounds. If app list remains in ash then
36 // we need to plumb bounds through here too.
37
38 protected:
39 KeyboardUI();
40
41 base::ObserverList<KeyboardUIObserver>* observers() { return &observers_; }
42
43 private:
44 base::ObserverList<KeyboardUIObserver> observers_;
45 };
46
47 } // namespace ash
48
49 #endif // ASH_KEYBOARD_KEYBOARD_UI_H_
OLDNEW
« no previous file with comments | « ash/common/system/tray_accessibility.cc ('k') | ash/keyboard/keyboard_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698