Revert "[Tizen] Do not substarct outline width in text-controller"
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / controls / web-view-lite / web-view-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 <dali-toolkit/devel-api/controls/web-view-lite/web-view-lite.h>
20
21 // INTERNAL INCLUDES
22 #include <dali-toolkit/internal/controls/web-view-lite/web-view-lite-impl.h>
23
24 namespace Dali
25 {
26
27 namespace Toolkit
28 {
29
30 WebViewLite::WebViewLite()
31 {
32 }
33
34 WebViewLite::WebViewLite( const WebViewLite& webViewLite )
35 : Control( webViewLite )
36 {
37 }
38
39 WebViewLite& WebViewLite::operator=( const WebViewLite& webViewLite )
40 {
41   if( &webViewLite != this )
42   {
43     Control::operator=( webViewLite );
44   }
45
46   return *this;
47 }
48
49 WebViewLite::~WebViewLite()
50 {
51 }
52
53 WebViewLite WebViewLite::New()
54 {
55   return Internal::WebViewLite::New();
56 }
57
58 WebViewLite WebViewLite::DownCast( BaseHandle handle )
59 {
60   return Control::DownCast< WebViewLite, Internal::WebViewLite >( handle );
61 }
62
63 void WebViewLite::CreateInstance(int width, int height, int windowX, int windowY, const std::string& locale, const std::string& timezoneID)
64 {
65   Dali::Toolkit::GetImpl( *this ).CreateInstance(width, height, windowX, windowY, locale, timezoneID);
66 }
67
68 void WebViewLite::DestroyInstance()
69 {
70   Dali::Toolkit::GetImpl( *this ).DestroyInstance();
71 }
72
73 void WebViewLite::LoadHtml(const std::string& path)
74 {
75   Dali::Toolkit::GetImpl( *this ).LoadHtml(path);
76 }
77
78 WebViewLite::WebViewLiteSignalType& WebViewLite::FinishedSignal()
79 {
80   return Dali::Toolkit::GetImpl( *this ).FinishedSignal();
81 }
82
83 WebViewLite::WebViewLite( Internal::WebViewLite& implementation )
84 : Control( implementation )
85 {
86 }
87
88 WebViewLite::WebViewLite( Dali::Internal::CustomActor* internal )
89 : Control( internal )
90 {
91   VerifyCustomActorPointer< Internal::WebViewLite >( internal );
92 }
93
94 } // namespace Toolkit
95
96 } // namespace Dali