projects
/
platform
/
core
/
uifw
/
dali-adaptor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add some new APIs into web engine.
[platform/core/uifw/dali-adaptor.git]
/
dali
/
internal
/
web-engine
/
common
/
web-engine-impl.h
diff --git
a/dali/internal/web-engine/common/web-engine-impl.h
b/dali/internal/web-engine/common/web-engine-impl.h
old mode 100644
(file)
new mode 100755
(executable)
index
bf64b23
..
a2a6571
--- a/
dali/internal/web-engine/common/web-engine-impl.h
+++ b/
dali/internal/web-engine/common/web-engine-impl.h
@@
-2,7
+2,7
@@
#define DALI_WEB_ENGINE_IMPL_H
/*
#define DALI_WEB_ENGINE_IMPL_H
/*
- * Copyright (c) 20
18
Samsung Electronics Co., Ltd.
+ * Copyright (c) 20
20
Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-28,6
+28,12
@@
namespace Dali
{
namespace Dali
{
+// forward declaration
+class WebEngineBackForwardList;
+class WebEngineContext;
+class WebEngineCookieManager;
+class WebEngineSettings;
+
namespace Internal
{
namespace Internal
{
@@
-58,6
+64,11
@@
public:
void Create( int width, int height, const std::string& locale, const std::string& timezoneId );
/**
void Create( int width, int height, const std::string& locale, const std::string& timezoneId );
/**
+ * @copydoc Dali::WebEngine::Create()
+ */
+ void Create( int width, int height, int argc, char** argv );
+
+ /**
* @copydoc Dali::WebEngine::Destroy()
*/
void Destroy();
* @copydoc Dali::WebEngine::Destroy()
*/
void Destroy();
@@
-68,154
+79,144
@@
public:
Dali::NativeImageInterfacePtr GetNativeImageSource();
/**
Dali::NativeImageInterfacePtr GetNativeImageSource();
/**
- * @copydoc Dali::WebEngine::LoadUrl()
- */
- void LoadUrl( const std::string& url );
-
- /**
- * @copydoc Dali::WebEngine::GetUrl()
+ * @copydoc Dali::WebEngine::GetSettings()
*/
*/
-
const std::string& GetUrl()
;
+
Dali::WebEngineSettings& GetSettings() const
;
/**
/**
- * @copydoc Dali::WebEngine::
LoadHTMLString
()
+ * @copydoc Dali::WebEngine::
GetContext
()
*/
*/
-
void LoadHTMLString( const std::string& htmlString )
;
+
Dali::WebEngineContext& GetContext() const
;
/**
/**
- * @copydoc Dali::WebEngine::
Reload
()
+ * @copydoc Dali::WebEngine::
GetCookieManager
()
*/
*/
-
void Reload()
;
+
Dali::WebEngineCookieManager& GetCookieManager() const
;
/**
/**
- * @copydoc Dali::WebEngine::
StopLoading
()
+ * @copydoc Dali::WebEngine::
GetBackForwardList
()
*/
*/
-
void StopLoading()
;
+
Dali::WebEngineBackForwardList& GetBackForwardList() const
;
/**
/**
- * @copydoc Dali::WebEngine::Suspend()
- */
- void Suspend();
-
- /**
- * @copydoc Dali::WebEngine::Resume()
+ * @copydoc Dali::WebEngine::LoadUrl()
*/
*/
- void
Resume(
);
+ void
LoadUrl( const std::string& url
);
/**
/**
- * @copydoc Dali::WebEngine::
CanGoForward
()
+ * @copydoc Dali::WebEngine::
GetTitle
()
*/
*/
-
bool CanGoForward()
;
+
std::string GetTitle() const
;
/**
/**
- * @copydoc Dali::WebEngine::G
oForward
()
+ * @copydoc Dali::WebEngine::G
etFavicon
()
*/
*/
-
void GoForward()
;
+
Dali::PixelData GetFavicon() const
;
/**
/**
- * @copydoc Dali::WebEngine::
CanGoBack
()
+ * @copydoc Dali::WebEngine::
GetUrl
()
*/
*/
-
bool CanGoBack
();
+
const std::string& GetUrl
();
/**
/**
- * @copydoc Dali::WebEngine::G
oBack
()
+ * @copydoc Dali::WebEngine::G
etUserAgent
()
*/
*/
-
void GoBack()
;
+
const std::string& GetUserAgent() const
;
/**
/**
- * @copydoc Dali::WebEngine::
EvaluateJavaScrip
t()
+ * @copydoc Dali::WebEngine::
SetUserAgen
t()
*/
*/
- void
EvaluateJavaScript( const std::string& script, std::function< void(const std::string&) > resultHandler
);
+ void
SetUserAgent( const std::string& userAgent
);
/**
/**
- * @copydoc Dali::WebEngine::
AddJavaScriptMessageHandler
()
+ * @copydoc Dali::WebEngine::
LoadHtmlString
()
*/
*/
- void
AddJavaScriptMessageHandler( const std::string& exposedObjectName, std::function< void(const std::string&) > handler
);
+ void
LoadHtmlString( const std::string& htmlString
);
/**
/**
- * @copydoc Dali::WebEngine::
ClearHistory
()
+ * @copydoc Dali::WebEngine::
Reload
()
*/
*/
- void
ClearHistory
();
+ void
Reload
();
/**
/**
- * @copydoc Dali::WebEngine::
ClearCache
()
+ * @copydoc Dali::WebEngine::
StopLoading
()
*/
*/
- void
ClearCache
();
+ void
StopLoading
();
/**
/**
- * @copydoc Dali::WebEngine::
ClearCookies
()
+ * @copydoc Dali::WebEngine::
Suspend
()
*/
*/
- void
ClearCookies
();
+ void
Suspend
();
/**
/**
- * @copydoc Dali::WebEngine::
GetCacheModel
()
+ * @copydoc Dali::WebEngine::
Resume
()
*/
*/
-
Dali::WebEnginePlugin::CacheModel GetCacheModel() const
;
+
void Resume()
;
/**
/**
- * @copydoc Dali::WebEngine::S
etCacheModel
()
+ * @copydoc Dali::WebEngine::S
crollBy
()
*/
*/
- void S
etCacheModel( Dali::WebEnginePlugin::CacheModel cacheModel
);
+ void S
crollBy( int deltaX, int deltaY
);
/**
/**
- * @copydoc Dali::WebEngine::
GetCookieAcceptPolicy
()
+ * @copydoc Dali::WebEngine::
SetScrollPosition
()
*/
*/
-
Dali::WebEnginePlugin::CookieAcceptPolicy GetCookieAcceptPolicy() const
;
+
void SetScrollPosition( int x, int y )
;
/**
/**
- * @copydoc Dali::WebEngine::
SetCookieAcceptPolicy
()
+ * @copydoc Dali::WebEngine::
GetScrollPosition
()
*/
*/
- void
SetCookieAcceptPolicy( Dali::WebEnginePlugin::CookieAcceptPolicy policy )
;
+ void
GetScrollPosition( int& x, int& y ) const
;
/**
/**
- * @copydoc Dali::WebEngine::Get
UserAgent
()
+ * @copydoc Dali::WebEngine::Get
ScrollSize
()
*/
*/
-
const std::string& GetUserAgent(
) const;
+
void GetScrollSize( int& width, int& height
) const;
/**
/**
- * @copydoc Dali::WebEngine::
SetUserAgent
()
+ * @copydoc Dali::WebEngine::
GetContentSize
()
*/
*/
- void
SetUserAgent( const std::string& userAgent )
;
+ void
GetContentSize( int& width, int& height ) const
;
/**
/**
- * @copydoc Dali::WebEngine::
IsJavaScriptEnable
d()
+ * @copydoc Dali::WebEngine::
CanGoForwar
d()
*/
*/
- bool
IsJavaScriptEnabled() const
;
+ bool
CanGoForward()
;
/**
/**
- * @copydoc Dali::WebEngine::
EnableJavaScript
()
+ * @copydoc Dali::WebEngine::
GoForward
()
*/
*/
- void
EnableJavaScript( bool enabled
);
+ void
GoForward(
);
/**
/**
- * @copydoc Dali::WebEngine::
AreImagesAutomaticallyLoaded
()
+ * @copydoc Dali::WebEngine::
CanGoBack
()
*/
*/
- bool
AreImagesAutomaticallyLoaded() const
;
+ bool
CanGoBack()
;
/**
/**
- * @copydoc Dali::WebEngine::
LoadImagesAutomatically
()
+ * @copydoc Dali::WebEngine::
GoBack
()
*/
*/
- void
LoadImagesAutomatically( bool automatic
);
+ void
GoBack(
);
/**
/**
- * @copydoc Dali::WebEngine::
GetDefaultTextEncodingName
()
+ * @copydoc Dali::WebEngine::
EvaluateJavaScript
()
*/
*/
-
const std::string& GetDefaultTextEncodingName() const
;
+
void EvaluateJavaScript( const std::string& script, std::function< void(const std::string&) > resultHandler )
;
/**
/**
- * @copydoc Dali::WebEngine::
SetDefaultTextEncodingName
()
+ * @copydoc Dali::WebEngine::
AddJavaScriptMessageHandler
()
*/
*/
- void
SetDefaultTextEncodingName( const std::string& defaultTextEncodingName
);
+ void
AddJavaScriptMessageHandler( const std::string& exposedObjectName, std::function< void(const std::string&) > handler
);
/**
/**
- * @copydoc Dali::WebEngine::
GetDefaultFontSize
()
+ * @copydoc Dali::WebEngine::
ClearAllTilesResources
()
*/
*/
-
int GetDefaultFontSize() const
;
+
void ClearAllTilesResources()
;
/**
/**
- * @copydoc Dali::WebEngine::
SetDefaultFontSize
()
+ * @copydoc Dali::WebEngine::
ClearHistory
()
*/
*/
- void
SetDefaultFontSize( int defaultFontSize
);
+ void
ClearHistory(
);
/**
* @copydoc Dali::WebEngine::SetSize()
/**
* @copydoc Dali::WebEngine::SetSize()
@@
-225,7
+226,7
@@
public:
/**
* @copydoc Dali::WebEngine::SendTouchEvent()
*/
/**
* @copydoc Dali::WebEngine::SendTouchEvent()
*/
- bool SendTouchEvent( const Dali::Touch
Data
& touch );
+ bool SendTouchEvent( const Dali::Touch
Event
& touch );
/**
* @copydoc Dali::WebEngine::SendKeyEvent()
/**
* @copydoc Dali::WebEngine::SendKeyEvent()
@@
-233,6
+234,11
@@
public:
bool SendKeyEvent( const Dali::KeyEvent& event );
/**
bool SendKeyEvent( const Dali::KeyEvent& event );
/**
+ * @copydoc Dali::WebEngine::SetFocus()
+ */
+ void SetFocus( bool focused );
+
+ /**
* @copydoc Dali::WebEngine::PageLoadStartedSignal()
*/
Dali::WebEnginePlugin::WebEnginePageLoadSignalType& PageLoadStartedSignal();
* @copydoc Dali::WebEngine::PageLoadStartedSignal()
*/
Dali::WebEnginePlugin::WebEnginePageLoadSignalType& PageLoadStartedSignal();
@@
-247,6
+253,11
@@
public:
*/
Dali::WebEnginePlugin::WebEnginePageLoadErrorSignalType& PageLoadErrorSignal();
*/
Dali::WebEnginePlugin::WebEnginePageLoadErrorSignalType& PageLoadErrorSignal();
+ /**
+ * @copydoc Dali::WebEngine::ScrollEdgeReachedSignal()
+ */
+ Dali::WebEnginePlugin::WebEngineScrollEdgeReachedSignalType& ScrollEdgeReachedSignal();
+
private:
/**
private:
/**