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

Unified Diff: athena/env/public/athena_env.h

Issue 480353006: Separate athena's startup process from AppShell's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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: athena/env/public/athena_env.h
diff --git a/athena/env/public/athena_env.h b/athena/env/public/athena_env.h
new file mode 100644
index 0000000000000000000000000000000000000000..703a87f1d175878dcef288da14fa5de764febaef
--- /dev/null
+++ b/athena/env/public/athena_env.h
@@ -0,0 +1,39 @@
+// Copyright 2014 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 ATHENA_ENV_PUBLIC_ATHENA_ENV_H_
+#define ATHENA_ENV_PUBLIC_ATHENA_ENV_H_
+
+#include "athena/athena_export.h"
+
+namespace gfx {
+class Insets;
+}
+
+namespace aura {
+class WindowTreeHost;
+}
+
+namespace athena {
+
+// AthenaEnv creates/shuts down the environment necessary to
+// start Athena shell.
+class ATHENA_EXPORT AthenaEnv {
+ public:
+ static void Create();
+ static AthenaEnv* Get();
+ static void Shutdown();
+
+ virtual ~AthenaEnv() {}
+
+ // Returns the single WindowTreeHost for the primary display.
+ virtual aura::WindowTreeHost* GetHost() = 0;
+
+ // Sets the insets for the primary displays's work area.
+ virtual void SetDisplayWorkAreaInsets(const gfx::Insets& insets) = 0;
+};
+
+} // namespace athena
+
+#endif // ATHENA_ENV_PUBLIC_ATHENA_ENV_H_

Powered by Google App Engine
This is Rietveld 408576698