Revert "[Tizen] Support custom fonts registration"
[platform/core/uifw/dali-adaptor.git] / plugins / tizen-web-engine-lite.h
1 #ifndef __DALI_TIZEN_WebEngineLite_PLUGIN_H__
2 #define __DALI_TIZEN_WebEngineLite_PLUGIN_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/devel-api/threading/mutex.h>
23 #include <string>
24
25 // INTERNAL INCLUDES
26 #include "StarFishPublic.h"
27 #include <dali/devel-api/adaptor-framework/web-engine-lite-plugin.h>
28 #include <timer.h>
29
30 namespace Dali
31 {
32
33 namespace Plugin
34 {
35
36 /**
37  * @brief Implementation of the Tizen WebEngineLite class which has Tizen platform dependency.
38  */
39 class TizenWebEngineLite : public Dali::WebEngineLitePlugin, public Dali::ConnectionTracker
40 {
41 public:
42
43   /**
44    * @brief Constructor.
45    */
46   TizenWebEngineLite();
47
48   /**
49    * @brief Destructor.
50    */
51   virtual ~TizenWebEngineLite();
52
53   /**
54    * @copydoc Dali::WebEngineLitePlugin::CreateInstance()
55    */
56   virtual void CreateInstance(int width, int height, int windowX, int windowY, const std::string& locale, const std::string& timezoneID);
57
58   /**
59    * @copydoc Dali::WebEngineLitePlugin::DestroyInstance()
60    */
61   virtual void DestroyInstance();
62
63   /**
64    * @copydoc Dali::WebEngineLitePlugin::LoadHtml()
65    */
66   virtual void LoadHtml(const std::string& path);
67
68   /**
69    * @copydoc Dali::WebEngineLitePlugin::FinishedSignal()
70    */
71   virtual Dali::WebEngineLitePlugin::WebEngineLiteSignalType& FinishedSignal();
72
73 private:
74   StarFishInstance* mWebEngineLiteInstance;
75
76 public:
77
78   Dali::WebEngineLitePlugin::WebEngineLiteSignalType mFinishedSignal;
79 };
80
81 } // namespace Plugin
82 } // namespace Dali;
83
84 #endif