1 #ifndef __DALI_WEBENGINELITE_H__
2 #define __DALI_WEBENGINELITE_H__
5 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 #include <dali/public-api/object/base-handle.h>
25 #include <dali/public-api/dali-adaptor-common.h>
26 #include "web-engine-lite-plugin.h"
37 } // namespace Adaptor
39 } // namespace Internal
42 * @brief WebEngineLite class is used for Web.
44 class DALI_ADAPTOR_API WebEngineLite: public BaseHandle
59 * @brief Creates a new instance of a WebEngineLite.
61 static WebEngineLite New();
64 * @brief Copy constructor.
66 * @param[in] webEngineLite WebEngineLite to copy. The copied webEngineLite will point at the same implementation
68 WebEngineLite( const WebEngineLite& webEngineLite );
71 * @brief Assignment operator.
73 * @param[in] webEngineLite The WebEngineLite to assign from.
74 * @return The updated WebEngineLite.
76 WebEngineLite& operator=( const WebEngineLite& webEngineLite );
79 * @brief Downcast a handle to WebEngineLite handle.
81 * If handle points to a WebEngineLite the downcast produces valid
82 * handle. If not the returned handle is left uninitialized.
84 * @param[in] handle Handle to an object
85 * @return Handle to a WebEngineLite or an uninitialized handle
87 static WebEngineLite DownCast( BaseHandle handle );
90 * @brief Creates WebEngineLite instance.
92 * @param [in] width The width of Web
93 * @param [in] height The height of Web
94 * @param [in] windowX The x position of window
95 * @param [in] windowY The y position of window
96 * @param [in] locale The locale of Web
97 * @param [in] timezoneID The timezoneID of Web
99 void CreateInstance(int width, int height, int windowX, int windowY, const std::string& locale, const std::string& timezoneID);
102 * @brief Destroys WebEngineLite instance.
104 void DestroyInstance();
107 * @brief Loads a html.
109 * @param [in] path The path of Web
111 void LoadHtml(const std::string& path);
114 * @brief Connect to this signal to be notified when a web view has finished.
116 * @return A signal object to connect with.
118 Dali::WebEngineLitePlugin::WebEngineLiteSignalType& FinishedSignal();
120 private: // Not intended for application developers
123 * @brief Internal constructor
125 explicit DALI_INTERNAL WebEngineLite( Internal::Adaptor::WebEngineLite* internal );