mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Allow embedder to bypass devtools prompt
This commit is contained in:
parent
3f999ce785
commit
8cf2f14baa
16 changed files with 83 additions and 35 deletions
|
@ -83,9 +83,9 @@ void show_context_menu(const char *title, const char *const *items_list,
|
|||
}
|
||||
|
||||
void on_devtools_started(Servo::DevtoolsServerState result,
|
||||
const unsigned int port) {
|
||||
sServo->Delegate().OnServoDevtoolsStarted(
|
||||
result == Servo::DevtoolsServerState::Started, port);
|
||||
const unsigned int port, const char *token) {
|
||||
auto state = result == Servo::DevtoolsServerState::Started;
|
||||
sServo->Delegate().OnServoDevtoolsStarted(state, port, char2hstring(token));
|
||||
}
|
||||
|
||||
void on_log_output(const char *buffer, uint32_t buffer_length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue