2013-06-04 18:31:37 +00:00
|
|
|
#ifndef BRIGHTRAY_BROWSER_WIN_DEVTOOLS_WINDOW_H_
|
|
|
|
#define BRIGHTRAY_BROWSER_WIN_DEVTOOLS_WINDOW_H_
|
|
|
|
|
|
|
|
#include "base/memory/weak_ptr.h"
|
|
|
|
#include "ui/base/win/window_impl.h"
|
|
|
|
|
|
|
|
namespace brightray {
|
|
|
|
|
|
|
|
class InspectableWebContentsViewWin;
|
|
|
|
|
2013-11-18 00:01:36 +00:00
|
|
|
class DevToolsWindow : public ui::WindowImpl,
|
|
|
|
public base::SupportsWeakPtr<DevToolsWindow> {
|
2013-06-04 18:31:37 +00:00
|
|
|
public:
|
2013-11-18 00:01:36 +00:00
|
|
|
static DevToolsWindow* Create(
|
|
|
|
InspectableWebContentsViewWin* inspectable_web_contents_view_win);
|
2013-06-04 18:31:37 +00:00
|
|
|
|
|
|
|
BEGIN_MSG_MAP_EX(DevToolsWindow)
|
|
|
|
MESSAGE_HANDLER(WM_CREATE, OnCreate)
|
|
|
|
MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
|
|
|
|
MESSAGE_HANDLER(WM_SIZE, OnSize)
|
|
|
|
END_MSG_MAP()
|
|
|
|
|
|
|
|
private:
|
2013-11-18 00:01:36 +00:00
|
|
|
explicit DevToolsWindow(
|
|
|
|
InspectableWebContentsViewWin* inspectable_web_contents_view_win);
|
2013-06-04 18:31:37 +00:00
|
|
|
~DevToolsWindow();
|
|
|
|
|
|
|
|
LRESULT OnCreate(UINT message, WPARAM, LPARAM, BOOL& handled);
|
|
|
|
LRESULT OnDestroy(UINT message, WPARAM, LPARAM, BOOL& handled);
|
|
|
|
LRESULT OnSize(UINT message, WPARAM, LPARAM, BOOL& handled);
|
|
|
|
|
|
|
|
InspectableWebContentsViewWin* controller_;
|
|
|
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(DevToolsWindow);
|
|
|
|
};
|
|
|
|
|
2013-11-17 23:20:17 +00:00
|
|
|
} // namespace brightray
|
2013-06-04 18:31:37 +00:00
|
|
|
|
|
|
|
#endif
|