Enable using external WebContents as devtools
This commit is contained in:
parent
aab35073ee
commit
5e4914700e
6 changed files with 87 additions and 44 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue