1 #ifndef DALI_TOOLKIT_INTERNAL_WEB_VIEW_H
2 #define DALI_TOOLKIT_INTERNAL_WEB_VIEW_H
5 * Copyright (c) 2021 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/devel-api/actors/actor-devel.h>
23 #include <dali/devel-api/adaptor-framework/web-engine.h>
24 #include <dali/public-api/images/image-operations.h>
25 #include <dali/public-api/object/property-notification.h>
29 #include <dali-toolkit/devel-api/controls/web-view/web-view.h>
30 #include <dali-toolkit/devel-api/visual-factory/visual-base.h>
31 #include <dali-toolkit/public-api/controls/control-impl.h>
32 #include <dali-toolkit/public-api/controls/image-view/image-view.h>
40 class WebBackForwardList;
42 class WebCookieManager;
48 class WebView : public Control
53 WebView(const std::string& locale, const std::string& timezoneId);
55 WebView(uint32_t argc, char** argv);
61 * @copydoc Dali::Toolkit::WebView::New()
63 static Toolkit::WebView New();
66 * @copydoc Dali::Toolkit::WebView::New( const std::string&, const std::string& )
68 static Toolkit::WebView New(const std::string& locale, const std::string& timezoneId);
71 * @copydoc Dali::Toolkit::WebView::New( uint32_t, char** )
73 static Toolkit::WebView New(uint32_t argc, char** argv);
76 * @copydoc Dali::Toolkit::WebView::GetSettings()
78 Dali::Toolkit::WebSettings* GetSettings() const;
81 * @copydoc Dali::Toolkit::WebView::GetContext()
83 Dali::Toolkit::WebContext* GetContext() const;
86 * @copydoc Dali::Toolkit::WebView::GetCookieManager()
88 Dali::Toolkit::WebCookieManager* GetCookieManager() const;
91 * @copydoc Dali::Toolkit::WebView::GetBackForwardList()
93 Dali::Toolkit::WebBackForwardList* GetBackForwardList() const;
96 * @copydoc Dali::Toolkit::WebView::GetFavicon()
98 Dali::Toolkit::ImageView GetFavicon() const;
101 * @copydoc Dali::Toolkit::WebView::LoadUrl()
103 void LoadUrl(const std::string& url);
106 * @copydoc Dali::WebEngine::LoadHTMLString()
108 void LoadHtmlString(const std::string& htmlString);
111 * @copydoc Dali::WebEngine::LoadHtmlStringOverrideCurrentEntry()
113 bool LoadHtmlStringOverrideCurrentEntry(const std::string& html, const std::string& basicUri, const std::string& unreachableUrl);
116 * @copydoc Dali::WebEngine::LoadContents()
118 bool LoadContents(const std::string& contents, uint32_t contentSize, const std::string& mimeType, const std::string& encoding, const std::string& baseUri);
121 * @copydoc Dali::Toolkit::WebView::Reload()
126 * @copydoc Dali::WebEngine::ReloadWithoutCache()
128 bool ReloadWithoutCache();
131 * @copydoc Dali::Toolkit::WebView::StopLoading()
136 * @copydoc Dali::Toolkit::WebView::StopLoading()
141 * @copydoc Dali::Toolkit::WebView::Resume()
146 * @copydoc Dali::WebEngine::SuspendNetworkLoading()
148 void SuspendNetworkLoading();
151 * @copydoc Dali::WebEngine::ResumeNetworkLoading()
153 void ResumeNetworkLoading();
156 * @copydoc Dali::WebEngine::AddCustomHeader()
158 bool AddCustomHeader(const std::string& name, const std::string& value);
161 * @copydoc Dali::WebEngine::RemoveCustomHeader()
163 bool RemoveCustomHeader(const std::string& name);
166 * @copydoc Dali::WebEngine::StartInspectorServer()
168 uint32_t StartInspectorServer(uint32_t port);
171 * @copydoc Dali::WebEngine::StopInspectorServer()
173 bool StopInspectorServer();
176 * @copydoc Dali::Toolkit::WebView::ScrollBy()
178 void ScrollBy(int32_t deltaX, int32_t deltaY);
181 * @copydoc Dali::WebEngine::ScrollEdgeBy()
183 bool ScrollEdgeBy(int32_t deltaX, int32_t deltaY);
186 * @copydoc Dali::Toolkit::WebView::CanGoForward()
191 * @copydoc Dali::Toolkit::WebView::GoForward()
196 * @copydoc Dali::Toolkit::WebView::CanGoBack()
201 * @copydoc Dali::Toolkit::WebView::GoBack()
206 * @copydoc Dali::Toolkit::WebView::EvaluateJavaScript()
208 void EvaluateJavaScript(const std::string& script, std::function<void(const std::string&)> resultHandler);
211 * @copydoc Dali::Toolkit::WebView::AddJavaScriptMessageHandler()
213 void AddJavaScriptMessageHandler(const std::string& exposedObjectName, std::function<void(const std::string&)> handler);
216 * @copydoc Dali::Toolkit::WebView::RegisterJavaScriptAlertCallback()
218 void RegisterJavaScriptAlertCallback(Dali::WebEnginePlugin::JavaScriptAlertCallback callback);
221 * @copydoc Dali::Toolkit::WebView::JavaScriptAlertReply()
223 void JavaScriptAlertReply();
226 * @copydoc Dali::Toolkit::WebView::RegisterJavaScriptConfirmCallback()
228 void RegisterJavaScriptConfirmCallback(Dali::WebEnginePlugin::JavaScriptConfirmCallback callback);
231 * @copydoc Dali::Toolkit::WebView::JavaScriptConfirmReply()
233 void JavaScriptConfirmReply(bool confirmed);
236 * @copydoc Dali::Toolkit::WebView::RegisterJavaScriptPromptCallback()
238 void RegisterJavaScriptPromptCallback(Dali::WebEnginePlugin::JavaScriptPromptCallback callback);
241 * @copydoc Dali::Toolkit::WebView::JavaScriptPromptReply()
243 void JavaScriptPromptReply(const std::string& result);
246 * @copydoc Dali::Toolkit::WebView::CreateHitTest()
248 std::unique_ptr<Dali::WebEngineHitTest> CreateHitTest(int32_t x, int32_t y, Dali::WebEngineHitTest::HitTestMode mode);
251 * @copydoc Dali::Toolkit::WebView::CreateHitTestAsynchronously()
253 bool CreateHitTestAsynchronously(int32_t x, int32_t y, Dali::WebEngineHitTest::HitTestMode mode, Dali::WebEnginePlugin::WebEngineHitTestCreatedCallback callback);
256 * @copydoc Dali::Toolkit::WebView::ClearHistory()
261 * @copydoc Dali::Toolkit::WebView::ClearAllTilesResources()
263 void ClearAllTilesResources();
266 * @copydoc Dali::Toolkit::WebView::SetScaleFactor()
268 void SetScaleFactor(float scaleFactor, Dali::Vector2 point);
271 * @copydoc Dali::Toolkit::WebView::GetScaleFactor()
273 float GetScaleFactor() const;
276 * @copydoc Dali::Toolkit::WebView::ActivateAccessibility()
278 void ActivateAccessibility(bool activated);
281 * @copydoc Dali::Toolkit::WebView::HighlightText()
283 bool HighlightText(const std::string& text, Dali::WebEnginePlugin::FindOption options, uint32_t maxMatchCount);
286 * @copydoc Dali::Toolkit::WebView::AddDynamicCertificatePath()
288 void AddDynamicCertificatePath(const std::string& host, const std::string& certPath);
291 * @copydoc Dali::Toolkit::WebView::GetScreenshot()
293 Dali::Toolkit::ImageView GetScreenshot(Dali::Rect<int32_t> viewArea, float scaleFactor);
296 * @copydoc Dali::Toolkit::WebView::GetScreenshotAsynchronously()
298 bool GetScreenshotAsynchronously(Dali::Rect<int32_t> viewArea, float scaleFactor, Dali::Toolkit::WebView::WebViewScreenshotCapturedCallback callback);
301 * @copydoc Dali::Toolkit::WebView::CheckVideoPlayingAsynchronously()
303 bool CheckVideoPlayingAsynchronously(Dali::WebEnginePlugin::VideoPlayingCallback callback);
306 * @copydoc Dali::Toolkit::WebView::RegisterGeolocationPermissionCallback()
308 void RegisterGeolocationPermissionCallback(Dali::WebEnginePlugin::GeolocationPermissionCallback callback);
311 * @copydoc Dali::Toolkit::WebView::PageLoadStartedSignal()
313 Dali::Toolkit::WebView::WebViewPageLoadSignalType& PageLoadStartedSignal();
316 * @copydoc Dali::Toolkit::WebView::PageLoadInProgressSignal()
318 Dali::Toolkit::WebView::WebViewPageLoadSignalType& PageLoadInProgressSignal();
321 * @copydoc Dali::Toolkit::WebView::PageLoadFinishedSignal()
323 Dali::Toolkit::WebView::WebViewPageLoadSignalType& PageLoadFinishedSignal();
326 * @copydoc Dali::Toolkit::WebView::PageLoadErrorSignal()
328 Dali::Toolkit::WebView::WebViewPageLoadErrorSignalType& PageLoadErrorSignal();
331 * @copydoc Dali::Toolkit::WebView::ScrollEdgeReachedSignal()
333 Dali::Toolkit::WebView::WebViewScrollEdgeReachedSignalType& ScrollEdgeReachedSignal();
336 * @copydoc Dali::Toolkit::WebView::UrlChangedSignal()
338 Dali::Toolkit::WebView::WebViewUrlChangedSignalType& UrlChangedSignal();
341 * @copydoc Dali::Toolkit::WebView::FormRepostDecisionSignal()
343 Dali::Toolkit::WebView::WebViewFormRepostDecisionSignalType& FormRepostDecisionSignal();
346 * @copydoc Dali::Toolkit::WebView::FrameRenderedSignal()
348 Dali::Toolkit::WebView::WebViewFrameRenderedSignalType& FrameRenderedSignal();
351 * @copydoc Dali::Toolkit::WebView::RequestInterceptorSignal()
353 Dali::Toolkit::WebView::WebViewRequestInterceptorSignalType& RequestInterceptorSignal();
356 * @copydoc Dali::Toolkit::WebView::ConsoleMessageSignal()
358 Dali::Toolkit::WebView::WebViewConsoleMessageSignalType& ConsoleMessageSignal();
361 * @copydoc Dali::Toolkit::WebView::ResponsePolicyDecisionSignal()
363 Dali::Toolkit::WebView::WebViewResponsePolicyDecisionSignalType& ResponsePolicyDecisionSignal();
366 * @copydoc Dali::Toolkit::WebView::CertificateConfirmSignal()
368 Dali::Toolkit::WebView::WebViewCertificateSignalType& CertificateConfirmSignal();
371 * @copydoc Dali::Toolkit::WebView::SslCertificateChangedSignal()
373 Dali::Toolkit::WebView::WebViewCertificateSignalType& SslCertificateChangedSignal();
376 * @copydoc Dali::Toolkit::WebView::HttpAuthHandlerSignal()
378 Dali::Toolkit::WebView::WebViewHttpAuthHandlerSignalType& HttpAuthHandlerSignal();
381 * @copydoc Dali::Toolkit::WebView::ContextMenuShownSignal()
383 Dali::Toolkit::WebView::WebViewContextMenuShownSignalType& ContextMenuShownSignal();
386 * @copydoc Dali::Toolkit::WebView::ContextMenuHiddenSignal()
388 Dali::Toolkit::WebView::WebViewContextMenuHiddenSignalType& ContextMenuHiddenSignal();
390 public: // Properties
392 * @brief Called when a property of an object of this type is set.
394 * @param[in] object The object whose property is set.
395 * @param[in] index The property index.
396 * @param[in] value The new property value.
398 static void SetProperty(Dali::BaseObject* object, Dali::Property::Index index, const Dali::Property::Value& value);
401 * @brief Called to retrieve a property of an object of this type.
403 * @param[in] object The object whose property is to be retrieved.
404 * @param[in] index The property index.
405 * @return The current value of the property.
407 static Dali::Property::Value GetProperty(Dali::BaseObject* object, Dali::Property::Index propertyIndex);
410 * Connects a callback function with the object's signals.
411 * @param[in] object The object providing the signal.
412 * @param[in] tracker Used to disconnect the signal.
413 * @param[in] signalName The signal to connect to.
414 * @param[in] functor A newly allocated FunctorDelegate.
415 * @return True if the signal was connected.
416 * @post If a signal was connected, ownership of functor was passed to CallbackBase. Otherwise the c
418 static bool DoConnectSignal(BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor);
420 private: // From Control
422 * @copydoc Toolkit::Control::OnInitialize()
424 void OnInitialize() override;
427 * @copydoc Toolkit::Control::GetNaturalSize
429 Vector3 GetNaturalSize() override;
432 * @copydoc Toolkit::Control::OnKeyEvent()
434 bool OnKeyEvent(const Dali::KeyEvent& event) override;
437 * @copydoc Toolkit::Control::OnKeyInputFocusGained()
439 void OnKeyInputFocusGained() override;
442 * @copydoc Toolkit::Control::OnKeyInputFocusLost()
444 void OnKeyInputFocusLost() override;
447 * @copydoc Toolkit::Control::OnSceneConnection()
449 void OnSceneConnection(int depth) override;
453 WebView(const WebView& webView);
455 WebView& operator=(const WebView& webView);
458 * @brief Set an absolute scroll of the given view.
459 * @param[in] x The coordinate x of scroll
460 * @param[in] y The coordinate y of scroll
462 void SetScrollPosition(int32_t x, int32_t y);
465 * @brief Get the current scroll position of the given view.
466 * @param[out] x The coordinate x of scroll
467 * @param[out] y The coordinate y of scroll
469 Dali::Vector2 GetScrollPosition() const;
472 * @brief Get the possible scroll size of the given view.
473 * @param[out] width The width of scroll size
474 * @param[out] height The height of scroll size
476 Dali::Vector2 GetScrollSize() const;
479 * @brief Get the last known content's size.
480 * @param[out] width The width of content's size
481 * @param[out] height The height of content's size
483 Dali::Vector2 GetContentSize() const;
486 * @brief Return the title of the Web.
488 * @return The title of web page
490 std::string GetTitle() const;
493 * @brief Set the background color of web page.
494 * @param[in] color The value of background color.
496 void SetDocumentBackgroundColor(Dali::Vector4 color);
499 * @brief Clear tiles when hidden.
501 * @param[in] cleared Whether tiles are cleared or not
503 void ClearTilesWhenHidden(bool cleared);
506 * @brief Set multiplier of cover area of tile.
508 * @param[in] multiplier The multiplier of cover area
510 void SetTileCoverAreaMultiplier(float multiplier);
513 * @brief Enable cursor by client.
514 * @param[in] enabled Whether cursor is enabled or not.
516 void EnableCursorByClient(bool enabled);
519 * @brief Get the selected text.
520 * @return The selected text
522 std::string GetSelectedText() const;
525 * @brief Get url of web page.
526 * @return The string of url
528 std::string GetUrl() const;
531 * @brief Get user agent string.
532 * @return The string value of user agent
534 std::string GetUserAgent() const;
537 * @brief Set user agent string.
538 * @param[in] userAgent The string value of user agent
540 void SetUserAgent(const std::string& userAgent);
543 * @brief Set zoom factor of the current page.
544 * @param[in] zoomFactor a new factor to be set.
546 void SetPageZoomFactor(float zoomFactor);
549 * @brief Query the current zoom factor of the page。
550 * @return The current page zoom factor.
552 float GetPageZoomFactor() const;
555 * @brief Set the current text zoom level。.
556 * @param[in] zoomFactor a new factor to be set.
558 void SetTextZoomFactor(float zoomFactor);
561 * @brief Get the current text zoom level.
562 * @return The current text zoom factor.
564 float GetTextZoomFactor() const;
567 * @brief Get the current load progress of the page.
568 * @return The load progress of the page.
570 float GetLoadProgressPercentage() const;
573 * @brief Request to set the current page's visibility.
574 * @param[in] visible Visible or not.
576 * @return true if succeeded, false otherwise
578 bool SetVisibility(bool visible);
581 * @brief Update display area of web view.
582 * @param[in] source The soource triggers Notification.
584 void UpdateDisplayArea(Dali::PropertyNotification& source);
587 * @brief Enable/Disable video hole for video playing.
588 * @param[in] enabled True if video hole is enabled, false otherwise.
590 void EnableVideoHole(bool enabled);
593 * @brief Enable blend mode.
594 * @param[in] blendEnabled True if turn on blend mode, false otherwise.
596 void EnableBlendMode(bool blendEnabled);
599 * @brief Enable/disable mouse events. The default is enabled.
601 * @param[in] enabled True if mouse events are enabled, false otherwise
603 void EnableMouseEvents(bool enabled);
606 * @brief Enable/disable key events. The default is enabled.
608 * @param[in] enabled True if key events enabled, false otherwise
610 void EnableKeyEvents(bool enabled);
613 * @brief Create image view by pixel data.
614 * @param[in] pixel Pixel data
615 * @return The new image view
617 Dali::Toolkit::ImageView CreateImageView(Dali::PixelData pixel) const;
620 * @brief Callback function to be called when page load started.
621 * @param[in] url The url currently being loaded
623 void OnPageLoadStarted(const std::string& url);
626 * @brief Callback function to be called when page is loading in progress.
627 * @param[in] url The url currently being loaded
629 void OnPageLoadInProgress(const std::string& url);
632 * @brief Callback function to be called when page load finished.
633 * @param[in] url The url currently being loaded
635 void OnPageLoadFinished(const std::string& url);
638 * @brief Callback function to be called when there is an error in page loading.
639 * @param[in] url The url currently being loaded
640 * @param[in] errorCode The error code
642 void OnPageLoadError(std::shared_ptr<Dali::WebEngineLoadError> error);
645 * @brief Callback function to be called when scroll edge is reached.
646 * @param[in] edge The scroll edge reached.
648 void OnScrollEdgeReached(Dali::WebEnginePlugin::ScrollEdge edge);
651 * @brief Callback function to be called when url is changed.
652 * @param[in] url The url currently being loaded
654 void OnUrlChanged(const std::string& url);
657 * @brief Signal occurs when the Web View has been touched.
658 * @param[in] actor The Actor Touched
659 * @param[in] touch The Touch Data.
660 * @return Whether to consume event or not.
662 bool OnTouchEvent(Actor actor, const Dali::TouchEvent& touch);
665 * @brief Signal occurs when the Web View has been hovered.
666 * @param[in] actor The Actor Hovered
667 * @param[in] hover The Hover Data.
668 * @return Whether to consume event or not.
670 bool OnHoverEvent(Actor actor, const Dali::HoverEvent& hover);
673 * @brief Signal occurs when the Web View receives wheel event.
674 * @param[in] actor The Actor that receives Wheel event.
675 * @param[in] wheel The Wheel Data.
676 * @return Whether to consume event or not.
678 bool OnWheelEvent(Actor actor, const Dali::WheelEvent& wheel);
681 * @brief Callback function to be called when form repost decision need be checked.
682 * @param[in] decision The new decision for form repost
684 void OnFormRepostDecision(std::shared_ptr<Dali::WebEngineFormRepostDecision> decision);
687 * @brief Callback function to be called when frame is rendered.
689 void OnFrameRendered();
692 * @brief Callback function to be called when frame is rendered. This is to check initial buffer is ready.
694 void OnInitialFrameRendered();
697 * @brief Callback function to be called when visibility is changed.
698 * @param[in] actor The actor, or child of actor, whose visibility has changed
699 * @param[in] isVisible Whether the actor is now visible or not
700 * @param[in] type, Whether the actor's visible property has changed or a parent's
702 void OnVisibilityChanged(Actor actor, bool isVisible, Dali::DevelActor::VisibilityChange::Type type);
705 * @brief callback for screen shot captured.
706 * @param[in] pixel Pixel data of screen shot.
708 void OnScreenshotCaptured(Dali::PixelData pixel);
711 * @brief Callback function to be called when http request need be intercepted.
712 * @param [in] request The http request interceptor.
714 void OnInterceptRequest(std::shared_ptr<Dali::WebEngineRequestInterceptor> interceptor);
717 * @brief Callback function to be called when console message will be logged.
718 * @param[in] message The message logged.
720 void OnConsoleMessage(std::shared_ptr<Dali::WebEngineConsoleMessage> message);
723 * @brief Callback function to be called when response policy need be decided.
724 * @param[in] decision The policy decided.
726 void OnResponsePolicyDecided(std::shared_ptr<Dali::WebEnginePolicyDecision> decision);
729 * @brief Callback function to be called when certificate need be confirmed.
730 * @param[in] certificate The certificate policy decision.
732 void OnCertificateConfirm(std::shared_ptr<Dali::WebEngineCertificate> certificate);
735 * @brief Callback function to be called when ssl certificate is changed.
736 * @param[in] certificate The certificate information received.
738 void OnSslCertificateChanged(std::shared_ptr<Dali::WebEngineCertificate> certificate);
741 * @brief Callback function to be called when http authentication need be confirmed.
742 * @param[in] handler The handler for http authentication
744 void OnHttpAuthenticationRequest(std::shared_ptr<Dali::WebEngineHttpAuthHandler> handler);
747 * @brief Callback function to be called when context menu would be shown.
748 * @param[in] e The scroll edge reached.
750 void OnContextMenuShown(std::shared_ptr<Dali::WebEngineContextMenu> menu);
753 * @brief Callback function to be called when context menu would be hidden.
754 * @param[in] url The url currently being loaded
756 void OnContextMenuHidden(std::shared_ptr<Dali::WebEngineContextMenu> menu);
759 Dali::Toolkit::Visual::Base mVisual;
760 Dali::Size mWebViewSize;
761 Dali::WebEngine mWebEngine;
763 Dali::Toolkit::WebView::WebViewPageLoadSignalType mPageLoadStartedSignal;
764 Dali::Toolkit::WebView::WebViewPageLoadSignalType mPageLoadInProgressSignal;
765 Dali::Toolkit::WebView::WebViewPageLoadSignalType mPageLoadFinishedSignal;
766 Dali::Toolkit::WebView::WebViewPageLoadErrorSignalType mPageLoadErrorSignal;
767 Dali::Toolkit::WebView::WebViewUrlChangedSignalType mUrlChangedSignal;
768 Dali::Toolkit::WebView::WebViewScrollEdgeReachedSignalType mScrollEdgeReachedSignal;
769 Dali::Toolkit::WebView::WebViewFormRepostDecisionSignalType mFormRepostDecisionSignal;
770 Dali::Toolkit::WebView::WebViewFrameRenderedSignalType mFrameRenderedSignal;
771 Dali::Toolkit::WebView::WebViewRequestInterceptorSignalType mRequestInterceptorSignal;
772 Dali::Toolkit::WebView::WebViewConsoleMessageSignalType mConsoleMessageSignal;
773 Dali::Toolkit::WebView::WebViewResponsePolicyDecisionSignalType mResponsePolicyDecisionSignal;
774 Dali::Toolkit::WebView::WebViewCertificateSignalType mCertificateConfirmSignal;
775 Dali::Toolkit::WebView::WebViewCertificateSignalType mSslCertificateChangedSignal;
776 Dali::Toolkit::WebView::WebViewHttpAuthHandlerSignalType mHttpAuthHandlerSignal;
777 Dali::Toolkit::WebView::WebViewContextMenuShownSignalType mContextMenuShownSignal;
778 Dali::Toolkit::WebView::WebViewContextMenuHiddenSignalType mContextMenuHiddenSignal;
780 std::unique_ptr<Dali::Toolkit::WebContext> mWebContext;
781 std::unique_ptr<Dali::Toolkit::WebCookieManager> mWebCookieManager;
782 std::unique_ptr<Dali::Toolkit::WebSettings> mWebSettings;
783 std::unique_ptr<Dali::Toolkit::WebBackForwardList> mWebBackForwardList;
785 Dali::PropertyNotification mPositionUpdateNotification;
786 Dali::PropertyNotification mSizeUpdateNotification;
787 Dali::PropertyNotification mScaleUpdateNotification;
788 Dali::Rect<int32_t> mWebViewArea;
789 bool mVideoHoleEnabled;
790 bool mMouseEventsEnabled;
791 bool mKeyEventsEnabled;
793 Dali::Toolkit::WebView::WebViewScreenshotCapturedCallback mScreenshotCapturedCallback;
796 } // namespace Internal
798 inline Toolkit::Internal::WebView& GetImpl(Toolkit::WebView& handle)
800 DALI_ASSERT_ALWAYS(handle);
801 Dali::RefObject& impl = handle.GetImplementation();
802 return static_cast<Toolkit::Internal::WebView&>(impl);
805 inline const Toolkit::Internal::WebView& GetImpl(const Toolkit::WebView& handle)
807 DALI_ASSERT_ALWAYS(handle);
808 const Dali::RefObject& impl = handle.GetImplementation();
809 return static_cast<const Toolkit::Internal::WebView&>(impl);
812 } // namespace Toolkit
816 #endif // DALI_TOOLKIT_INTERNAL_WEB_VIEW_H