|
| 1 | +// Generated by WebF TSDL, don't edit this file directly. |
| 2 | +// Generate command: node scripts/generate_binding_code.js |
| 3 | +// clang-format off |
1 | 4 | /* |
2 | 5 | * Copyright (C) 2022-present The WebF authors. All rights reserved. |
3 | 6 | */ |
4 | | - |
5 | | -#ifndef WEBF_CORE_RUST_API_CHARACTER_DATA_H_ |
6 | | -#define WEBF_CORE_RUST_API_CHARACTER_DATA_H_ |
7 | | - |
| 7 | +#ifndef WEBF_CORE_WEBF_API_PLUGIN_API_CHARACTER_DATA_H_ |
| 8 | +#define WEBF_CORE_WEBF_API_PLUGIN_API_CHARACTER_DATA_H_ |
| 9 | +#include <stdint.h> |
| 10 | +#include "core/native/vector_value_ref.h" |
| 11 | +#include "rust_readable.h" |
8 | 12 | #include "node.h" |
9 | | - |
10 | 13 | namespace webf { |
11 | | - |
12 | | -class EventTarget; |
13 | 14 | class SharedExceptionState; |
14 | 15 | class ExecutingContext; |
15 | | -class Event; |
16 | | - |
17 | | -struct CharacterDataPublicMethods : WebFPublicMethods { |
| 16 | +typedef struct NativeValue NativeValue; |
| 17 | +typedef struct AtomicStringRef AtomicStringRef; |
| 18 | +class CharacterData; |
| 19 | +using PublicCharacterDataGetData = AtomicStringRef (*)(CharacterData*); |
| 20 | +using PublicCharacterDataSetData = void (*)(CharacterData*, const char*, SharedExceptionState*); |
| 21 | +using PublicCharacterDataGetLength = int64_t (*)(CharacterData*); |
| 22 | +struct CharacterDataPublicMethods : public WebFPublicMethods { |
| 23 | + static AtomicStringRef Data(CharacterData* character_data); |
| 24 | + static void SetData(CharacterData* character_data, const char* data, SharedExceptionState* shared_exception_state); |
| 25 | + static int64_t Length(CharacterData* character_data); |
18 | 26 | double version{1.0}; |
19 | 27 | NodePublicMethods node; |
| 28 | + PublicCharacterDataGetData character_data_get_data{Data}; |
| 29 | + PublicCharacterDataSetData character_data_set_data{SetData}; |
| 30 | + PublicCharacterDataGetLength character_data_get_length{Length}; |
20 | 31 | }; |
21 | | - |
22 | 32 | } // namespace webf |
23 | | - |
24 | | -#endif // WEBF_CORE_RUST_API_CHARACTER_DATA_H_ |
| 33 | +#endif // WEBF_CORE_WEBF_API_PLUGIN_API_CHARACTER_DATA_H_ |
0 commit comments