ad743233dd7717a4f21458e65506cac6a39f7b3e
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / web-engine-plugin.h
1 #ifndef DALI_WEB_ENGINE_PLUGIN_H
2 #define DALI_WEB_ENGINE_PLUGIN_H
3
4 /*
5  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <dali/devel-api/common/bitwise-enum.h>
23 #include <dali/public-api/images/native-image-interface.h>
24 #include <dali/public-api/math/rect.h>
25 #include <dali/public-api/signals/dali-signal.h>
26 #include <functional>
27 #include <memory>
28
29 namespace Dali
30 {
31 class KeyEvent;
32 class PixelData;
33 class TouchEvent;
34 class WebEngineBackForwardList;
35 class WebEngineCertificate;
36 class WebEngineConsoleMessage;
37 class WebEngineContext;
38 class WebEngineContextMenu;
39 class WebEngineContextMenuItem;
40 class WebEngineCookieManager;
41 class WebEngineFormRepostDecision;
42 class WebEngineHttpAuthHandler;
43 class WebEngineLoadError;
44 class WebEnginePolicyDecision;
45 class WebEngineRequestInterceptor;
46 class WebEngineSettings;
47 class HoverEvent;
48 class WheelEvent;
49
50 /**
51  * @brief WebEnginePlugin is an abstract interface, used by dali-adaptor to access WebEngine plugin.
52  * A concrete implementation must be created for each platform and provided as dynamic library.
53  */
54 class WebEnginePlugin
55 {
56 public:
57   /**
58    * @brief WebEngine signal type related with page loading.
59    */
60   using WebEnginePageLoadSignalType = Signal<void(const std::string&)>;
61
62   /**
63    * @brief WebView signal type related with page loading error.
64    */
65   using WebEnginePageLoadErrorSignalType = Signal<void(std::shared_ptr<Dali::WebEngineLoadError>)>;
66
67   // forward declaration.
68   enum class ScrollEdge;
69
70   /**
71    * @brief WebView signal type related with scroll edge reached.
72    */
73   using WebEngineScrollEdgeReachedSignalType = Signal<void(const ScrollEdge)>;
74
75   /**
76    * @brief WebView signal type related with page url changed.
77    */
78   using WebEngineUrlChangedSignalType = Signal<void(const std::string&)>;
79
80   /**
81    * @brief WebView signal type related with screen captured.
82    */
83   using ScreenshotCapturedCallback = std::function<void(Dali::PixelData)>;
84
85   /**
86    * @brief WebView signal type related with geolocation permission.
87    *  Host and protocol of security origin will be provided when requesting
88    *  geolocation permission.
89    *  It returns true if a pop-up is created successfully, false otherwise.
90    */
91   using GeolocationPermissionCallback = std::function<bool(const std::string&, const std::string&)>;
92
93   /**
94    * @brief WebView signal type related with video playing.
95    */
96   using VideoPlayingCallback = std::function<void(bool)>;
97
98   /**
99    * @brief WebView signal type related with http request interceptor.
100    */
101   using WebEngineRequestInterceptorSignalType = Signal<void(std::shared_ptr<Dali::WebEngineRequestInterceptor>)>;
102
103   /**
104    * @brief WebView signal type related with console message will be logged.
105    */
106   using WebEngineConsoleMessageSignalType = Signal<void(std::shared_ptr<Dali::WebEngineConsoleMessage>)>;
107
108   /**
109    * @brief WebView signal type related with certificate changed.
110    */
111   using WebEngineCertificateSignalType = Signal<void(std::shared_ptr<Dali::WebEngineCertificate>)>;
112
113   /**
114    * @brief WebView signal type related with http authentication.
115    */
116   using WebEngineHttpAuthHandlerSignalType = Signal<void(std::shared_ptr<Dali::WebEngineHttpAuthHandler>)>;
117
118   /**
119    * @brief WebView signal type related with context menu customized.
120    */
121   using WebEngineContextMenuCustomizedSignalType = Signal<void(std::shared_ptr<Dali::WebEngineContextMenu>)>;
122
123   /**
124    * @brief WebView signal type related with context menu item selected.
125    */
126   using WebEngineContextMenuItemSelectedSignalType = Signal<void(std::shared_ptr<Dali::WebEngineContextMenuItem>)>;
127
128   /**
129    * @brief Alert callback when JavaScript alert is called with a message.
130    *  It returns true if a pop-up is created successfully, false otherwise.
131    */
132   using JavaScriptAlertCallback = std::function<bool(const std::string&)>;
133
134   /**
135    * @brief Confirm callback when JavaScript confirm is called with a message.
136    *  It returns true if a pop-up is created successfully, false otherwise.
137    */
138   using JavaScriptConfirmCallback = std::function<bool(const std::string&)>;
139
140   /**
141    * @brief Prompt callback when JavaScript prompt is called with a message
142    *  and an optional value that is the default value for the input field.
143    *  It returns true if a pop-up is created successfully, false otherwise.
144    */
145   using JavaScriptPromptCallback = std::function<bool(const std::string&, const std::string&)>;
146
147   /**
148    * @brief WebView signal type related with form repost decision.
149    */
150   using WebEngineFormRepostDecisionSignalType = Signal<void(std::shared_ptr<Dali::WebEngineFormRepostDecision>)>;
151
152   /**
153    * @brief WebView signal type related with frame rendered.
154    */
155   using WebEngineFrameRenderedSignalType = Signal<void(void)>;
156
157   /**
158    * @brief WebView signal type related with policy would be decided.
159    */
160   using WebEnginePolicyDecisionSignalType = Signal<void(std::shared_ptr<Dali::WebEnginePolicyDecision>)>;
161
162   /**
163    * @brief Enumeration for the scroll edge.
164    */
165   enum class ScrollEdge
166   {
167     LEFT,   ///< Left edge reached.
168     RIGHT,  ///< Right edge reached.
169     TOP,    ///< Top edge reached.
170     BOTTOM, ///< Bottom edge reached.
171   };
172
173   /**
174    * @brief Enumeration that provides the option to find text.
175    */
176   enum class FindOption
177   {
178     NONE                               = 0,      ///<  No search flags, this means a case sensitive, no wrap, forward only search
179     CASE_INSENSITIVE                   = 1 << 0, ///<  Case insensitive search
180     AT_WORD_STARTS                     = 1 << 1, ///<  Search text only at the beginning of the words
181     TREAT_MEDIAL_CAPITAL_AS_WORD_START = 1 << 2, ///<  Treat capital letters in the middle of words as word start
182     BACKWARDS                          = 1 << 3, ///<  Search backwards
183     WRAP_AROUND                        = 1 << 4, ///<  If not present the search stops at the end of the document
184     SHOW_OVERLAY                       = 1 << 5, ///<  Show overlay
185     SHOW_FIND_INDICATOR                = 1 << 6, ///<  Show indicator
186     SHOW_HIGHLIGHT                     = 1 << 7, ///<  Show highlight
187   };
188
189   /**
190    * @brief Constructor.
191    */
192   WebEnginePlugin() = default;
193
194   /**
195    * @brief Destructor.
196    */
197   virtual ~WebEnginePlugin() = default;
198
199   /**
200    * @brief Create WebEngine instance.
201    *
202    * @param [in] width The width of Web
203    * @param [in] height The height of Web
204    * @param [in] locale The locale of Web
205    * @param [in] timezoneId The timezoneID of Web
206    */
207   virtual void Create(int width, int height, const std::string& locale, const std::string& timezoneId) = 0;
208
209   /**
210    * @brief Create WebEngine instance.
211    *
212    * @param [in] width The width of Web
213    * @param [in] height The height of Web
214    * @param [in] argc The count of application arguments
215    * @param [in] argv The string array of application arguments
216    */
217   virtual void Create(int width, int height, int argc, char** argv) = 0;
218
219   /**
220    * @brief Destroy WebEngine instance.
221    */
222   virtual void Destroy() = 0;
223
224   /**
225    * @brief Get settings of WebEngine.
226    */
227   virtual WebEngineSettings& GetSettings() const = 0;
228
229   /**
230    * @brief Get context of WebEngine.
231    */
232   virtual WebEngineContext& GetContext() const = 0;
233
234   /**
235    * @brief Get cookie manager of WebEngine.
236    */
237   virtual WebEngineCookieManager& GetCookieManager() const = 0;
238
239   /**
240    * @brief Get back-forward list of WebEngine.
241    */
242   virtual WebEngineBackForwardList& GetBackForwardList() const = 0;
243
244   /**
245    * @brief Load a web page based on a given URL.
246    *
247    * @param [in] url The URL of the resource to load
248    */
249   virtual void LoadUrl(const std::string& url) = 0;
250
251   /**
252    * @brief Return the title of the Web.
253    *
254    * @return The title of web page
255    */
256   virtual std::string GetTitle() const = 0;
257
258   /**
259    * @brief Return the Favicon of the Web.
260    *
261    * @return Favicon of Dali::PixelData& type
262    */
263   virtual Dali::PixelData GetFavicon() const = 0;
264
265   /**
266    * @brief Get image to render.
267    */
268   virtual NativeImageInterfacePtr GetNativeImageSource() = 0;
269
270   /**
271    * @brief Return the URL of the Web.
272    *
273    * @return Url of string type
274    */
275   virtual const std::string& GetUrl() = 0;
276
277   /**
278    * @brief Load a given string as web contents.
279    *
280    * @param [in] htmlString The string to use as the contents of the web page
281    */
282   virtual void LoadHtmlString(const std::string& htmlString) = 0;
283
284   /**
285    * @brief Load the specified html string as the content of the view overriding current history entry
286    *
287    * @param[in] html HTML data to load
288    * @param[in] basicUri Base URL used for relative paths to external objects
289    * @param[in] unreachableUrl URL that could not be reached
290    *
291    * @return true if successfully loaded, false otherwise
292    */
293   virtual bool LoadHtmlStringOverrideCurrentEntry(const std::string& html, const std::string& basicUri, const std::string& unreachableUrl) = 0;
294
295   /**
296    * @brief Request loading the given contents by MIME type into the view object
297    *
298    * @param[in] contents The content to load
299    * @param[in] contentSize The size of contents (in bytes)
300    * @param[in] mimeType The type of contents, if 0 is given "text/html" is assumed
301    * @param[in] encoding The encoding for contents, if 0 is given "UTF-8" is assumed
302    * @param[in] baseUri The base URI to use for relative resources
303    *
304    * @return true if successfully request, false otherwise
305    */
306   virtual bool LoadContents(const std::string& contents, uint32_t contentSize, const std::string& mimeType, const std::string& encoding, const std::string& baseUri) = 0;
307
308   /**
309    * @brief Reload the Web.
310    */
311   virtual void Reload() = 0;
312
313   /**
314    * @brief Reload the current page's document without cache
315    */
316   virtual bool ReloadWithoutCache() = 0;
317
318   /**
319    * @brief Stop loading web contents on the current page.
320    */
321   virtual void StopLoading() = 0;
322
323   /**
324    * @brief Suspend the operation associated with the view.
325    */
326   virtual void Suspend() = 0;
327
328   /**
329    * @brief Resume the operation associated with the view object after calling Suspend().
330    */
331   virtual void Resume() = 0;
332
333   /**
334    * @brief To suspend all url loading
335    */
336   virtual void SuspendNetworkLoading() = 0;
337
338   /**
339    * @brief To resume new url network loading
340    */
341   virtual void ResumeNetworkLoading() = 0;
342
343   /**
344    * @brief Add custom header
345    *
346    * @param[in] name custom header name to add the custom header
347    * @param[in] value custom header value to add the custom header
348    *
349    * @return true if succeeded, false otherwise
350    */
351   virtual bool AddCustomHeader(const std::string& name, const std::string& value) = 0;
352
353   /**
354    * @brief Remove custom header
355    *
356    * @param[in] name custom header name to remove the custom header
357    *
358    * @return true if succeeded, false otherwise
359    */
360   virtual bool RemoveCustomHeader(const std::string& name) = 0;
361
362   /**
363    * @brief Start the inspector server
364    *
365    * @param[in] port port number
366    *
367    * @return the port number
368    */
369   virtual uint32_t StartInspectorServer(uint32_t port) = 0;
370
371   /**
372    * @brief Stop the inspector server
373    *
374    * @return true if succeeded, false otherwise
375    */
376   virtual bool StopInspectorServer() = 0;
377
378   /**
379    * @brief Scroll web page of view by deltaX and deltaY.
380    *
381    * @param[in] deltaX horizontal offset to scroll
382    * @param[in] deltaY vertical offset to scroll
383    */
384   virtual void ScrollBy(int deltaX, int deltaY) = 0;
385
386   /**
387    * @brief Scroll edge of view by deltaX and deltaY.
388    *
389    * @param[in] deltaX horizontal offset to scroll
390    * @param[in] deltaY vertical offset to scroll
391    *
392    * @return true if succeeded, false otherwise
393    */
394   virtual bool ScrollEdgeBy(int deltaX, int deltaY) = 0;
395
396   /**
397    * @brief Scroll to the specified position of the given view.
398    */
399   virtual void SetScrollPosition(int x, int y) = 0;
400
401   /**
402    * @brief Get the current scroll position of the given view.
403    */
404   virtual Dali::Vector2 GetScrollPosition() const = 0;
405
406   /**
407    * @brief Get the possible scroll size of the given view.
408    */
409   virtual Dali::Vector2 GetScrollSize() const = 0;
410
411   /**
412    * @brief Get the last known content's size.
413    */
414   virtual Dali::Vector2 GetContentSize() const = 0;
415
416   /**
417    * @brief Return whether forward is possible.
418    *
419    * @return True if forward is possible, false otherwise
420    */
421   virtual bool CanGoForward() = 0;
422
423   /**
424    * @brief Go to forward.
425    */
426   virtual void GoForward() = 0;
427
428   /**
429    * @brief Return whether backward is possible.
430    *
431    * @return True if backward is possible, false otherwise
432    */
433   virtual bool CanGoBack() = 0;
434
435   /**
436    * @brief Go to back.
437    */
438   virtual void GoBack() = 0;
439
440   /**
441    * @brief Evaluate JavaScript code represented as a string.
442    *
443    * @param[in] script The JavaScript code
444    * @param[in] resultHandler The callback function to be called by the JavaScript runtime. This carries evaluation result.
445    */
446   virtual void EvaluateJavaScript(const std::string& script, std::function<void(const std::string&)> resultHandler) = 0;
447
448   /**
449    * @brief Add a message handler into JavaScript.
450    *
451    * @param[in] exposedObjectName The name of exposed object
452    * @param[in] handler The callback function
453    */
454   virtual void AddJavaScriptMessageHandler(const std::string& exposedObjectName, std::function<void(const std::string&)> handler) = 0;
455
456   /**
457    * @brief Register a callback for JavaScript alert.
458    *
459    * @param[in] callback The callback function
460    */
461   virtual void RegisterJavaScriptAlertCallback(JavaScriptAlertCallback callback) = 0;
462
463   /**
464    * @brief Reply for JavaScript alert.
465    */
466   virtual void JavaScriptAlertReply() = 0;
467
468   /**
469    * @brief Register a callback for JavaScript confirm.
470    *
471    * @param[in] callback The callback function
472    */
473   virtual void RegisterJavaScriptConfirmCallback(JavaScriptConfirmCallback callback) = 0;
474
475   /**
476    * @brief Reply for JavaScript confirm.
477    */
478   virtual void JavaScriptConfirmReply(bool confirmed) = 0;
479
480   /**
481    * @brief Register a callback for JavaScript prompt.
482    *
483    * @param[in] callback The callback function
484    */
485   virtual void RegisterJavaScriptPromptCallback(JavaScriptPromptCallback callback) = 0;
486
487   /**
488    * @brief Reply for JavaScript prompt.
489    */
490   virtual void JavaScriptPromptReply(const std::string& result) = 0;
491
492   /**
493    * @brief Clear the history of Web.
494    */
495   virtual void ClearHistory() = 0;
496
497   /**
498    * @brief Clear all tiles resources of Web.
499    */
500   virtual void ClearAllTilesResources() = 0;
501
502   /**
503    * @brief Get user agent string.
504    *
505    * @return The string value of user agent
506    */
507   virtual const std::string& GetUserAgent() const = 0;
508
509   /**
510    * @brief Set user agent string.
511    *
512    * @param[in] userAgent The string value of user agent
513    */
514   virtual void SetUserAgent(const std::string& userAgent) = 0;
515
516   /**
517    * @brief Set size of Web Page.
518    */
519   virtual void SetSize(int width, int height) = 0;
520
521   /**
522    * @brief Set background color of web page.
523    *
524    * @param[in] color Background color
525    */
526   virtual void SetDocumentBackgroundColor(Dali::Vector4 color) = 0;
527
528   /**
529    * @brief Clear tiles when hidden.
530    *
531    * @param[in] cleared Whether tiles are cleared or not
532    */
533   virtual void ClearTilesWhenHidden(bool cleared) = 0;
534
535   /**
536    * @brief Set multiplier of cover area of tile.
537    *
538    * @param[in] multiplier The multiplier of cover area
539    */
540   virtual void SetTileCoverAreaMultiplier(float multiplier) = 0;
541
542   /**
543    * @brief Enable cursor by client.
544    *
545    * @param[in] enabled Whether cursor is enabled or not
546    */
547   virtual void EnableCursorByClient(bool enabled) = 0;
548
549   /**
550    * @brief Get the selected text.
551    *
552    * @return the selected text
553    */
554   virtual std::string GetSelectedText() const = 0;
555
556   /**
557    * @brief Send Touch Events.
558    */
559   virtual bool SendTouchEvent(const TouchEvent& touch) = 0;
560
561   /**
562    * @brief Send Key Events.
563    */
564   virtual bool SendKeyEvent(const KeyEvent& event) = 0;
565
566   /**
567    * @brief Support mouse events or not.
568    * @param[in] enabled True if enabled, false othewise.
569    */
570   virtual void EnableMouseEvents(bool enabled) = 0;
571
572   /**
573    * @brief Support key events or not.
574    * @param[in] enabled True if enabled, false othewise.
575    */
576   virtual void EnableKeyEvents(bool enabled) = 0;
577
578   /**
579    * @brief Set focus.
580    * @param[in] focused True if focus is gained, false lost.
581    */
582   virtual void SetFocus(bool focused) = 0;
583
584   /**
585    * @brief Set zoom factor of the current page.
586    * @param[in] zoomFactor a new factor to be set.
587    */
588   virtual void SetPageZoomFactor(float zoomFactor) = 0;
589
590   /**
591    * @brief Query the current zoom factor of the page。
592    * @return The current page zoom factor.
593    */
594   virtual float GetPageZoomFactor() const = 0;
595
596   /**
597    * @brief Set the current text zoom level。.
598    * @param[in] zoomFactor a new factor to be set.
599    */
600   virtual void SetTextZoomFactor(float zoomFactor) = 0;
601
602   /**
603    * @brief Get the current text zoom level.
604    * @return The current text zoom factor.
605    */
606   virtual float GetTextZoomFactor() const = 0;
607
608   /**
609    * @brief Get the current load progress of the page.
610    * @return The load progress of the page.
611    */
612   virtual float GetLoadProgressPercentage() const = 0;
613
614   /**
615    * @brief Scale the current page, centered at the given point.
616    * @param[in] scaleFactor a new factor to be scaled.
617    * @param[in] point a center coordinate.
618    */
619   virtual void SetScaleFactor(float scaleFactor, Dali::Vector2 point) = 0;
620
621   /**
622    * @brief Get the current scale factor of the page.
623    * @return The current scale factor.
624    */
625   virtual float GetScaleFactor() const = 0;
626
627   /**
628    * @brief Request to activate/deactivate the accessibility usage set by web app.
629    * @param[in] activated Activate accessibility or not.
630    */
631   virtual void ActivateAccessibility(bool activated) = 0;
632
633   /**
634    * @brief Request to set the current page's visibility.
635    * @param[in] visible Visible or not.
636    *
637    * @return true if succeeded, false otherwise
638    */
639   virtual bool SetVisibility(bool visible) = 0;
640
641   /**
642    * @brief Search and highlight the given string in the document.
643    * @param[in] text The text to find
644    * @param[in] options The options to find
645    * @param[in] maxMatchCount The maximum match count to find
646    *
647    * @return true if found & highlighted, false otherwise
648    */
649   virtual bool HighlightText(const std::string& text, FindOption options, uint32_t maxMatchCount) = 0;
650
651   /**
652    * @brief Add dynamic certificate path.
653    * @param[in] host host that required client authentication
654    * @param[in] certPath the file path stored certificate
655    */
656   virtual void AddDynamicCertificatePath(const std::string& host, const std::string& certPath) = 0;
657
658   /**
659    * @brief Get snapshot of the specified viewArea of page.
660    *
661    * @param[in] viewArea The rectangle of screen shot
662    * @param[in] scaleFactor The scale factor
663    *
664    * @return pixel data of screen shot
665    */
666   virtual Dali::PixelData GetScreenshot(Dali::Rect<int> viewArea, float scaleFactor) = 0;
667
668   /**
669    * @brief Request to get snapshot of the specified viewArea of page asynchronously.
670    *
671    * @param[in] viewArea The rectangle of screen shot
672    * @param[in] scaleFactor The scale factor
673    * @param[in] callback The callback for screen shot
674    *
675    * @return true if requested successfully, false otherwise
676    */
677   virtual bool GetScreenshotAsynchronously(Dali::Rect<int> viewArea, float scaleFactor, ScreenshotCapturedCallback callback) = 0;
678
679   /**
680    * @brief Asynchronously request to check if there is a video playing in the given view.
681    *
682    * @param[in] callback The callback called after checking if video is playing or not
683    *
684    * @return true if requested successfully, false otherwise
685    */
686   virtual bool CheckVideoPlayingAsynchronously(VideoPlayingCallback callback) = 0;
687
688   /**
689    * @brief Set callback which will be called upon geolocation permission request.
690    *
691    * @param[in] callback The callback for requesting geolocation permission
692    */
693   virtual void RegisterGeolocationPermissionCallback(GeolocationPermissionCallback callback) = 0;
694
695   /**
696    * @brief Update display area.
697    * @param[in] displayArea The display area need be updated.
698    */
699   virtual void UpdateDisplayArea(Dali::Rect<int> displayArea) = 0;
700
701   /**
702    * @brief Enable video hole.
703    * @param[in] enabled True if enabled, false othewise.
704    */
705   virtual void EnableVideoHole(bool enabled) = 0;
706
707   /**
708    * @brief Send Hover Events.
709    * @param[in] event The hover event would be sent.
710    */
711   virtual bool SendHoverEvent(const HoverEvent& event) = 0;
712
713   /**
714    * @brief Send Wheel Events.
715    * @param[in] event The wheel event would be sent.
716    */
717   virtual bool SendWheelEvent(const WheelEvent& event) = 0;
718
719   /**
720    * @brief Connect to this signal to be notified when page loading is started.
721    *
722    * @return A signal object to connect with.
723    */
724   virtual WebEnginePageLoadSignalType& PageLoadStartedSignal() = 0;
725
726   /**
727    * @brief Connect to this signal to be notified when page loading is in progress.
728    *
729    * @return A signal object to connect with.
730    */
731   virtual WebEnginePageLoadSignalType& PageLoadInProgressSignal() = 0;
732
733   /**
734    * @brief Connect to this signal to be notified when page loading is finished.
735    *
736    * @return A signal object to connect with.
737    */
738   virtual WebEnginePageLoadSignalType& PageLoadFinishedSignal() = 0;
739
740   /**
741    * @brief Connect to this signal to be notified when an error occurs in page loading.
742    *
743    * @return A signal object to connect with.
744    */
745   virtual WebEnginePageLoadErrorSignalType& PageLoadErrorSignal() = 0;
746
747   /**
748    * @brief Connect to this signal to be notified when scroll edge is reached.
749    *
750    * @return A signal object to connect with.
751    */
752   virtual WebEngineScrollEdgeReachedSignalType& ScrollEdgeReachedSignal() = 0;
753
754   /**
755    * @brief Connect to this signal to be notified when url is changed.
756    *
757    * @return A signal object to connect with.
758    */
759   virtual WebEngineUrlChangedSignalType& UrlChangedSignal() = 0;
760
761   /**
762    * @brief Connect to this signal to be notified when form repost decision is requested.
763    *
764    * @return A signal object to connect with.
765    */
766   virtual WebEngineFormRepostDecisionSignalType& FormRepostDecisionSignal() = 0;
767
768   /**
769    * @brief Connect to this signal to be notified when frame is rendered.
770    *
771    * @return A signal object to connect with.
772    */
773   virtual WebEngineFrameRenderedSignalType& FrameRenderedSignal() = 0;
774
775   /**
776    * @brief Connect to this signal to be notified when http request need be intercepted.
777    *
778    * @return A signal object to connect with.
779    */
780   virtual WebEngineRequestInterceptorSignalType& RequestInterceptorSignal() = 0;
781
782   /**
783    * @brief Connect to this signal to be notified when console message will be logged.
784    *
785    * @return A signal object to connect with.
786    */
787   virtual WebEngineConsoleMessageSignalType& ConsoleMessageSignal() = 0;
788
789   /**
790    * @brief Connect to this signal to be notified when new policy would be decided.
791    *
792    * @return A signal object to connect with.
793    */
794   virtual WebEnginePolicyDecisionSignalType& PolicyDecisionSignal() = 0;
795
796   /**
797    * @brief Connect to this signal to be notified when certificate need be confirmed.
798    *
799    * @return A signal object to connect with.
800    */
801   virtual WebEngineCertificateSignalType& CertificateConfirmSignal() = 0;
802
803   /**
804    * @brief Connect to this signal to be notified when ssl certificate is changed.
805    *
806    * @return A signal object to connect with.
807    */
808   virtual WebEngineCertificateSignalType& SslCertificateChangedSignal() = 0;
809
810   /**
811    * @brief Connect to this signal to be notified when http authentication need be confirmed.
812    *
813    * @return A signal object to connect with.
814    */
815   virtual WebEngineHttpAuthHandlerSignalType& HttpAuthHandlerSignal() = 0;
816
817   /**
818    * @brief Connect to this signal to be notified when context menu would be customized.
819    *
820    * @return A signal object to connect with.
821    */
822   virtual WebEngineContextMenuCustomizedSignalType& ContextMenuCustomizedSignal() = 0;
823
824   /**
825    * @brief Connect to this signal to be notified when context menu item is selected.
826    *
827    * @return A signal object to connect with.
828    */
829   virtual WebEngineContextMenuItemSelectedSignalType& ContextMenuItemSelectedSignal() = 0;
830 };
831
832 // specialization has to be done in the same namespace
833 template<>
834 struct EnableBitMaskOperators<WebEnginePlugin::FindOption>
835 {
836   static const bool ENABLE = true;
837 };
838
839 } // namespace Dali
840
841 #endif