mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
* build: update to yarn v4
(cherry picked from commit 6adec744f3)
* chore: fixup types after yarn v4 migration
* chore: update nan yarn.lock file
* build: automatically install git for dugite
15 lines
284 B
Plaintext
15 lines
284 B
Plaintext
#include "impl.h"
|
|
|
|
#include <Cocoa/Cocoa.h>
|
|
|
|
namespace impl {
|
|
|
|
bool IsValidWindow(char* handle, size_t size) {
|
|
if (size != sizeof(NSView*))
|
|
return false;
|
|
NSView* view = *reinterpret_cast<NSView**>(handle);
|
|
return [view isKindOfClass:[NSView class]];
|
|
}
|
|
|
|
} // namespace impl
|