Merge changes Icc3e3c9f,I2e268700,I89760410,Ibcf4f854 into devel/master
[platform/core/uifw/dali-adaptor.git] / dali / internal / system / macos / widget-application-impl-mac.cpp
1 /*
2  * Copyright (c) 2018 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali/internal/system/macos/widget-application-impl-mac.h>
20 #include <dali/integration-api/debug.h>
21
22 namespace Dali
23 {
24
25 namespace Internal
26 {
27
28 namespace Adaptor
29 {
30
31 WidgetApplicationPtr WidgetApplicationCocoa::New(
32   int* argc,
33   char **argv[],
34   const std::string& stylesheet)
35 {
36   return new WidgetApplicationCocoa(argc, argv, stylesheet );
37 }
38
39 WidgetApplicationCocoa::WidgetApplicationCocoa(
40   int* argc,
41   char** argv[],
42   const std::string& stylesheet
43 )
44 : WidgetApplication(argc, argv, stylesheet)
45 {
46   DALI_LOG_ERROR("WidgetApplication is not implemented in MACOS profile.\n");
47 }
48
49 WidgetApplicationCocoa::~WidgetApplicationCocoa()
50 {
51 }
52
53 void WidgetApplicationCocoa::RegisterWidgetCreatingFunction(
54   const std::string& widgetName,
55   Dali::WidgetApplication::CreateWidgetFunction createFunction
56 )
57 {
58 }
59
60 // factory function, must be implemented
61 namespace WidgetApplicationFactory
62 {
63 /**
64  * Create a new widget application
65  * @param[in]  argc         A pointer to the number of arguments
66  * @param[in]  argv         A pointer to the argument list
67  * @param[in]  stylesheet   The path to user defined theme file
68  */
69 WidgetApplicationPtr Create( int* argc, char **argv[], const std::string& stylesheet )
70 {
71   return WidgetApplicationCocoa::New( argc, argv, stylesheet );
72 }
73
74 } // namespace Factory
75
76 } // namespace Adaptor
77
78 } // namespace Internal
79
80 } // namespace Dali