electron/brightray/browser/win/devtools_window.h
Adam Roben 779dfd2baf Fix most cpplint errors in devtools_window.h
It's still complaining about the non-const reference in BOOL&.
2013-11-17 19:01:36 -05:00

39 lines
1.1 KiB
C++

#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;
class DevToolsWindow : public ui::WindowImpl,
public base::SupportsWeakPtr<DevToolsWindow> {
public:
static DevToolsWindow* Create(
InspectableWebContentsViewWin* inspectable_web_contents_view_win);
BEGIN_MSG_MAP_EX(DevToolsWindow)
MESSAGE_HANDLER(WM_CREATE, OnCreate)
MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
MESSAGE_HANDLER(WM_SIZE, OnSize)
END_MSG_MAP()
private:
explicit DevToolsWindow(
InspectableWebContentsViewWin* inspectable_web_contents_view_win);
~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);
};
} // namespace brightray
#endif