nim_duilib/ui_components/cef_control/control/cef_native_control.h
jiajia_deng 4933d1f2bc Remove dependency on shared
Signed-off-by: jiajia_deng <2894220@gmail.com>
2019-09-20 16:27:58 +08:00

36 lines
929 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/** @file cef_control.h
* @brief 封装Cef浏览器对象为duilib控件
* @copyright (c) 2016, NetEase Inc. All rights reserved
* @author Redrain
* @date 2016/7/19
*/
#pragma once
#include "cef_control_base.h"
namespace ui
{
class CefNativeControl : public CefControlBase
{
public:
CefNativeControl(void);
~CefNativeControl(void);
virtual void Init() override;
virtual void SetPos(UiRect rc) override;
virtual void HandleMessage(EventArgs& event) override;
virtual void SetVisible(bool bVisible = true) override;
virtual void SetInternVisible(bool bVisible = true) override;
virtual void SetWindow(ui::Window* pManager, ui::Box* pParent, bool bInit) override;
/**
* @brief 打开开发者工具
* @param[in] view 一个 CefControl 控件实例(仅在CefControl类里需要传入)
* @return 成功返回 true失败返回 false
*/
virtual bool AttachDevTools(Control* view) override;
protected:
virtual void ReCreateBrowser() override;
};
}