mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
40 lines
1.6 KiB
C++
40 lines
1.6 KiB
C++
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
#pragma once
|
|
|
|
#include "BrowserPage.g.h"
|
|
#include "ServoControl\ServoControl.h"
|
|
|
|
namespace winrt::ServoApp::implementation {
|
|
|
|
static const hstring SERVO_SCHEME = L"fxr";
|
|
static const hstring SERVO_SCHEME_SLASH_SLASH = L"fxr://";
|
|
|
|
struct BrowserPage : BrowserPageT<BrowserPage> {
|
|
public:
|
|
BrowserPage();
|
|
|
|
void OnForwardButtonClicked(Windows::Foundation::IInspectable const &,
|
|
Windows::UI::Xaml::RoutedEventArgs const &);
|
|
void OnBackButtonClicked(Windows::Foundation::IInspectable const &,
|
|
Windows::UI::Xaml::RoutedEventArgs const &);
|
|
void OnReloadButtonClicked(Windows::Foundation::IInspectable const &,
|
|
Windows::UI::Xaml::RoutedEventArgs const &);
|
|
void OnStopButtonClicked(Windows::Foundation::IInspectable const &,
|
|
Windows::UI::Xaml::RoutedEventArgs const &);
|
|
void OnURLEdited(Windows::Foundation::IInspectable const &,
|
|
Windows::UI::Xaml::Input::KeyRoutedEventArgs const &);
|
|
void Shutdown();
|
|
void LoadServoURI(Windows::Foundation::Uri uri);
|
|
void SetTransientMode(bool);
|
|
|
|
private:
|
|
void BindServoEvents();
|
|
};
|
|
} // namespace winrt::ServoApp::implementation
|
|
|
|
namespace winrt::ServoApp::factory_implementation {
|
|
struct BrowserPage : BrowserPageT<BrowserPage, implementation::BrowserPage> {};
|
|
} // namespace winrt::ServoApp::factory_implementation
|