mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-22 15:07:42 +01:00
This change moves shared resource initialization to a common location and disables crash reporting initialization in chrome/ code via patch files. When using the Chrome runtime on macOS the Chrome application window will display, but web content is currently blank and the application does not exit cleanly. This will need to be debugged further in the future.
46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
// Copyright 2017 The Chromium Embedded Framework Authors. Portions copyright
|
|
// 2011 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 file.
|
|
|
|
#ifndef CEF_LIBCEF_COMMON_RESOURCE_UTIL_H_
|
|
#define CEF_LIBCEF_COMMON_RESOURCE_UTIL_H_
|
|
#pragma once
|
|
|
|
#include "include/cef_base.h"
|
|
|
|
#include "ui/base/resource/scale_factor.h"
|
|
|
|
namespace base {
|
|
class CommandLine;
|
|
class FilePath;
|
|
} // namespace base
|
|
|
|
namespace resource_util {
|
|
|
|
// Returns the directory that contains resource files (*.bin, *.dat, *.pak,
|
|
// etc).
|
|
base::FilePath GetResourcesDir();
|
|
|
|
// Returns the default path for the debug.log file.
|
|
base::FilePath GetDefaultLogFilePath();
|
|
|
|
// Called from MainDelegate::PreSandboxStartup.
|
|
void OverridePepperFlashSystemPluginPath();
|
|
void OverrideDefaultDownloadDir();
|
|
void OverrideUserDataDir(CefSettings* settings,
|
|
const base::CommandLine* command_line);
|
|
|
|
// Returns true if |scale_factor| is supported by this platform.
|
|
bool IsScaleFactorSupported(ui::ScaleFactor scale_factor);
|
|
|
|
#if defined(OS_LINUX)
|
|
// Look for binary files (*.bin, *.dat, *.pak, chrome-sandbox, libGLESv2.so,
|
|
// libEGL.so, locales/*.pak, swiftshader/*.so) next to libcef instead of the exe
|
|
// on Linux. This is already the default on Windows.
|
|
void OverrideAssetPath();
|
|
#endif
|
|
|
|
} // namespace resource_util
|
|
|
|
#endif // CEF_LIBCEF_COMMON_RESOURCE_UTIL_H_
|