OLD | NEW |
1 // Copyright (c) 2013 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 #ifndef APP_DELEGATE_H | 4 #ifndef APP_DELEGATE_H_ |
5 #define APP_DELEGATE_H | 5 #define APP_DELEGATE_H_ |
6 | 6 |
7 #include "cocos2d.h" | 7 #include "cocos2d.h" |
8 | 8 |
9 /** | 9 /** |
10 * The cocos2d-x application entry point. | 10 * The cocos2d-x application entry point. |
11 */ | 11 */ |
12 class AppDelegate : private cocos2d::CCApplication | 12 class AppDelegate : private cocos2d::CCApplication { |
13 { | |
14 public: | 13 public: |
15 AppDelegate() {} | 14 AppDelegate() {} |
16 | 15 |
17 virtual bool applicationDidFinishLaunching(); | 16 virtual bool applicationDidFinishLaunching(); |
18 virtual void applicationDidEnterBackground() {} | 17 virtual void applicationDidEnterBackground() {} |
19 virtual void applicationWillEnterForeground() {} | 18 virtual void applicationWillEnterForeground() {} |
20 }; | 19 }; |
21 | 20 |
22 #endif // !APP_DELEGATE_H | 21 #endif // !APP_DELEGATE_H_ |
OLD | NEW |