2024-04-17 18:01:26 +02:00
|
|
|
// Copyright 2024 The Chromium Embedded Framework Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2024-04-30 17:45:07 +02:00
|
|
|
#include "cef/libcef/browser/chrome/chrome_devtools_window_runner.h"
|
|
|
|
#include "cef/libcef/browser/devtools/devtools_window_runner.h"
|
|
|
|
#include "cef/libcef/features/runtime.h"
|
2024-04-17 18:01:26 +02:00
|
|
|
|
2024-04-30 03:09:17 +02:00
|
|
|
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
2024-04-30 17:45:07 +02:00
|
|
|
#include "cef/libcef/browser/alloy/devtools/alloy_devtools_window_runner.h"
|
2024-04-30 03:09:17 +02:00
|
|
|
#endif
|
|
|
|
|
2024-04-17 18:01:26 +02:00
|
|
|
// static
|
|
|
|
std::unique_ptr<CefDevToolsWindowRunner> CefDevToolsWindowRunner::Create() {
|
2024-04-30 03:09:17 +02:00
|
|
|
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
|
|
|
if (cef::IsAlloyRuntimeEnabled()) {
|
|
|
|
return std::make_unique<AlloyDevToolsWindowRunner>();
|
2024-04-17 18:01:26 +02:00
|
|
|
}
|
2024-04-30 03:09:17 +02:00
|
|
|
#endif
|
|
|
|
return std::make_unique<ChromeDevToolsWindowRunner>();
|
2024-04-17 18:01:26 +02:00
|
|
|
}
|