Update to use CR_* Windows message macros
See https://codereview.chromium.org/146833020.
This commit is contained in:
parent
78dd3390f5
commit
307d936d75
2 changed files with 11 additions and 11 deletions
|
@ -20,7 +20,7 @@ DevToolsWindow::DevToolsWindow(InspectableWebContentsViewWin* controller)
|
||||||
DevToolsWindow::~DevToolsWindow() {
|
DevToolsWindow::~DevToolsWindow() {
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT DevToolsWindow::OnCreate(UINT, WPARAM, LPARAM, BOOL&) {
|
LRESULT DevToolsWindow::OnCreate(UINT, WPARAM, LPARAM) {
|
||||||
auto devtools_web_contents =
|
auto devtools_web_contents =
|
||||||
controller_->inspectable_web_contents()->devtools_web_contents();
|
controller_->inspectable_web_contents()->devtools_web_contents();
|
||||||
SetParent(devtools_web_contents->GetView()->GetNativeView(), hwnd());
|
SetParent(devtools_web_contents->GetView()->GetNativeView(), hwnd());
|
||||||
|
@ -28,7 +28,7 @@ LRESULT DevToolsWindow::OnCreate(UINT, WPARAM, LPARAM, BOOL&) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT DevToolsWindow::OnDestroy(UINT, WPARAM, LPARAM, BOOL&) {
|
LRESULT DevToolsWindow::OnDestroy(UINT, WPARAM, LPARAM) {
|
||||||
auto devtools_web_contents =
|
auto devtools_web_contents =
|
||||||
controller_->inspectable_web_contents()->devtools_web_contents();
|
controller_->inspectable_web_contents()->devtools_web_contents();
|
||||||
SetParent(
|
SetParent(
|
||||||
|
@ -37,7 +37,7 @@ LRESULT DevToolsWindow::OnDestroy(UINT, WPARAM, LPARAM, BOOL&) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT DevToolsWindow::OnSize(UINT, WPARAM, LPARAM, BOOL&) {
|
LRESULT DevToolsWindow::OnSize(UINT, WPARAM, LPARAM) {
|
||||||
RECT rect;
|
RECT rect;
|
||||||
GetClientRect(hwnd(), &rect);
|
GetClientRect(hwnd(), &rect);
|
||||||
|
|
||||||
|
|
|
@ -14,20 +14,20 @@ class DevToolsWindow : public gfx::WindowImpl,
|
||||||
static DevToolsWindow* Create(
|
static DevToolsWindow* Create(
|
||||||
InspectableWebContentsViewWin* inspectable_web_contents_view_win);
|
InspectableWebContentsViewWin* inspectable_web_contents_view_win);
|
||||||
|
|
||||||
BEGIN_MSG_MAP_EX(DevToolsWindow)
|
CR_BEGIN_MSG_MAP_EX(DevToolsWindow)
|
||||||
MESSAGE_HANDLER(WM_CREATE, OnCreate)
|
CR_MESSAGE_HANDLER_EX(WM_CREATE, OnCreate)
|
||||||
MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
|
CR_MESSAGE_HANDLER_EX(WM_DESTROY, OnDestroy)
|
||||||
MESSAGE_HANDLER(WM_SIZE, OnSize)
|
CR_MESSAGE_HANDLER_EX(WM_SIZE, OnSize)
|
||||||
END_MSG_MAP()
|
CR_END_MSG_MAP()
|
||||||
|
|
||||||
private:
|
private:
|
||||||
explicit DevToolsWindow(
|
explicit DevToolsWindow(
|
||||||
InspectableWebContentsViewWin* inspectable_web_contents_view_win);
|
InspectableWebContentsViewWin* inspectable_web_contents_view_win);
|
||||||
~DevToolsWindow();
|
~DevToolsWindow();
|
||||||
|
|
||||||
LRESULT OnCreate(UINT message, WPARAM, LPARAM, BOOL& handled);
|
LRESULT OnCreate(UINT message, WPARAM, LPARAM);
|
||||||
LRESULT OnDestroy(UINT message, WPARAM, LPARAM, BOOL& handled);
|
LRESULT OnDestroy(UINT message, WPARAM, LPARAM);
|
||||||
LRESULT OnSize(UINT message, WPARAM, LPARAM, BOOL& handled);
|
LRESULT OnSize(UINT message, WPARAM, LPARAM);
|
||||||
|
|
||||||
InspectableWebContentsViewWin* controller_;
|
InspectableWebContentsViewWin* controller_;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue