mirror of
https://github.com/servo/servo.git
synced 2025-09-19 03:18:20 +01:00
Resize Servo on surface resize
This commit is contained in:
parent
10f86935b8
commit
b2c56940eb
2 changed files with 15 additions and 2 deletions
|
@ -62,7 +62,7 @@ struct ServoControl : ServoControlT<ServoControl>, public servo::ServoDelegate {
|
|||
mOnCaptureGesturesStartedEvent.remove(token);
|
||||
}
|
||||
|
||||
winrt::event_token OnCaptureGesturesEnded(EventDelegate const &handler) {
|
||||
winrt::event_token OnCaptureGesturesEnded(EventDelegate const &handler) {
|
||||
return mOnCaptureGesturesEndedEvent.add(handler);
|
||||
};
|
||||
void OnCaptureGesturesEnded(winrt::event_token const &token) noexcept {
|
||||
|
@ -118,7 +118,10 @@ private:
|
|||
|
||||
void OnSurfaceManipulationDelta(
|
||||
IInspectable const &,
|
||||
Windows::UI::Xaml::Input::ManipulationDeltaRoutedEventArgs const &e);
|
||||
Windows::UI::Xaml::Input::ManipulationDeltaRoutedEventArgs const &);
|
||||
|
||||
void OnSurfaceResized(IInspectable const &,
|
||||
Windows::UI::Xaml::SizeChangedEventArgs const &);
|
||||
|
||||
template <typename Callable> void RunOnUIThread(Callable);
|
||||
void RunOnGLThread(std::function<void()>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue