*
* @since 2.1
*
- * @param[in] setting An instance of %BookmarkItem
+ * @param[in] rhs An instance of %BookmarkItem
*/
BookmarkItem(const BookmarkItem& rhs);
* @param[in] obj The object to compare with the current instance
* @see Tizen::Base::Object::Equals()
*/
- virtual bool Equals(const Object& obj) const;
+ virtual bool Equals(const Tizen::Base::Object& obj) const;
/**
* Copying of objects using this copy assignment operator is allowed.
*
* @since 2.1
*
- * @param[in] setting The instance of the %BookmarkItem class to assign from
+ * @param[in] rhs The instance of the %BookmarkItem class to assign from
*/
BookmarkItem& operator =(const BookmarkItem& rhs);
* @param[in] enable Set to @c true to enable the scrolling of the web page, @n
* else @c false
* @exception E_SUCCESS The method is successful.
+ * @remarks This method doesn't affect javascript touch event.
*/
result SetScrollEnabled(bool enable);
*
* @since 2.1
*
- * @privleve public
+ * @privlevel public
* @privilege %http://tizen.org/privilege/web.service
*
* @return An error code
/**
* Registers a keypad event listener. @n
- * The registered listener is notified when the keypad associated with @c <input> tag or with @c <textarea> tag is opened or closed.
+ * The registered listener is notified when the keypad associated with <input> tag or with <textarea> tag is opened or closed.
*
* @since 2.0
*
* @remarks This method returns @c true if and only if the two instances contain the same elements.
* @see Tizen::Base::Object::Equals()
*/
- virtual bool Equals(const Object& obj) const;
+ virtual bool Equals(const Tizen::Base::Object& obj) const;
/**
* Copying of objects using this copy assignment operator is allowed.
result
_WebBookmarkImpl::AddFolder(const String& title, RecordId parentId, RecordId& folderId)
{
- result r = E_SUCCESS;
-
std::unique_ptr<char[]> pTitle(_StringConverter::CopyToCharArrayN(title));
SysTryReturn(NID_WEB, pTitle.get(), GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
_WebImpl* pWebImpl = _WebImpl::GetInstance(this);
SysAssertf(pWebImpl != null && pWebImpl->HasValidNativeNode(), "Not yet constructed or Not attached to parent control.");
- result r = E_SUCCESS;
-
pWebImpl->ReleaseBlock();
return E_SUCCESS;
const _WebImpl* pWebImpl = _WebImpl::GetInstance(this);
SysAssertf(pWebImpl != null && pWebImpl->HasValidNativeNode(), "Not yet constructed or Not attached to parent control.");
- result r = E_SUCCESS;
-
pWebImpl->GetBlockRange(startPoint, endPoint);
return E_SUCCESS;
const _WebImpl* pWebImpl = _WebImpl::GetInstance(this);
SysAssertf(pWebImpl != null && pWebImpl->HasValidNativeNode(), "Not yet constructed or Not attached to parent control.");
- result r = E_SUCCESS;
-
pWebImpl->GetBlockRange(startPoint, endPoint);
return E_SUCCESS;
WebStorageManager::WebStorageManager(void)
: __pWebStorageManagerImpl(null)
{
- result r = E_SUCCESS;
-
std::unique_ptr<_WebStorageManagerImpl> pWebStorageManagerImpl(new (std::nothrow) _WebStorageManagerImpl());
SysTryReturnVoidResult(NID_WEB_CTRL, pWebStorageManagerImpl.get(), E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
{
SysTryReturnVoidResult(NID_WEB_CTRL, pAppData, E_SYSTEM, "[E_SYSTEM] Certificate Manager AppControl failed");
- String* pCertID = static_cast< String* >(const_cast< Object* >(pAppData->GetValue(String(L"Id"))));
+ //String* pCertID = static_cast< String* >(const_cast< Object* >(pAppData->GetValue(String(L"Id"))));
// TODO : test if the result of Certificate AppControl complies with the following
// const char* pCertificateFile;
// ewk_set_certificate_file(pCertificateFile);
Ewk_Context* pContext = ewk_view_context_get(__pWebFrame);
SysAssertf(pContext, "Failed to request.");
- ewk_view_text_selection_enable_set(__pWebFrame, EINA_FALSE);
+ Ewk_Settings* pSettings = ewk_view_settings_get(__pWebFrame);
+ SysAssertf(pSettings, "Failed to get webkit instance.");
+
+ ewk_settings_text_selection_enabled_set(pSettings, EINA_FALSE);
ewk_context_additional_plugin_path_set(pContext, PLUGIN_DIRECTORY_PATH);
bool
_PanningGestureState::OnTouchMoved(const _Control& source, const _TouchInfo& touchInfo)
{
- const Ewk_View_Smart_Data* pSmartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get( __pWebCore->GetWebNativeNode()));
- SysAssertf(pSmartData, "Failed to get webkit smart data.");
+ if (_WebSettingImpl::GetInstance(__pWebCore->GetSetting())->IsScrollEnabled())
+ {
+ const Ewk_View_Smart_Data* pSmartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get( __pWebCore->GetWebNativeNode()));
+ SysAssertf(pSmartData, "Failed to get webkit smart data.");
- Ewk_Event_Gesture gestureEvent;
+ Ewk_Event_Gesture gestureEvent;
- Point absPoint(_CoordinateSystemUtils::ConvertToInteger(__pWebCore->GetAbsoluteCoordinate(touchInfo.GetCurrentPosition())));
+ Point absPoint(_CoordinateSystemUtils::ConvertToInteger(__pWebCore->GetAbsoluteCoordinate(touchInfo.GetCurrentPosition())));
- SetGestureEvent(gestureEvent, EWK_GESTURE_PAN, absPoint, Point(0, 0), 0.0, 0);
- pSmartData->api->gesture_move(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
+ SetGestureEvent(gestureEvent, EWK_GESTURE_PAN, absPoint, Point(0, 0), 0.0, 0);
+ pSmartData->api->gesture_move(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
+ }
return true;
}
int listItemXPos = 0;
int listItemYPos = 0;
int checkBoxWidth = 0;
- int listItemTxtHeight = 0;
int listItemHeight = 0;
int popupBetweenListNBtnGap = 0;
_UserConfirmPopup::_UserConfirmPopup(void)
: __pUserPolicyData(null)
, __userConfirmMode(USER_CONFIRM_USERMEDIA)
- , __sync(false)
, __pCheckButton(null)
+ , __sync(false)
{
}
_Web::_Web(void)
- : __gestureType(WEB_GESTURE_TYPE_TAP)
- , __pGestureHandler(null)
+ : __pGestureHandler(null)
, __pEflWebkit(null)
, __pWebSetting(null)
, __pGestureFlick(null)
, __pPanningGestureHandler(null)
, __pFlickGestureHandler(null)
, __pPinchGestureHandler(null)
+ , __gestureType(WEB_GESTURE_TYPE_TAP)
+ , __pTextElement(null)
{
SetBackgroundColor(Color(0, 0, 0, 0));
}
_AccessibilityContainer* pContainer = GetAccessibilityContainer();
SysTryReturn(NID_WEB_CTRL, pContainer, E_SYSTEM, E_SYSTEM, "[%s] Propagating.", GetErrorMessage(E_SYSTEM));
+ if (pContainer)
+ {
+ __pTextElement = new (std::nothrow) _AccessibilityElement(true);
+ SysTryReturn(NID_WEB_CTRL, __pTextElement, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[%s] Memory shortage.", GetErrorMessage(E_OUT_OF_MEMORY));
+
+ __pTextElement->SetBounds(FloatRectangle(0.0f, 0.0f, GetBoundsF().width, GetBoundsF().height));
+ //__pTextElement->SetLabel(GetText());
+ //__pTextElement->SetTrait(L"Web");
+ //__pTextElement->SetName(L"WebText");
+
+ pContainer->AddElement(*__pTextElement);
+ }
+
pContainer->Activate(true);
_WebAccessibilityFocusHandler* pFocusHandler = new (std::nothrow) _WebAccessibilityFocusHandler();
pContainer->SetFocusHandler(dynamic_cast<_IAccessibilityFocusHandler*>(pFocusHandler));
{
if (__pEflWebkit.get())
{
- if (_WebSettingImpl::GetInstance(__pWebSetting.get())->IsScrollEnabled())
- {
- SendTouchEventForJavaScript(touchInfo);
+ SendTouchEventForJavaScript(touchInfo);
- return __pGestureHandler->OnTouchMoved(source, touchInfo);
- }
- else if (__gestureType == WEB_GESTURE_TYPE_TAP)
- {
- return __pGestureHandler->OnTouchMoved(source, touchInfo);
- }
+ return __pGestureHandler->OnTouchMoved(source, touchInfo);
}
return true;
namespace Tizen { namespace Ui
{
+class _AccessibilityElement;
class _TouchInfo;
}} // Tizen::Ui
std::unique_ptr<_PinchGestureState> __pPinchGestureHandler;
_WebGestureType __gestureType;
+
+ Tizen::Ui::_AccessibilityElement* __pTextElement;
}; // _Web
}}} // Tizen::Web::Controls
}
_Form* pFormCore = pImpl->GetParentFormCore(dynamic_cast< _Control* >(&pImpl->GetCore()));
- SysAssertf(pFormCore != null, "Failed to get FormCore");
-
- if (pFormCore->HasFooter() && pFormCore->IsFooterVisible())
+ if (pFormCore)
{
- pImpl->SetFooterVisibleState(true);
- pFormCore->SetActionBarsVisible(FORM_ACTION_BAR_FOOTER, false);
+ if (pFormCore->HasFooter() && pFormCore->IsFooterVisible())
+ {
+ pImpl->SetFooterVisibleState(true);
+ pFormCore->SetActionBarsVisible(FORM_ACTION_BAR_FOOTER, false);
+ }
+
+ pFormCore->DeflateClientRectHeight(pXformer->TransformVertical(rect.height));
}
if (pImpl->GetWebKeypadEventListener())
}
else
{
- pFormCore->DeflateClientRectHeight(pXformer->TransformVertical(rect.height));
pImpl->GetWebKeypadEventListener()->OnWebKeypadWillOpen(*dynamic_cast< Web* >(&pImpl->GetPublic()));
}
}
_WebImpl* pImpl = reinterpret_cast< _WebImpl* >(pUserData);
SysAssertf(pImpl, "Failed to request");
- _Form* pFormCore = pImpl->GetParentFormCore(dynamic_cast< _Control* >(&pImpl->GetCore()));
- SysAssertf(pFormCore != null, "Failed to get FormCore");
-
if (pImpl->IsKeypadVisible())
{
- if (pFormCore->HasFooter() && pImpl->IsFooterVisible())
+ _Form* pFormCore = pImpl->GetParentFormCore(dynamic_cast< _Control* >(&pImpl->GetCore()));
+ if (pFormCore)
{
- pImpl->SetFooterVisibleState(false);
- pFormCore->SetActionBarsVisible(FORM_ACTION_BAR_FOOTER, true);
- }
+ if (pFormCore->HasFooter() && pImpl->IsFooterVisible())
+ {
+ pImpl->SetFooterVisibleState(false);
+ pFormCore->SetActionBarsVisible(FORM_ACTION_BAR_FOOTER, true);
+ }
- pFormCore->DeflateClientRectHeight(0);
+ pFormCore->DeflateClientRectHeight(0);
+ }
if (pImpl->GetWebKeypadEventListener())
{
SetEventListenerCallback();
- _Form* pFormCore = GetParentFormCore(dynamic_cast< _Control* >(&this->GetCore()));
- SysAssertf(pFormCore != null, "Failed to get FormCore");
-
return E_SUCCESS;
}
result
_WebImpl::OnHandleWebUiEvent(const IEventArg& arg)
{
- result r = E_SUCCESS;
-
const _WebUiEventArg* pEventArg = dynamic_cast< const _WebUiEventArg* >(&arg);
SysTryReturnResult(NID_WEB_CTRL, pEventArg, E_INVALID_ARG, "Invalid argument(s) is used. Type casting failed. argument must be IEventArg type.");
result
_WebImpl::OnHandleWebUiEventF(const IEventArg& arg)
{
- result r = E_SUCCESS;
-
const _WebUiEventArg* pEventArg = dynamic_cast< const _WebUiEventArg* >(&arg);
SysTryReturnResult(NID_WEB_CTRL, pEventArg, E_INVALID_ARG, "Invalid argument(s) is used. Type casting failed. argument must be IEventArg type.");
_Form* pFormCore = null;
_Control* pParentControlCore = dynamic_cast< _Control* >(pControlCore->GetParent());
-
- if (pParentControlCore == null)
- {
- _Window* pWindowCore = dynamic_cast< _Window* >(pControlCore);
- SysAssertf(pWindowCore, "Failed to get parent control and window core.");
- pFormCore = dynamic_cast< _Form* >(pWindowCore->GetOwner());
- if (pFormCore == null)
- {
- pParentControlCore = dynamic_cast< _Control* >(pWindowCore->GetOwner());
- SysTryReturn(NID_WEB_CTRL, pParentControlCore, null, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
- }
- }
- else
+ if (!pParentControlCore)
{
- pFormCore = dynamic_cast< _Form* >(pParentControlCore);
+ return null;
}
- if (pFormCore != null)
+ pFormCore = dynamic_cast< _Form* >(pParentControlCore);
+ if (pFormCore)
{
return pFormCore;
}
ecore_imf_context_input_panel_geometry_get(ecore_imf_context_add(ecore_imf_context_default_id_get()), &x, &y, &w, &h);
_Form* pFormCore = GetParentFormCore(dynamic_cast< _Control* >(&this->GetCore()));
- SysAssertf(pFormCore != null, "Failed to get FormCore");
-
- pFormCore->DeflateClientRectHeight(h);
+ if (pFormCore)
+ {
+ pFormCore->DeflateClientRectHeight(h);
+ }
}
if (__pColorPicker.get())
: public Tizen::Ui::_ContainerImpl
, public Tizen::Ui::ITextEventListener
, public Tizen::Web::Controls::_IWebEventListener
- , virtual public Tizen::Base::Runtime::IEventListener
{
public:
_WebImpl(Web* pWeb, Tizen::Ui::_Control* pCore);
#include <FWebCtrlWebSetting.h>
#include <FBaseSysLog.h>
#include <FUi_UiBuilder.h>
+#include <FUi_CoordinateSystemUtils.h>
using namespace Tizen::Graphics;
if (pControl->GetElement(L"fontSize", elementString) || pControl->GetElement(L"FontSize", elementString))
{
int fontSize;
- Base::Integer::Parse(elementString, fontSize);
+ fontSize= _CoordinateSystemUtils::ConvertToFloat(elementString);
setting.SetFontSize(fontSize);
}
result r = E_SUCCESS;
Ewk_Context* pDefaultContext = ewk_context_default_get();
- Eina_List* pOriginEinaList;
+ Eina_List* pOriginEinaList = null;
_WebPresenter presenter;
presenter.InitAsyncProcess();
{
Ewk_Context* pDefaultContext = ewk_context_default_get();
_WebPresenter presenter;
- Eina_List* pOriginList;
+ Eina_List* pOriginList = null;
presenter.InitAsyncProcess();
switch (storageType)