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

Unified Diff: ash/mojo_shell.h

Issue 1684823004: Refactors keyboard related code so mash can use a keyboard (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: always compile mojo_shell Created 4 years, 10 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/mojo_shell.h
diff --git a/ash/mojo_shell.h b/ash/mojo_shell.h
new file mode 100644
index 0000000000000000000000000000000000000000..9368e14a6e0bc72c438be130465f12a2afe7f0d1
--- /dev/null
+++ b/ash/mojo_shell.h
@@ -0,0 +1,24 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_MOJO_SHELL_H_
+#define ASH_MOJO_SHELL_H_
+
+#include "ash/ash_export.h"
+
+namespace mojo {
+class Shell;
+}
+
+// NOTE: this code is always compiled (gn and gyp) and the gyp variant always
+// returns null for the shell.
+namespace ash {
+
+// TODO(sky): better isolate this. It should only be called during startup.
+ASH_EXPORT void SetMojoShell(mojo::Shell* shell);
+ASH_EXPORT mojo::Shell* GetMojoShell();
+
+} // namespace ash
+
+#endif // ASH_MOJO_SHELL_H_
« no previous file with comments | « ash/keyboard/keyboard_ui_observer.h ('k') | ash/mojo_shell.cc » ('j') | ash/shell.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698