2 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #include "web-engine-lite.h"
22 #include <dali/internal/web-engine-lite/common/web-engine-lite-impl.h>
27 WebEngineLite::WebEngineLite()
31 WebEngineLite::WebEngineLite( Internal::Adaptor::WebEngineLite* internal )
32 : BaseHandle( internal )
36 WebEngineLite::~WebEngineLite()
40 WebEngineLite WebEngineLite::New()
42 Internal::Adaptor::WebEngineLitePtr webEngineLite = Internal::Adaptor::WebEngineLite::New();
46 webEngineLite->Initialize();
49 return WebEngineLite( webEngineLite.Get() );
52 WebEngineLite::WebEngineLite( const WebEngineLite& webEngineLite )
53 : BaseHandle( webEngineLite )
57 WebEngineLite& WebEngineLite::operator=( const WebEngineLite& webEngineLite )
59 if( *this != webEngineLite )
61 BaseHandle::operator=( webEngineLite );
66 WebEngineLite WebEngineLite::DownCast( BaseHandle handle )
68 return WebEngineLite( dynamic_cast< Internal::Adaptor::WebEngineLite* >( handle.GetObjectPtr() ) );
71 void WebEngineLite::CreateInstance(int width, int height, int windowX, int windowY, const std::string& locale, const std::string& timezoneID)
73 GetImplementation( *this ).CreateInstance(width, height, windowX, windowY, locale, timezoneID);
76 void WebEngineLite::DestroyInstance()
78 GetImplementation( *this ).DestroyInstance();
81 void WebEngineLite::LoadHtml(const std::string& path)
83 return GetImplementation( *this ).LoadHtml(path);
86 Dali::WebEngineLitePlugin::WebEngineLiteSignalType& WebEngineLite::FinishedSignal()
88 return GetImplementation( *this ).FinishedSignal();