fix: make draggable regions work when devtools is opened on macOS (#26361)

* fix: make draggable region work when devtools is open

* fix: update draggable regions when resizing
This commit is contained in:
Cheng Zhao 2020-11-10 06:54:04 +09:00 committed by GitHub
parent f21a21f172
commit 02a8c0a640
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 78 additions and 20 deletions

View file

@ -1481,6 +1481,11 @@ void WebContents::DevToolsClosed() {
Emit("devtools-closed");
}
void WebContents::DevToolsResized() {
for (ExtendedWebContentsObserver& observer : observers_)
observer.OnDevToolsResized();
}
bool WebContents::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(WebContents, message)