mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:08:12 +00:00
LibWeb/HTML: Port Location to new String
This commit is contained in:
parent
7800276c0f
commit
7d50be0b09
3 changed files with 74 additions and 56 deletions
|
@ -22,33 +22,33 @@ class Location final : public Bindings::PlatformObject {
|
|||
public:
|
||||
virtual ~Location() override;
|
||||
|
||||
DeprecatedString href() const;
|
||||
JS::ThrowCompletionOr<void> set_href(DeprecatedString const&);
|
||||
WebIDL::ExceptionOr<String> href() const;
|
||||
JS::ThrowCompletionOr<void> set_href(String const&);
|
||||
|
||||
DeprecatedString origin() const;
|
||||
WebIDL::ExceptionOr<String> origin() const;
|
||||
|
||||
DeprecatedString protocol() const;
|
||||
JS::ThrowCompletionOr<void> set_protocol(DeprecatedString const&);
|
||||
WebIDL::ExceptionOr<String> protocol() const;
|
||||
JS::ThrowCompletionOr<void> set_protocol(String const&);
|
||||
|
||||
DeprecatedString host() const;
|
||||
JS::ThrowCompletionOr<void> set_host(DeprecatedString const&);
|
||||
WebIDL::ExceptionOr<String> host() const;
|
||||
JS::ThrowCompletionOr<void> set_host(String const&);
|
||||
|
||||
DeprecatedString hostname() const;
|
||||
JS::ThrowCompletionOr<void> set_hostname(DeprecatedString const&);
|
||||
WebIDL::ExceptionOr<String> hostname() const;
|
||||
JS::ThrowCompletionOr<void> set_hostname(String const&);
|
||||
|
||||
DeprecatedString port() const;
|
||||
JS::ThrowCompletionOr<void> set_port(DeprecatedString const&);
|
||||
WebIDL::ExceptionOr<String> port() const;
|
||||
JS::ThrowCompletionOr<void> set_port(String const&);
|
||||
|
||||
DeprecatedString pathname() const;
|
||||
JS::ThrowCompletionOr<void> set_pathname(DeprecatedString const&);
|
||||
WebIDL::ExceptionOr<String> pathname() const;
|
||||
JS::ThrowCompletionOr<void> set_pathname(String const&);
|
||||
|
||||
DeprecatedString search() const;
|
||||
JS::ThrowCompletionOr<void> set_search(DeprecatedString const&);
|
||||
WebIDL::ExceptionOr<String> search() const;
|
||||
JS::ThrowCompletionOr<void> set_search(String const&);
|
||||
|
||||
DeprecatedString hash() const;
|
||||
JS::ThrowCompletionOr<void> set_hash(DeprecatedString const&);
|
||||
WebIDL::ExceptionOr<String> hash() const;
|
||||
JS::ThrowCompletionOr<void> set_hash(String const&);
|
||||
|
||||
void replace(DeprecatedString url) const;
|
||||
void replace(String const& url) const;
|
||||
void reload() const;
|
||||
|
||||
virtual JS::ThrowCompletionOr<JS::Object*> internal_get_prototype_of() const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue