1 #ifndef __DALI_WEBENGINELITE_PLUGIN_H__
2 #define __DALI_WEBENGINELITE_PLUGIN_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/signals/dali-signal.h>
28 * @brief WebEngineLitePlugin is an abstract interface, used by dali-adaptor to access WebEngineLite plugin.
29 * A concrete implementation must be created for each platform and provided as dynamic library.
31 class WebEngineLitePlugin
35 typedef Signal< void () > WebEngineLiteSignalType;
40 WebEngineLitePlugin(){}
45 virtual ~WebEngineLitePlugin(){}
48 * @brief Creates WebEngineLite instance.
50 * @param [in] width The width of Web
51 * @param [in] height The height of Web
52 * @param [in] windowX The x position of window
53 * @param [in] windowY The y position of window
54 * @param [in] locale The locale of Web
55 * @param [in] timezoneID The timezoneID of Web
57 virtual void CreateInstance(int width, int height, int windowX, int windowY, const std::string& locale, const std::string& timezoneID) = 0;
60 * @brief Destroys WebEngineLite instance.
62 virtual void DestroyInstance() = 0;
65 * @brief Loads a html.
67 * @param [in] path The path of Web
69 virtual void LoadHtml(const std::string& path) = 0;
72 * @brief Connect to this signal to be notified when a web view has finished.
74 * @return A signal object to connect with.
76 virtual WebEngineLiteSignalType& FinishedSignal() = 0;