nim_duilib/ui_components/cef_control/control/cef_native_control.h
jiajia_deng ad9a6b3edc Modified the namespace of the UI component
Signed-off-by: jiajia_deng <2894220@gmail.com>
2019-09-22 11:08:20 +08:00

37 lines
955 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 nim_comp {
using 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;
};
}