2013-05-14 06:45:34 +00:00
|
|
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE-CHROMIUM file.
|
|
|
|
|
2019-06-19 20:46:59 +00:00
|
|
|
#include "shell/browser/ui/devtools_ui.h"
|
2013-05-14 06:45:34 +00:00
|
|
|
|
2019-01-12 01:00:43 +00:00
|
|
|
#include <memory>
|
2013-05-14 06:45:34 +00:00
|
|
|
|
|
|
|
#include "content/public/browser/web_ui.h"
|
2024-11-13 15:04:39 +00:00
|
|
|
#include "shell/browser/ui/devtools_ui_bundle_data_source.h"
|
|
|
|
#include "shell/browser/ui/devtools_ui_theme_data_source.h"
|
2013-05-14 06:45:34 +00:00
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2013-05-14 06:45:34 +00:00
|
|
|
|
2015-08-27 19:54:05 +00:00
|
|
|
DevToolsUI::DevToolsUI(content::BrowserContext* browser_context,
|
|
|
|
content::WebUI* web_ui)
|
2013-11-17 22:53:38 +00:00
|
|
|
: WebUIController(web_ui) {
|
2024-09-26 09:12:12 +00:00
|
|
|
web_ui->SetBindings(content::BindingsPolicySet());
|
2019-01-12 01:00:43 +00:00
|
|
|
content::URLDataSource::Add(browser_context,
|
|
|
|
std::make_unique<BundledDataSource>());
|
2024-11-13 15:04:39 +00:00
|
|
|
content::URLDataSource::Add(browser_context,
|
|
|
|
std::make_unique<ThemeDataSource>());
|
2013-05-14 06:45:34 +00:00
|
|
|
}
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|