Enable using external WebContents as devtools

This commit is contained in:
Cheng Zhao 2017-11-30 16:37:26 +09:00
parent aab35073ee
commit 5e4914700e
6 changed files with 87 additions and 44 deletions

View file

@ -391,6 +391,10 @@ class NativeWindowRelay :
explicit NativeWindowRelay(base::WeakPtr<NativeWindow> window)
: key(UserDataKey()), window(window) {}
static void* UserDataKey() {
return content::WebContentsUserData<NativeWindowRelay>::UserDataKey();
}
void* key;
base::WeakPtr<NativeWindow> window;