Add ui-debugger modes
Summary: ## This diff: Add debugger mode infrastructure We want to enable infrastructure allowing adding modes in the future without branching client and plugin code This infra allows for the client to send a message informing flipper about the supported modes (following diffs) Currently broadcasting mode change event over to the client Reviewed By: lblasa Differential Revision: D49385860 fbshipit-source-id: 2db6f65064d1ff7e1f57b2da93c3ed195400fb7f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c3ad4f7180
commit
1c3720fd5c
@@ -10,7 +10,7 @@
|
||||
import {getFlipperLib} from 'flipper-plugin';
|
||||
|
||||
import {FrameworkEventType, Tag} from '../ClientTypes';
|
||||
import {SelectionSource} from '../DesktopTypes';
|
||||
import {TraversalMode, SelectionSource} from '../DesktopTypes';
|
||||
|
||||
const UI_DEBUGGER_IDENTIFIER = 'ui-debugger';
|
||||
|
||||
@@ -67,6 +67,7 @@ type TrackerEvents = {
|
||||
'context-menu-expand-recursive': {};
|
||||
'context-menu-collapse-recursive': {};
|
||||
'context-menu-collapse-non-ancestors': {};
|
||||
'traversal-mode-updated': {mode: TraversalMode};
|
||||
};
|
||||
|
||||
export interface Tracker {
|
||||
|
||||
Reference in New Issue
Block a user