forked from ChromeDevTools/devtools-frontend
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e43a79a
commit afa8e85
Showing
5 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) Meta Platforms, Inc. and affiliates. | ||
// Copyright 2024 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import {type ReactNativeChromeDevToolsEvent} from './generated/type_defs/ReactNativeChromeDevToolsEventTypes.js'; | ||
|
||
type RNReliabilityMetrics = { | ||
sendEvent: (event: ReactNativeChromeDevToolsEvent) => void, | ||
}; | ||
|
||
export const RNReliabilityMetrics = ((): RNReliabilityMetrics => { | ||
function sendEvent(_event: ReactNativeChromeDevToolsEvent): void { | ||
} | ||
|
||
return { | ||
sendEvent, | ||
}; | ||
})(); |
36 changes: 36 additions & 0 deletions
36
...nd/core/react_native/generated/type_defs/ReactNativeChromeDevToolsDebuggerEventTypes.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* Copyright 2024 The Chromium Authors. All rights reserved. | ||
* Use of this source code is governed by a BSD-style license that can be | ||
* found in the LICENSE file. | ||
* | ||
* @generated by xplat/js/react-native-github/scripts/debugger-frontend/gen-type-defs.js | ||
*/ | ||
|
||
export type SetBreakpointEventEntryPoint = | ||
| "fileGutterClicked" | ||
| "savedStateRestored"; | ||
export type SetBreakpointEventType = | ||
| "logpoint" | ||
| "unconditionalBreakpoint" | ||
| "conditionalBreakpoint"; | ||
export type SetBreakpointRequestEvent = Readonly<{ | ||
event: "Debugger.SetBreakpoint.Request"; | ||
params: Readonly<{ | ||
entryPoint: SetBreakpointEventEntryPoint; | ||
requestID: string; | ||
type: SetBreakpointEventType; | ||
}>; | ||
}>; | ||
export type SetBreakpointResponseEvent = Readonly<{ | ||
event: "Debugger.SetBreakpoint.Response"; | ||
params: Readonly<{ breakpointID: string; requestID: string }>; | ||
}>; | ||
export type BreakpointResolvedEvent = Readonly<{ | ||
event: "Debugger.BreakpointResolved"; | ||
params: Readonly<{ breakpointID: string }>; | ||
}>; | ||
export type DebuggerPausedEvent = Readonly<{ | ||
event: "Debugger.Paused"; | ||
params: Readonly<{ breakpointID: null | undefined | string }>; | ||
}>; |
20 changes: 20 additions & 0 deletions
20
front_end/core/react_native/generated/type_defs/ReactNativeChromeDevToolsEventTypes.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* Copyright 2024 The Chromium Authors. All rights reserved. | ||
* Use of this source code is governed by a BSD-style license that can be | ||
* found in the LICENSE file. | ||
* | ||
* @generated by xplat/js/react-native-github/scripts/debugger-frontend/gen-type-defs.js | ||
*/ | ||
|
||
import type { | ||
BreakpointResolvedEvent, | ||
DebuggerPausedEvent, | ||
SetBreakpointRequestEvent, | ||
SetBreakpointResponseEvent, | ||
} from "ReactNativeChromeDevToolsDebuggerEventTypes"; | ||
export type ReactNativeChromeDevToolsEvent = | ||
| SetBreakpointRequestEvent | ||
| SetBreakpointResponseEvent | ||
| BreakpointResolvedEvent | ||
| DebuggerPausedEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters