9969e3d784782641c5a906733b53469499ab30c9
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / dali-toolkit-test-utils / toolkit-web-view-lite.h
1 #ifndef __DALI_TOOLKIT_WEBVIEWLITE_H__
2 #define __DALI_TOOLKIT_WEBVIEWLITE_H__
3
4 /*
5  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <dali/public-api/object/base-handle.h>
23 #include <dali/public-api/object/base-object.h>
24
25 #include <dali/devel-api/adaptor-framework/web-engine-lite-plugin.h>
26
27 namespace Dali
28 {
29
30 namespace Internal
31 {
32
33 namespace Adaptor
34 {
35
36 class WebViewLite;
37 }
38 }
39
40 /**
41  * @brief WebViewLite class is used for Web.
42  */
43 class WebViewLite: public BaseHandle
44 {
45 public:
46
47   WebViewLite();
48
49   ~WebViewLite();
50
51   static WebViewLite New();
52
53   WebViewLite( const WebViewLite& webViewLite );
54
55   WebViewLite& operator=( const WebViewLite& webViewLite );
56
57   static WebViewLite DownCast( BaseHandle handle );
58
59   void CreateInstance(int width, int height, int windowX, int windowY, const std::string& locale, const std::string& timezoneID);
60
61   void DestroyInstance();
62
63   void LoadHtml(const std::string& path);
64
65   Dali::WebEngineLitePlugin::WebEngineLiteSignalType& FinishedSignal();
66
67 private:
68
69   WebViewLite( Internal::Adaptor::WebEngineLite* internal );
70
71 };
72
73 } // namespace Dali;
74
75 #endif