, __pCurrenTimeLabel(null)
, __pTotalTimeLabel(null)
, __pSlider(null)
- , __pContextMenuShare(null)
+ , __pShareContextMenu(null)
, __actionTouchLongPressed(false)
, __setPauseState(false)
, __isControlVisibleState(true)
delete __pSoundPathPopup;
__pSoundPathPopup = null;
- delete __pContextMenuShare;
- __pContextMenuShare = null;
+ delete __pShareContextMenu;
+ __pShareContextMenu = null;
return E_SUCCESS;
}
+ (__pShareButton->GetBounds().width / DIVIDE_BY_TWO)),
__pFunctionPanel->GetBounds().y + __pFunctionPanel->GetBounds().height);
- if (__pContextMenuShare != null)
+ if (__pShareContextMenu != null)
{
- delete __pContextMenuShare;
- __pContextMenuShare = null;
+ delete __pShareContextMenu;
+ __pShareContextMenu = null;
}
- __pContextMenuShare = new (std::nothrow) ContextMenu();
- r = __pContextMenuShare->Construct(point, CONTEXT_MENU_STYLE_LIST, CONTEXT_MENU_ANCHOR_DIRECTION_DOWNWARD);
- TryReturnVoid(r == E_SUCCESS, "__pContextMenuShare->Construct() failed:%s", GetErrorMessage(r));
+ __pShareContextMenu = new (std::nothrow) ContextMenu();
+ r = __pShareContextMenu->Construct(point, CONTEXT_MENU_STYLE_LIST, CONTEXT_MENU_ANCHOR_DIRECTION_DOWNWARD);
+ TryReturnVoid(r == E_SUCCESS, "__pShareContextMenu->Construct() failed:%s", GetErrorMessage(r));
String str;
Application::GetInstance()->GetAppResource()->GetString(L"IDS_COM_BODY_MESSAGE", str);
- __pContextMenuShare->AddItem(str, IDA_CONTEXTMENU_MESSAGE);
+ __pShareContextMenu->AddItem(str, IDA_CONTEXTMENU_MESSAGE);
Application::GetInstance()->GetAppResource()->GetString(L"IDS_COM_BODY_EMAIL", str);
- __pContextMenuShare->AddItem(str, IDA_CONTEXTMENU_EMAIL);
- __pContextMenuShare->AddActionEventListener(*this);
- __pContextMenuShare->SetShowState(true);
- __pContextMenuShare->Show();
+ __pShareContextMenu->AddItem(str, IDA_CONTEXTMENU_EMAIL);
+ __pShareContextMenu->SetFocusable(true);
+ __pShareContextMenu->AddActionEventListener(*this);
+ __pShareContextMenu->SetShowState(true);
+ __pShareContextMenu->Show();
if (playState == PLAYER_STATE_PLAYING)
{
__pFunctionPanel->SetShowState(false);
__pControllerPanel->SetShowState(false);
- if (__pContextMenuShare != null)
+ if (__pShareContextMenu != null)
{
- if (__pContextMenuShare->GetShowState() == true)
+ if (__pShareContextMenu->GetShowState() == true)
{
- __pContextMenuShare->SetShowState(false);
+ __pShareContextMenu->SetShowState(false);
}
}