mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Remove deprecated base::[Dictionary|List]Value API usage
This commit is contained in:
@ -49,21 +49,20 @@ CEF_PANEL_IMPL_T class CefPanelImpl : public CEF_VIEW_IMPL_D {
|
||||
CefRefPtr<CefPanel> AsPanel() override { return this; }
|
||||
|
||||
// CefViewAdapter methods:
|
||||
void GetDebugInfo(base::DictionaryValue* info,
|
||||
bool include_children) override {
|
||||
void GetDebugInfo(base::Value::Dict* info, bool include_children) override {
|
||||
ParentClass::GetDebugInfo(info, include_children);
|
||||
if (include_children) {
|
||||
const size_t count = ParentClass::content_view()->children().size();
|
||||
if (count > 0U) {
|
||||
std::unique_ptr<base::ListValue> children(new base::ListValue());
|
||||
base::Value::List children;
|
||||
|
||||
for (size_t i = 0U; i < count; ++i) {
|
||||
views::View* view = ParentClass::content_view()->children()[i];
|
||||
CefViewAdapter* adapter = CefViewAdapter::GetFor(view);
|
||||
if (adapter) {
|
||||
base::DictionaryValue child_info;
|
||||
base::Value::Dict child_info;
|
||||
adapter->GetDebugInfo(&child_info, include_children);
|
||||
children->Append(std::move(child_info));
|
||||
children.Append(std::move(child_info));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user