You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param height A CSS-like size specification, such as '100px' or '12ex'.
2903
+
* @param height A CSS-like size specification, such as `100px` or `12ex`.
2923
2904
*/
2924
2905
setHeight(height: string): void;
2925
2906
/**
2926
2907
* Sets an expression that is evaluated within the inspected page. The result is displayed in the sidebar pane.
2927
2908
* @param expression An expression to be evaluated in context of the inspected page. JavaScript objects and DOM nodes are displayed in an expandable tree similar to the console/watch.
2928
2909
* @param rootTitle An optional title for the root of the expression tree.
2929
-
* @param callback A callback invoked after the sidebar pane is updated with the expression evaluation results.
* Sets an expression that is evaluated within the inspected page. The result is displayed in the sidebar pane.
2934
-
* @param expression An expression to be evaluated in context of the inspected page. JavaScript objects and DOM nodes are displayed in an expandable tree similar to the console/watch.
2935
-
* @param callback A callback invoked after the sidebar pane is updated with the expression evaluation results.
* Sets an HTML page to be displayed in the sidebar pane.
2953
2926
* @param path Relative path of an extension page to display within the sidebar.
2954
2927
*/
2955
2928
setPage(path: string): void;
2956
2929
/** Fired when the sidebar pane becomes visible as a result of user switching to the panel that hosts it. */
2957
-
onShown: ExtensionSidebarPaneShownEvent;
2930
+
onShown: events.Event<(window: Window) => void>;
2958
2931
/** Fired when the sidebar pane becomes hidden as a result of the user switching away from the panel that hosts the sidebar pane. */
2959
-
onHidden: ExtensionSidebarPaneHiddenEvent;
2932
+
onHidden: events.Event<() => void>;
2960
2933
}
2961
2934
2962
2935
/** Elements panel. */
2963
-
export var elements: ElementsPanel;
2964
-
/**
2965
-
* @since Chrome 38
2966
-
* Sources panel.
2967
-
*/
2968
-
export var sources: SourcesPanel;
2936
+
export const elements: ElementsPanel;
2937
+
2938
+
/** Sources panel. */
2939
+
export const sources: SourcesPanel;
2969
2940
2970
2941
/**
2971
2942
* Creates an extension panel.
2972
2943
* @param title Title that is displayed next to the extension icon in the Developer Tools toolbar.
2973
2944
* @param iconPath Path of the panel's icon relative to the extension directory.
2974
2945
* @param pagePath Path of the panel's HTML page relative to the extension directory.
2975
-
* @param callback A function that is called when the panel is created.
2976
-
* Parameter panel: An ExtensionPanel object representing the created panel.
2977
2946
*/
2978
2947
export function create(
2979
2948
title: string,
2980
2949
iconPath: string,
2981
2950
pagePath: string,
2982
-
callback?: (panel: ExtensionPanel) => void,
2951
+
callback?: (
2952
+
/** An ExtensionPanel object representing the created panel. */
2953
+
panel: ExtensionPanel,
2954
+
) => void,
2983
2955
): void;
2984
-
/**
2985
-
* Specifies the function to be called when the user clicks a resource link in the Developer Tools window. To unset the handler, either call the method with no parameters or pass null as the parameter.
2986
-
* @param callback A function that is called when the user clicks on a valid resource link in Developer Tools window. Note that if the user clicks an invalid URL or an XHR, this function is not called.
2987
-
* Parameter resource: A devtools.inspectedWindow.Resource object for the resource that was clicked.
2988
-
* Parameter lineNumber: Specifies the line number within the resource that was clicked.
2989
-
*/
2956
+
2957
+
/** Specifies the function to be called when the user clicks a resource link in the Developer Tools window. To unset the handler, either call the method with no parameters or pass null as the parameter. */
0 commit comments