2011-07-28 14:26:00 +00:00
|
|
|
|
2008-12-17 15:59:43 +00:00
|
|
|
/*
|
2011-07-28 14:26:00 +00:00
|
|
|
* Copyright 2006 The Android Open Source Project
|
2008-12-17 15:59:43 +00:00
|
|
|
*
|
2011-07-28 14:26:00 +00:00
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
2008-12-17 15:59:43 +00:00
|
|
|
*/
|
|
|
|
|
2011-07-28 14:26:00 +00:00
|
|
|
|
2008-12-17 15:59:43 +00:00
|
|
|
#ifndef SkApplication_DEFINED
|
|
|
|
#define SkApplication_DEFINED
|
|
|
|
|
|
|
|
class SkOSWindow;
|
|
|
|
|
2011-06-28 19:44:03 +00:00
|
|
|
extern SkOSWindow* create_sk_window(void* hwnd, int argc, char** argv);
|
2008-12-17 15:59:43 +00:00
|
|
|
extern void application_init();
|
|
|
|
extern void application_term();
|
|
|
|
|
2014-07-22 17:15:34 +00:00
|
|
|
#ifdef SK_BUILD_FOR_IOS
|
|
|
|
enum IOS_launch_type {
|
|
|
|
kError_iOSLaunchType = -1,
|
|
|
|
kTool_iOSLaunchType = 0,
|
|
|
|
kApplication__iOSLaunchType = 1
|
|
|
|
};
|
|
|
|
|
|
|
|
extern IOS_launch_type set_cmd_line_args(int argc, char *argv[],
|
|
|
|
const char* resourceDir);
|
|
|
|
#endif
|
|
|
|
|
2008-12-17 15:59:43 +00:00
|
|
|
#endif // SkApplication_DEFINED
|