Revert "[Tizen] Support custom fonts registration"
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / web-engine-lite.cpp
1 /*
2  * Copyright (c) 2017 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 "web-engine-lite.h"
20
21 // INTERNAL INCLUDES
22 #include <dali/internal/web-engine-lite/common/web-engine-lite-impl.h>
23
24 namespace Dali
25 {
26
27 WebEngineLite::WebEngineLite()
28 {
29 }
30
31 WebEngineLite::WebEngineLite( Internal::Adaptor::WebEngineLite* internal )
32 : BaseHandle( internal )
33 {
34 }
35
36 WebEngineLite::~WebEngineLite()
37 {
38 }
39
40 WebEngineLite WebEngineLite::New()
41 {
42   Internal::Adaptor::WebEngineLitePtr webEngineLite = Internal::Adaptor::WebEngineLite::New();
43
44   if( webEngineLite )
45   {
46     webEngineLite->Initialize();
47   }
48
49   return WebEngineLite( webEngineLite.Get() );
50 }
51
52 WebEngineLite::WebEngineLite( const WebEngineLite& webEngineLite )
53 : BaseHandle( webEngineLite )
54 {
55 }
56
57 WebEngineLite& WebEngineLite::operator=( const WebEngineLite& webEngineLite )
58 {
59   if( *this != webEngineLite )
60   {
61     BaseHandle::operator=( webEngineLite );
62   }
63   return *this;
64 }
65
66 WebEngineLite WebEngineLite::DownCast( BaseHandle handle )
67 {
68   return WebEngineLite( dynamic_cast< Internal::Adaptor::WebEngineLite* >( handle.GetObjectPtr() ) );
69 }
70
71 void WebEngineLite::CreateInstance(int width, int height, int windowX, int windowY, const std::string& locale, const std::string& timezoneID)
72 {
73   GetImplementation( *this ).CreateInstance(width, height, windowX, windowY, locale, timezoneID);
74 }
75
76 void WebEngineLite::DestroyInstance()
77 {
78   GetImplementation( *this ).DestroyInstance();
79 }
80
81 void WebEngineLite::LoadHtml(const std::string& path)
82 {
83   return GetImplementation( *this ).LoadHtml(path);
84 }
85
86 Dali::WebEngineLitePlugin::WebEngineLiteSignalType& WebEngineLite::FinishedSignal()
87 {
88   return GetImplementation( *this ).FinishedSignal();
89 }
90
91 } // namespace Dali;
92