mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Format support/hololens/
This commit is contained in:
parent
70823e3032
commit
36c1669215
5 changed files with 26 additions and 25 deletions
|
@ -56,8 +56,8 @@ const char* get_clipboard_contents() {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Servo::Servo(hstring url, hstring args, GLsizei width, GLsizei height, float dpi,
|
Servo::Servo(hstring url, hstring args, GLsizei width, GLsizei height,
|
||||||
ServoDelegate &aDelegate)
|
float dpi, ServoDelegate &aDelegate)
|
||||||
: mWindowHeight(height), mWindowWidth(width), mDelegate(aDelegate) {
|
: mWindowHeight(height), mWindowWidth(width), mDelegate(aDelegate) {
|
||||||
|
|
||||||
capi::CInitOptions o;
|
capi::CInitOptions o;
|
||||||
|
@ -88,7 +88,8 @@ Servo::Servo(hstring url, hstring args, GLsizei width, GLsizei height, float dpi
|
||||||
|
|
||||||
// Example Call when *pfilters[] is used:
|
// Example Call when *pfilters[] is used:
|
||||||
// o.vslogger_mod_list = pfilters; // servo log modules
|
// o.vslogger_mod_list = pfilters; // servo log modules
|
||||||
// o.vslogger_mod_size = sizeof(pfilters) / sizeof(pfilters[0]) -1; // Important: Number of modules in pfilters
|
// o.vslogger_mod_size = sizeof(pfilters) / sizeof(pfilters[0]) -1; //
|
||||||
|
// Important: Number of modules in pfilters
|
||||||
o.vslogger_mod_list = NULL;
|
o.vslogger_mod_list = NULL;
|
||||||
o.vslogger_mod_size = 0;
|
o.vslogger_mod_size = 0;
|
||||||
|
|
||||||
|
|
|
@ -203,8 +203,8 @@ void ServoControl::Loop() {
|
||||||
if (mServo == nullptr) {
|
if (mServo == nullptr) {
|
||||||
log("Entering loop");
|
log("Entering loop");
|
||||||
ServoDelegate *sd = static_cast<ServoDelegate *>(this);
|
ServoDelegate *sd = static_cast<ServoDelegate *>(this);
|
||||||
mServo = std::make_unique<Servo>(mInitialURL, mArgs, panelWidth, panelHeight, mDPI,
|
mServo = std::make_unique<Servo>(mInitialURL, mArgs, panelWidth,
|
||||||
*sd);
|
panelHeight, mDPI, *sd);
|
||||||
} else {
|
} else {
|
||||||
// FIXME: this will fail since create_task didn't pick the thread
|
// FIXME: this will fail since create_task didn't pick the thread
|
||||||
// where Servo was running initially.
|
// where Servo was running initially.
|
||||||
|
|
|
@ -118,11 +118,11 @@ private:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void OnSurfaceTapped(IInspectable const &,
|
||||||
OnSurfaceTapped(IInspectable const &,
|
|
||||||
Windows::UI::Xaml::Input::TappedRoutedEventArgs const &);
|
Windows::UI::Xaml::Input::TappedRoutedEventArgs const &);
|
||||||
|
|
||||||
void OnSurfacePointerPressed(IInspectable const &,
|
void OnSurfacePointerPressed(
|
||||||
|
IInspectable const &,
|
||||||
Windows::UI::Xaml::Input::PointerRoutedEventArgs const &);
|
Windows::UI::Xaml::Input::PointerRoutedEventArgs const &);
|
||||||
|
|
||||||
void OnSurfaceManipulationDelta(
|
void OnSurfaceManipulationDelta(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue