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

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

Issue 544953003: Supprot V2 app: step1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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
« no previous file with comments | « athena/env/athena_env_unittest.cc ('k') | athena/extensions/chrome/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/env/public/athena_env.h
diff --git a/athena/env/public/athena_env.h b/athena/env/public/athena_env.h
index 703a87f1d175878dcef288da14fa5de764febaef..b3bc8aa7d4f556967d81df5e31458f6930939d3a 100644
--- a/athena/env/public/athena_env.h
+++ b/athena/env/public/athena_env.h
@@ -6,15 +6,16 @@
#define ATHENA_ENV_PUBLIC_ATHENA_ENV_H_
#include "athena/athena_export.h"
-
-namespace gfx {
-class Insets;
-}
+#include "base/callback_forward.h"
namespace aura {
class WindowTreeHost;
}
+namespace gfx {
+class Insets;
+}
+
namespace athena {
// AthenaEnv creates/shuts down the environment necessary to
@@ -32,6 +33,13 @@ class ATHENA_EXPORT AthenaEnv {
// Sets the insets for the primary displays's work area.
virtual void SetDisplayWorkAreaInsets(const gfx::Insets& insets) = 0;
+
+ // Adds the callback called when the athena is about to exit.
+ virtual void AddTerminatingCallback(const base::Closure& closure) = 0;
+ virtual void RemoveTerminatingCallback(const base::Closure& closure) = 0;
+
+ // Called when the athena is about to exist.
+ virtual void OnTerminating() = 0;
};
} // namespace athena
« no previous file with comments | « athena/env/athena_env_unittest.cc ('k') | athena/extensions/chrome/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698