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
Update position & size of 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
..
c4bac08
--- 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,169
+79,174
@@
public:
Dali::NativeImageInterfacePtr GetNativeImageSource();
/**
Dali::NativeImageInterfacePtr GetNativeImageSource();
/**
- * @copydoc Dali::WebEngine::
LoadUrl
()
+ * @copydoc Dali::WebEngine::
GetSettings
()
*/
*/
-
void LoadUrl( const std::string& url )
;
+
Dali::WebEngineSettings& GetSettings() const
;
/**
/**
- * @copydoc Dali::WebEngine::Get
Url
()
+ * @copydoc Dali::WebEngine::Get
Context
()
*/
*/
-
const std::string& GetUrl()
;
+
Dali::WebEngineContext& GetContext() const
;
/**
/**
- * @copydoc Dali::WebEngine::
LoadHTMLString
()
+ * @copydoc Dali::WebEngine::
GetCookieManager
()
*/
*/
-
void LoadHTMLString( const std::string& htmlString )
;
+
Dali::WebEngineCookieManager& GetCookieManager() const
;
/**
/**
- * @copydoc Dali::WebEngine::
Reload
()
+ * @copydoc Dali::WebEngine::
GetBackForwardList
()
*/
*/
-
void Reload()
;
+
Dali::WebEngineBackForwardList& GetBackForwardList() const
;
/**
/**
- * @copydoc Dali::WebEngine::
StopLoading
()
+ * @copydoc Dali::WebEngine::
LoadUrl
()
*/
*/
- void
StopLoading(
);
+ void
LoadUrl( const std::string& url
);
/**
/**
- * @copydoc Dali::WebEngine::
Suspend
()
+ * @copydoc Dali::WebEngine::
GetTitle
()
*/
*/
-
void Suspend()
;
+
std::string GetTitle() const
;
/**
/**
- * @copydoc Dali::WebEngine::
Resume
()
+ * @copydoc Dali::WebEngine::
GetFavicon
()
*/
*/
-
void Resume()
;
+
Dali::PixelData GetFavicon() const
;
/**
/**
- * @copydoc Dali::WebEngine::
CanGoForward
()
+ * @copydoc Dali::WebEngine::
GetUrl
()
*/
*/
-
bool CanGoForward
();
+
const std::string& GetUrl
();
/**
/**
- * @copydoc Dali::WebEngine::G
oForward
()
+ * @copydoc Dali::WebEngine::G
etUserAgent
()
*/
*/
-
void GoForward()
;
+
const std::string& GetUserAgent() const
;
/**
/**
- * @copydoc Dali::WebEngine::
CanGoBack
()
+ * @copydoc Dali::WebEngine::
SetUserAgent
()
*/
*/
-
bool CanGoBack(
);
+
void SetUserAgent( const std::string& userAgent
);
/**
/**
- * @copydoc Dali::WebEngine::
GoBack
()
+ * @copydoc Dali::WebEngine::
LoadHtmlString
()
*/
*/
- void
GoBack(
);
+ void
LoadHtmlString( const std::string& htmlString
);
/**
/**
- * @copydoc Dali::WebEngine::
EvaluateJavaScript
()
+ * @copydoc Dali::WebEngine::
Reload
()
*/
*/
- void
EvaluateJavaScript( const std::string& script, std::function< void(const std::string&) > resultHandler
);
+ void
Reload(
);
/**
/**
- * @copydoc Dali::WebEngine::
AddJavaScriptMessageHandler
()
+ * @copydoc Dali::WebEngine::
StopLoading
()
*/
*/
- void
AddJavaScriptMessageHandler( const std::string& exposedObjectName, std::function< void(const std::string&) > handler
);
+ void
StopLoading(
);
/**
/**
- * @copydoc Dali::WebEngine::
ClearHistory
()
+ * @copydoc Dali::WebEngine::
Suspend
()
*/
*/
- void
ClearHistory
();
+ void
Suspend
();
/**
/**
- * @copydoc Dali::WebEngine::
ClearCach
e()
+ * @copydoc Dali::WebEngine::
Resum
e()
*/
*/
- void
ClearCach
e();
+ void
Resum
e();
/**
/**
- * @copydoc Dali::WebEngine::
ClearCookies
()
+ * @copydoc Dali::WebEngine::
ScrollBy
()
*/
*/
- void
ClearCookies(
);
+ void
ScrollBy( int deltaX, int deltaY
);
/**
/**
- * @copydoc Dali::WebEngine::
GetCacheModel
()
+ * @copydoc Dali::WebEngine::
SetScrollPosition
()
*/
*/
-
Dali::WebEnginePlugin::CacheModel GetCacheModel() const
;
+
void SetScrollPosition( int x, int y )
;
/**
/**
- * @copydoc Dali::WebEngine::
SetCacheModel
()
+ * @copydoc Dali::WebEngine::
GetScrollPosition
()
*/
*/
-
void SetCacheModel( Dali::WebEnginePlugin::CacheModel cacheModel )
;
+
Dali::Vector2 GetScrollPosition() const
;
/**
/**
- * @copydoc Dali::WebEngine::Get
CookieAcceptPolicy
()
+ * @copydoc Dali::WebEngine::Get
ScrollSize
()
*/
*/
- Dali::
WebEnginePlugin::CookieAcceptPolicy GetCookieAcceptPolicy
() const;
+ Dali::
Vector2 GetScrollSize
() const;
/**
/**
- * @copydoc Dali::WebEngine::
SetCookieAcceptPolicy
()
+ * @copydoc Dali::WebEngine::
GetContentSize
()
*/
*/
-
void SetCookieAcceptPolicy( Dali::WebEnginePlugin::CookieAcceptPolicy policy )
;
+
Dali::Vector2 GetContentSize() const
;
/**
/**
- * @copydoc Dali::WebEngine::
GetUserAgent
()
+ * @copydoc Dali::WebEngine::
CanGoForward
()
*/
*/
-
const std::string& GetUserAgent() const
;
+
bool CanGoForward()
;
/**
/**
- * @copydoc Dali::WebEngine::
SetUserAgent
()
+ * @copydoc Dali::WebEngine::
GoForward
()
*/
*/
- void SetUserAgent( const std::string& userAgent );
+ void GoForward();
+
+ /**
+ * @copydoc Dali::WebEngine::CanGoBack()
+ */
+ bool CanGoBack();
/**
/**
- * @copydoc Dali::WebEngine::
IsJavaScriptEnabled
()
+ * @copydoc Dali::WebEngine::
GoBack
()
*/
*/
-
bool IsJavaScriptEnabled() const
;
+
void GoBack()
;
/**
/**
- * @copydoc Dali::WebEngine::E
nabl
eJavaScript()
+ * @copydoc Dali::WebEngine::E
valuat
eJavaScript()
*/
*/
- void E
nableJavaScript( bool enabled
);
+ void E
valuateJavaScript( const std::string& script, std::function< void(const std::string&) > resultHandler
);
/**
/**
- * @copydoc Dali::WebEngine::A
reImagesAutomaticallyLoaded
()
+ * @copydoc Dali::WebEngine::A
ddJavaScriptMessageHandler
()
*/
*/
-
bool AreImagesAutomaticallyLoaded() const
;
+
void AddJavaScriptMessageHandler( const std::string& exposedObjectName, std::function< void(const std::string&) > handler )
;
/**
/**
- * @copydoc Dali::WebEngine::
LoadImagesAutomatically
()
+ * @copydoc Dali::WebEngine::
ClearAllTilesResources
()
*/
*/
- void
LoadImagesAutomatically( bool automatic
);
+ void
ClearAllTilesResources(
);
/**
/**
- * @copydoc Dali::WebEngine::
GetDefaultTextEncodingName
()
+ * @copydoc Dali::WebEngine::
ClearHistory
()
*/
*/
-
const std::string& GetDefaultTextEncodingName() const
;
+
void ClearHistory()
;
/**
/**
- * @copydoc Dali::WebEngine::Set
DefaultTextEncodingNam
e()
+ * @copydoc Dali::WebEngine::Set
Siz
e()
*/
*/
- void Set
DefaultTextEncodingName( const std::string& defaultTextEncodingName
);
+ void Set
Size( int width, int height
);
/**
/**
- * @copydoc Dali::WebEngine::
GetDefaultFontSize
()
+ * @copydoc Dali::WebEngine::
SendTouchEvent
()
*/
*/
-
int GetDefaultFontSize() const
;
+
bool SendTouchEvent( const Dali::TouchEvent& touch )
;
/**
/**
- * @copydoc Dali::WebEngine::Se
tDefaultFontSize
()
+ * @copydoc Dali::WebEngine::Se
ndKeyEvent
()
*/
*/
-
void SetDefaultFontSize( int defaultFontSize
);
+
bool SendKeyEvent( const Dali::KeyEvent& event
);
/**
/**
- * @copydoc Dali::WebEngine::Set
Size
()
+ * @copydoc Dali::WebEngine::Set
Focus
()
*/
*/
- void Set
Size( int width, int height
);
+ void Set
Focus( bool focused
);
/**
/**
- * @copydoc Dali::WebEngine::
SendTouchEvent
()
+ * @copydoc Dali::WebEngine::
UpdateDisplayArea
()
*/
*/
-
bool SendTouchEvent( const Dali::TouchData& touch
);
+
void UpdateDisplayArea( Dali::Rect< int > displayArea
);
/**
/**
- * @copydoc Dali::WebEngine::
SendKeyEvent
()
+ * @copydoc Dali::WebEngine::
EnableVideoHole
()
*/
*/
-
bool SendKeyEvent( const Dali::KeyEvent& event
);
+
void EnableVideoHole( bool enabled
);
/**
* @copydoc Dali::WebEngine::PageLoadStartedSignal()
/**
* @copydoc Dali::WebEngine::PageLoadStartedSignal()
@@
-247,6
+263,11
@@
public:
*/
Dali::WebEnginePlugin::WebEnginePageLoadErrorSignalType& PageLoadErrorSignal();
*/
Dali::WebEnginePlugin::WebEnginePageLoadErrorSignalType& PageLoadErrorSignal();
+ /**
+ * @copydoc Dali::WebEngine::ScrollEdgeReachedSignal()
+ */
+ Dali::WebEnginePlugin::WebEngineScrollEdgeReachedSignalType& ScrollEdgeReachedSignal();
+
private:
/**
private:
/**