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

Unified Diff: ash/shell.cc

Issue 14674004: DRAFT: Add setKeyboardVisibility API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 9297b0e11837c480898cc96def94d34e96648f40..8dd0907618802bc59371c63d162574dae2b27600 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -419,6 +419,11 @@ bool Shell::IsLauncherPerDisplayEnabled() {
return !command_line->HasSwitch(switches::kAshDisableLauncherPerDisplay);
}
+// static
+keyboard::KeyboardController* Shell::GetKeyboardController() {
+ return GetPrimaryRootWindowController()->keyboard_controller();
+}
+
void Shell::Init() {
delegate_->PreInit();
#if defined(OS_CHROMEOS)

Powered by Google App Engine
This is Rietveld 408576698