Commit 6f96a48d authored by Erik Luo's avatar Erik Luo Committed by Commit Bot

DevTools: update Console watch name to Live

Screenshot: https://imgur.com/a/fD18yf6

Bug: 849875
Change-Id: Ida8934b5a2607b49d9ca1f93d1714fdbe568270c
Reviewed-on: https://chromium-review.googlesource.com/1196008Reviewed-by: default avatarJoel Einbinder <einbinder@chromium.org>
Commit-Queue: Erik Luo <luoe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#587370}
parent 21285717
...@@ -32,12 +32,12 @@ Console.ConsolePinPane = class extends UI.ThrottledWidget { ...@@ -32,12 +32,12 @@ Console.ConsolePinPane = class extends UI.ThrottledWidget {
const targetPinElement = target.enclosingNodeOrSelfWithClass('console-pin'); const targetPinElement = target.enclosingNodeOrSelfWithClass('console-pin');
if (targetPinElement) { if (targetPinElement) {
const targetPin = targetPinElement[Console.ConsolePin._PinSymbol]; const targetPin = targetPinElement[Console.ConsolePin._PinSymbol];
contextMenu.editSection().appendItem(ls`Edit pin`, targetPin.focus.bind(targetPin)); contextMenu.editSection().appendItem(ls`Edit expression`, targetPin.focus.bind(targetPin));
contextMenu.editSection().appendItem(ls`Remove pin`, this._removePin.bind(this, targetPin)); contextMenu.editSection().appendItem(ls`Remove expression`, this._removePin.bind(this, targetPin));
targetPin.appendToContextMenu(contextMenu); targetPin.appendToContextMenu(contextMenu);
} }
} }
contextMenu.editSection().appendItem(ls`Remove all pins`, this._removeAllPins.bind(this)); contextMenu.editSection().appendItem(ls`Remove all expressions`, this._removeAllPins.bind(this));
contextMenu.show(); contextMenu.show();
} }
......
...@@ -105,12 +105,13 @@ Console.ConsoleView = class extends UI.VBox { ...@@ -105,12 +105,13 @@ Console.ConsoleView = class extends UI.VBox {
toolbar.appendSeparator(); toolbar.appendSeparator();
toolbar.appendToolbarItem(this._consoleContextSelector.toolbarItem()); toolbar.appendToolbarItem(this._consoleContextSelector.toolbarItem());
toolbar.appendSeparator(); toolbar.appendSeparator();
toolbar.appendToolbarItem(this._filter._textFilterUI);
toolbar.appendToolbarItem(this._filter._levelMenuButton);
if (Runtime.experiments.isEnabled('pinnedExpressions')) { if (Runtime.experiments.isEnabled('pinnedExpressions')) {
toolbar.appendToolbarItem(UI.Toolbar.createActionButton( toolbar.appendToolbarItem(UI.Toolbar.createActionButton(
/** @type {!UI.Action }*/ (UI.actionRegistry.action('console.create-pin')))); /** @type {!UI.Action }*/ (UI.actionRegistry.action('console.create-pin'))));
} }
toolbar.appendSeparator();
toolbar.appendToolbarItem(this._filter._textFilterUI);
toolbar.appendToolbarItem(this._filter._levelMenuButton);
toolbar.appendToolbarItem(this._progressToolbarItem); toolbar.appendToolbarItem(this._progressToolbarItem);
rightToolbar.appendSeparator(); rightToolbar.appendSeparator();
rightToolbar.appendToolbarItem(this._filterStatusText); rightToolbar.appendToolbarItem(this._filterStatusText);
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
"actionId": "console.create-pin", "actionId": "console.create-pin",
"iconClass": "largeicon-visibility", "iconClass": "largeicon-visibility",
"className": "Console.ConsoleView.ActionDelegate", "className": "Console.ConsoleView.ActionDelegate",
"title": "Create watch expression" "title": "Create live expression"
}, },
{ {
"type": "setting", "type": "setting",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment