mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Format support/hololens/
This commit is contained in:
parent
70823e3032
commit
36c1669215
5 changed files with 26 additions and 25 deletions
|
@ -47,17 +47,17 @@ void on_ime_state_changed(bool aShow) {
|
|||
sServo->Delegate().OnServoIMEStateChanged(aShow);
|
||||
}
|
||||
|
||||
void set_clipboard_contents(const char* content) {
|
||||
void set_clipboard_contents(const char *content) {
|
||||
// FIXME
|
||||
}
|
||||
|
||||
const char* get_clipboard_contents() {
|
||||
const char *get_clipboard_contents() {
|
||||
// FIXME
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Servo::Servo(hstring url, hstring args, GLsizei width, GLsizei height, float dpi,
|
||||
ServoDelegate &aDelegate)
|
||||
Servo::Servo(hstring url, hstring args, GLsizei width, GLsizei height,
|
||||
float dpi, ServoDelegate &aDelegate)
|
||||
: mWindowHeight(height), mWindowWidth(width), mDelegate(aDelegate) {
|
||||
|
||||
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:
|
||||
// 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_size = 0;
|
||||
|
||||
|
@ -135,7 +136,7 @@ std::unique_ptr<char *> hstring2char(hstring hstr) {
|
|||
char *str = new char[size];
|
||||
size_t converted = 0;
|
||||
wcstombs_s(&converted, str, size, wc, hstr.size());
|
||||
return std::make_unique<char*>(str);
|
||||
return std::make_unique<char *>(str);
|
||||
}
|
||||
|
||||
} // namespace winrt::servo
|
||||
|
|
|
@ -203,8 +203,8 @@ void ServoControl::Loop() {
|
|||
if (mServo == nullptr) {
|
||||
log("Entering loop");
|
||||
ServoDelegate *sd = static_cast<ServoDelegate *>(this);
|
||||
mServo = std::make_unique<Servo>(mInitialURL, mArgs, panelWidth, panelHeight, mDPI,
|
||||
*sd);
|
||||
mServo = std::make_unique<Servo>(mInitialURL, mArgs, panelWidth,
|
||||
panelHeight, mDPI, *sd);
|
||||
} else {
|
||||
// FIXME: this will fail since create_task didn't pick the thread
|
||||
// where Servo was running initially.
|
||||
|
|
|
@ -118,11 +118,11 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
OnSurfaceTapped(IInspectable const &,
|
||||
void OnSurfaceTapped(IInspectable const &,
|
||||
Windows::UI::Xaml::Input::TappedRoutedEventArgs const &);
|
||||
|
||||
void OnSurfacePointerPressed(IInspectable const &,
|
||||
void OnSurfacePointerPressed(
|
||||
IInspectable const &,
|
||||
Windows::UI::Xaml::Input::PointerRoutedEventArgs const &);
|
||||
|
||||
void OnSurfaceManipulationDelta(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue