Commit ea4179e3 authored by Yuheng Huang's avatar Yuheng Huang Committed by Commit Bot

Devtools protocol: Add closeTabSearch to browser.executeBrowserCommand

Bug: 1099917
Change-Id: I2b1ebe5bbc25ac716cb7b44c469d9f7dd880ffc5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2503320Reviewed-by: default avatarAndrey Kosyakov <caseq@chromium.org>
Commit-Queue: Yuheng Huang <yuhengh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#825053}
parent ff22cdad
...@@ -200,7 +200,9 @@ protocol::Response BrowserHandler::ExecuteBrowserCommand( ...@@ -200,7 +200,9 @@ protocol::Response BrowserHandler::ExecuteBrowserCommand(
static auto& command_id_map = static auto& command_id_map =
*new std::map<protocol::Browser::BrowserCommandId, int>{ *new std::map<protocol::Browser::BrowserCommandId, int>{
{protocol::Browser::BrowserCommandIdEnum::OpenTabSearch, {protocol::Browser::BrowserCommandIdEnum::OpenTabSearch,
IDC_TAB_SEARCH}}; IDC_TAB_SEARCH},
{protocol::Browser::BrowserCommandIdEnum::CloseTabSearch,
IDC_TAB_SEARCH_CLOSE}};
if (command_id_map.count(command_id) == 0) { if (command_id_map.count(command_id) == 0) {
return Response::InvalidParams("Invalid BrowserCommandId: " + command_id); return Response::InvalidParams("Invalid BrowserCommandId: " + command_id);
} }
......
...@@ -859,6 +859,7 @@ domain Browser ...@@ -859,6 +859,7 @@ domain Browser
experimental type BrowserCommandId extends string experimental type BrowserCommandId extends string
enum enum
openTabSearch openTabSearch
closeTabSearch
# Set permission settings for given origin. # Set permission settings for given origin.
experimental command setPermission experimental command setPermission
......
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