mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Make it possible to run fxr:// url in non-kiosk mode
This commit is contained in:
parent
ef4f5e5264
commit
2ac0ccb4d2
4 changed files with 25 additions and 16 deletions
|
@ -17,8 +17,10 @@ using namespace winrt::Windows::Foundation;
|
|||
using namespace winrt::Windows::UI::Xaml;
|
||||
using namespace winrt::Windows::UI::Xaml::Media;
|
||||
|
||||
static const hstring SERVO_SCHEME = L"fxr";
|
||||
static const hstring SERVO_SCHEME_SLASH_SLASH = L"fxr://";
|
||||
static const hstring FXR_SCHEME = L"fxr";
|
||||
static const hstring FXR_SCHEME_SLASH_SLASH = L"fxr://";
|
||||
static const hstring FXRMIN_SCHEME = L"fxrmin";
|
||||
static const hstring FXRMIN_SCHEME_SLASH_SLASH = L"fxrmin://";
|
||||
|
||||
struct BrowserPage : BrowserPageT<BrowserPage>, public servo::DevtoolsDelegate {
|
||||
public:
|
||||
|
@ -37,8 +39,7 @@ public:
|
|||
OnURLKeyboardAccelerator(IInspectable const &,
|
||||
Input::KeyboardAcceleratorInvokedEventArgs const &);
|
||||
void Shutdown();
|
||||
void LoadServoURI(Uri uri);
|
||||
void SetTransientMode(bool);
|
||||
void LoadFXRURI(Uri uri);
|
||||
void SetArgs(hstring);
|
||||
void OnMediaControlsPlayClicked(IInspectable const &,
|
||||
RoutedEventArgs const &);
|
||||
|
@ -52,6 +53,7 @@ public:
|
|||
Collections::IObservableVector<IInspectable> ConsoleLogs() { return mLogs; };
|
||||
|
||||
private:
|
||||
void SetTransientMode(bool);
|
||||
void UpdatePref(ServoApp::Pref, Controls::Control);
|
||||
void BindServoEvents();
|
||||
void BuildPrefList();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue