Making an experimental command stable can break API |
|||
Issue description
If a command is made stable, we no longer generate the params builder for it if it takes no arguments. This will break any code using the experimental version.
Before:
devtools_client_->GetRuntime()->GetExperimental()->RunIfWaitingForDebugger(
runtime::RunIfWaitingForDebuggerParams::Builder().Build());
After:
devtools_client_->GetRuntime()->RunIfWaitingForDebugger();
,
Aug 25 2016
,
Aug 25 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/6b9268d993ae9fb5bcb2ec21082ac5fe4ec82dc0 commit 6b9268d993ae9fb5bcb2ec21082ac5fe4ec82dc0 Author: skyostil <skyostil@chromium.org> Date: Thu Aug 25 14:30:47 2016 headless: Ensure all commands have parameters and return types When generating C++ bindings, ensure all commands have a method which takes a full parameters object and returns a return value object. This ensures the API for experimental commands is retained even if that command is made stable. BUG= 640919 Review-Url: https://codereview.chromium.org/2278123002 Cr-Commit-Position: refs/heads/master@{#414431} [modify] https://crrev.com/6b9268d993ae9fb5bcb2ec21082ac5fe4ec82dc0/headless/lib/browser/client_api_generator.py [modify] https://crrev.com/6b9268d993ae9fb5bcb2ec21082ac5fe4ec82dc0/headless/lib/browser/client_api_generator_unittest.py [modify] https://crrev.com/6b9268d993ae9fb5bcb2ec21082ac5fe4ec82dc0/headless/lib/browser/domain_cc.template [modify] https://crrev.com/6b9268d993ae9fb5bcb2ec21082ac5fe4ec82dc0/headless/lib/browser/domain_h.template [modify] https://crrev.com/6b9268d993ae9fb5bcb2ec21082ac5fe4ec82dc0/headless/lib/headless_devtools_client_browsertest.cc
,
Aug 25 2016
|
|||
►
Sign in to add a comment |
|||
Comment 1 by bugdroid1@chromium.org
, Aug 25 2016