Index: runtime/embedders/openglui/common/lifecycle_handler.h |
=================================================================== |
--- runtime/embedders/openglui/common/lifecycle_handler.h (revision 0) |
+++ runtime/embedders/openglui/common/lifecycle_handler.h (revision 0) |
@@ -0,0 +1,29 @@ |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+#ifndef EMBEDDERS_OPENGLUI_COMMON_LIFECYCLE_HANDLER_H_ |
+#define EMBEDDERS_OPENGLUI_COMMON_LIFECYCLE_HANDLER_H_ |
+ |
+class LifeCycleHandler { |
+ public: |
+ virtual int32_t OnActivate() = 0; |
+ virtual void OnDeactivate() = 0; |
+ virtual int32_t OnStep() = 0; |
+ virtual void OnStart() {} |
+ virtual void OnResume() {} |
+ virtual void OnPause() {} |
+ virtual void OnStop() {} |
+ virtual void OnDestroy() {} |
+ virtual void OnSaveState(void** data, size_t* size) {} |
+ virtual void OnConfigurationChanged() {} |
+ virtual void OnLowMemory() {} |
+ virtual void OnCreateWindow() {} |
+ virtual void OnDestroyWindow() {} |
+ virtual void OnGainedFocus() {} |
+ virtual void OnLostFocus() {} |
+ virtual ~LifeCycleHandler() {} |
+}; |
+ |
+#endif // EMBEDDERS_OPENGLUI_COMMON_LIFECYCLE_HANDLER_H_ |
+ |