Commit Graph

9 Commits

Author SHA1 Message Date
Nathan Sobo
f22fedebcf Inject new instances of native objects into every JS context
This prevents concurrent access to the same state from different
worker threads. We needed to treat windowState specially because we
explicitly want it to last beyond the life-span of a single context.
So we store it as a static variable in `native.mm` and synchronize
access with a static `NSLock`. Good enough for now.
2013-01-24 17:22:50 -08:00
Nathan Sobo
df2bb3f75c 💄 2013-01-24 17:22:49 -08:00
Corey Johnson & Nathan Sobo
a5f72c8a2d 💄 2013-01-24 17:22:49 -08:00
Nathan Sobo
87829043d4 Use window binding instead of v8 extension for $native object
This paves the way to inject `$native` into the context of a web worker
2013-01-24 17:22:49 -08:00
Kevin Sawicki & Nathan Sobo
2fb27bb2dd Store pathToOpen using new atom.set/getWindowState api
When you use `setWindowState`, your data is saved across refreshes.
You can only store state that can be serialized to JSON.
2013-01-10 18:04:22 -07:00
Kevin Sawicki
8da096b7cd Use include instead of import 2012-09-20 16:24:20 -07:00
Kevin Sawicki
d4fc3f41fc Remove unneeded import 2012-09-20 16:24:20 -07:00
Nathan Sobo
a4a87917ba Put the other v8 extensions in the v8_extensions namespace 2012-08-28 11:16:27 -05:00
Corey Johnson & Nathan Sobo
5141aba658 Move all extension C and JavaScript code into native/v8_extensions 2012-08-27 14:02:05 -07:00