/** 向父窗口发送的事件定义 */
const SEND_MESSAGE_ENUM =  {
    IFREME_TAB_GROUP_SET_IFRAME_HEIGHT: 'IFREME_TAB_GROUP_SET_IFRAME_HEIGHT',
    /** group tab 内的列表项点击 */
    IFRAME_PAGE_JUMP: 'IFRAME_PAGE_JUMP',
    IFREME_TAB_GROUP_CONTENT_GET_NAV_TOP: 'IFREME_TAB_GROUP_CONTENT_GET_NAV_TOP',
    /** 获取content的localstorge数据 */
    IFRAME_GET_EXTENSION_STORGE_DATA: 'IFRAME_GET_EXTENSION_STORGE_DATA',
    IFRAME_SET_EXTENSION_STORGE_DATA: 'IFRAME_SET_EXTENSION_STORGE_DATA',
    IFRAME_MESSAGE_PAGE_CREATE_TAB: 'IFRAME_MESSAGE_PAGE_CREATE_TAB',
    IFRAME_MESSAGE_PAGE_PUBLISH_TWITTER: 'IFRAME_MESSAGE_PAGE_PUBLISH_TWITTER',
    IFRAME_MESSAGE_PAGE_SETBADGEINFO: 'IFRAME_MESSAGE_PAGE_SETBADGEINFO',
    IFRAME_MESSAGE_PAGE_HIDEBADGE: 'IFRAME_MESSAGE_PAGE_HIDEBADGE',
    IFRAME_RUNTIME_CONNECT_POPUP: 'IFRAME_RUNTIME_CONNECT_POPUP',
    IFRAME_SHOW_FOOTER_MENU: 'IFRAME_SHOW_FOOTER_MENU',
    POPUP_SHOW_DENET_PUBLISH_DIALOG: 'POPUP_SHOW_DENET_PUBLISH_DIALOG',

    // ---- 做任务 ----
    IFRAME_DO_TASK_CREATE_TWEET: 'IFRAME_DO_TASK_CREATE_TWEET',
    IFRAME_DO_TASK_LIKE: 'IFRAME_DO_TASK_LIKE',
    IFRAME_DO_TASK_FOLLOWS: 'IFRAME_DO_TASK_FOLLOWS',
    IFRAME_DO_TASK_RETWEET: 'IFRAME_DO_TASK_RETWEET',

    // ---- 获取推文内容 ----
    IFRAME_DOM_GET_TWEET_TEXT: 'IFRAME_DOM_GET_TWEET_TEXT',

    // ---- 获取twitter用户信息 ----
    IFRAME_GET_TWITTER_USER_INFO: 'IFRAME_GET_TWITTER_USER_INFO',
}

/** 接收父窗口的事件定义 */
const RECEIVE_MESSAGE_ENUM = {
    /** 切换到group tab */
    CONTENT_REFRESH_TAB_GROUP_LIST: 'CONTENT_REFRESH_TAB_GROUP_LIST',
    /** group打开时，页面发生滚动 */
    CONTENT_GROUP_LIST_SCROLL: 'CONTENT_GROUP_LIST_SCROLL',
    CONTENT_SEND_GROUP_NAV_TOP: 'CONTENT_SEND_GROUP_NAV_TOP',
    CONTENT_SYS_THEME_CHANGE: 'CONTENT_SYS_THEME_CHANGE',
    CONTENT_POPUP_PAGE_SHOW: 'CONTENT_POPUP_PAGE_SHOW',
}

export default { ...SEND_MESSAGE_ENUM, ...RECEIVE_MESSAGE_ENUM }
