Граф коммитов

180 Коммитов

Автор SHA1 Сообщение Дата
Eric Rozell 4ecede7e6d style(Tracing): Cosmetic fixes for tracing. 2016-07-15 18:53:35 -04:00
Eric Rozell 46d171ce3e fix(Tracing): Initial commit to switch to LoggingActivity and Logging… (#530)
Using Windows.Foundation.Diagnostics provides us more options for correlating activity logs, using LoggingChannels, and so forth.
2016-07-15 18:38:28 -04:00
Eric Rozell 34d3f1529b feat(Geolocation): Adds LocationObserver module (#526)
Adds geolocation capabilities to ReactWindows.

Fixes #49
2016-07-15 18:37:54 -04:00
Eric Rozell fb7c46560b fix(async): Task.FromResult -> Task.CompletedTask where possible (#527)
Avoid allocating a new task if not necessary.
2016-07-15 13:51:49 -04:00
Eric Rozell 8ff53df05c fix(Image): Fixes race condition for subscribe/dispose (#522)
Because the subscription to the image events must occur on the dispatcher thread, the native module calls to ImageLoader are by neccessity asynchronous from the subscription to the image. To avoid a race condition where the image reference is disposed before the subscription occurs, this changeset adds a single-assignment disposable wrapper for the subscription.

Fixes #521

* fix(Image): Prevent race conditon between event and subject disposal

Even with the SingleAssignmentDisposable, there's a race condition between the loaded/error event firing and the subject getting disposed. If the event makes it to the subject, it would throw an ObjectDisposedException. By disposing the ObserverWrapper before the subject, we ensure that no events will flow to the subject after it has been disposed.
2016-07-14 11:11:44 -04:00
Eric Rozell aa52551f78 fix(RootViewHelper): Use VisualTreeHelper instead of explicit map shim (#525)
VisualTreeHelper is able to find the parent dependency object in cases where the FrameworkElement.Parent property may be null. This is a useful way to ensure we can find the RootView for measurement.

Hacking this helper, however, breaks certain views like SplitView, which currently depend on the pointer not being captured by React to close the view when the lightweight Rect layer is overlayed adjacent to the pane. For now, only using the VisualTreeHelper in the root view search case, however we may want to use it more generally and have a better "opt-out" mechanism for view managers like SplitView.
2016-07-14 10:53:51 -04:00
Adam Comella fe13a4f617 Implement UIManager.measureInWindow (#524) 2016-07-13 09:25:19 -04:00
Adam Comella 20b61ec4c3 Fix move logic in UIImplementation.ManageChildren (#523) 2016-07-13 09:21:02 -04:00
Eric Rozell 45c60fac8d fix(TextInput): static readonly -> const for view manager. 2016-07-06 15:25:41 -04:00
Eric Rozell d23f7a2e1a feat(Accessibility): Add accessibility label and live setting to View (#514) 2016-07-05 14:59:25 -04:00
Eric Rozell c8181f4efd fix(BaseViewManager): Simplify matrix transform (#510)
Adds support for perspective transforms. One noticeable difference with Windows and Android is that the axis of rotation is the top-left corner of the view, rather than the center of the view.
2016-07-05 11:43:21 -04:00
Eric Rozell 6b8acbed2c feat(z-index): Adds z-index prop support to views (#511) 2016-07-01 16:10:27 -04:00
Eric Rozell 1802bd662f fix(FlipView): Suppress event from programmatic selection change. (#509) 2016-06-30 16:38:26 -04:00
Eric Rozell becf6ce2b2 feat(ImageLoaderModule): Adds prefetch and getSize behavior (#507)
Adds behavior to support prefetch of images, as well as pixel measurement. There is still more work to add an intermediate disk cache.
2016-06-30 16:38:07 -04:00
Eric Rozell 268b14b89f feat(runWindows): Adds option to start application with remote debugging (#499)
Tools like VS Code need to be able to launch the app from the command line with remote debugging enabled.  This change allows arguments to be passed from powershell to the app and down to the DevSupportManager.
2016-06-27 15:22:27 -04:00
Eero Bragge e199735c46 fix(TouchHandler): Add support to pointerEvents (#486)
Fixes #484
2016-06-27 13:56:39 -04:00
Eric Rozell e59e40c58c fix(CSSLayout): Remove unnecessary whole pixel rounding from the CSSL… (#498)
...ayout algorithm.
2016-06-24 17:40:30 -04:00
Eric Rozell 25f7f6f53a fix(Text): Ensure remeasurement occurs when shadow node props change. (#497) 2016-06-24 17:39:48 -04:00
Eric Rozell b6c3095b58 feat(Text): Adds support for inline views inside Text component. (#487)
Android supports inline images, and iOS supports arbitrary inline views (that are bound by width and height). We added similar support for bounded inline views for UWP.

The approach required a shift away from the virtual approach that we were previously using for text.  Previously, text was fully managed in the shadow node hierarchy, and used the UpdateExtraData API on IViewManager to funnel the inline from shadow node to the view.  Now the virtual text nodes use proper view managers, although this required that we reduce the base class for views to DependencyObjecy, the least common denominator between FrameworkElement and Inline.

We also had to shift from using TextBlock to RichTextBlock to support paragraphs and InlineUIElement instances.

Fixes #189
2016-06-24 12:02:19 -04:00
Eric Rozell 577e4d3823 fix(TextInput): Fixes race between counter increment and JavaScript props changes (#492)
Previously, the native event count was not updated until the TextChanged event fired, which could be interrupted by a previous props update. When this occurred, we could potentially replace the text with the state of a previous event.

Now, the native event count is pre-incremented in th TextChanging event. This seems to resolve the race condition.

Fixes #490
2016-06-23 09:09:15 -04:00
Eero Bragge 98292342a7 fix(BaseViewManager): Add support for transform animation (#481)
* fix(BaseViewManager): Add support for transform animation

- Scale
- Translate
- Rotation
2016-06-21 10:12:34 -04:00
Eero Bragge 8e3ca7a0c3 fix(RCTView): Add support for specific border radius corners (#483)
Fixes #381
2016-06-20 11:12:57 -04:00
Eric Rozell 2df5cb7ce1 feat(ProgressRingWindows): Adds ProgressRingWindows and ActivityIndicator (#480)
These are the same native component, but ActivityIndicator is useful for cross platform UI.
2016-06-16 16:46:17 -04:00
robarnold 5b64903e9b Fix null deref in NetInfo (#477)
This variable is unused and precedes the intended null check.
2016-06-15 11:45:33 -04:00
Eric Rozell 8042441b58 feat(Promise): Adds error code option to promise. (#475) 2016-06-13 16:46:53 -04:00
Eric Rozell b16ac486f0 feat(Dimensions): Update dimensions when window size / orientation changes (#473)
Adds feature to update the dimensions when the window size changes.
2016-06-13 13:42:09 -04:00
Eric Rozell 4e42925df2 fix(Symbolicate): Ensures symbolicate feature is working properly (#460)
In order for the server-side symbolicate feature to work, Chakra needs to report the correct source filename.  Threading through the SourceUrl to the RunScript function to ensure this is correct for exceptions.

Fixes #433
2016-06-07 12:55:54 -04:00
Matthew Podwysocki da44203fcd feat(NetworkModule) - Add URI support (#443)
* feat(NetworkModule) - Add URI support

* perf(NetworkingModule): Reduce number of closures allocated in NetworkingModule

While the LINQ approach is elegant, many C# developers understand async/await better than the syntactic sugar behind LINQ. These changes are more imperative and also more efficient.
2016-05-27 09:28:27 -04:00
Eric Rozell 5610cb730c docs(Comments): react -> React (#435) 2016-05-26 13:04:58 -04:00
Eric Rozell 917e7b8db5 chore(NPM): Adds files for NPM and organize project
Includes changes for missing .gitignore stuff, the license and package.json. Organize the top-level structure of the plugin project.
2016-05-25 12:17:35 -04:00