mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-11 09:08:06 +01:00
03c9156c80
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.
62 lines
2.1 KiB
C++
62 lines
2.1 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_UTIL_MAC_H_
|
|
#define CEF_LIBCEF_COMMON_UTIL_MAC_H_
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace base {
|
|
class FilePath;
|
|
}
|
|
|
|
namespace util_mac {
|
|
|
|
// Returns the path to the NSLibraryDirectory (e.g. "~/Library").
|
|
bool GetLocalLibraryDirectory(base::FilePath* result);
|
|
|
|
// Returns the path to the CEF framework directory inside the top-level app
|
|
// bundle (e.g. "myapp.app/Contents/Frameworks/Chromium Embedded
|
|
// Framework.framework"). May return an empty value if not running in an app
|
|
// bundle.
|
|
base::FilePath GetFrameworkDirectory();
|
|
|
|
// Returns the path to the Resources directory inside the CEF framework
|
|
// directory (e.g. "myapp.app/Contents/Frameworks/Chromium Embedded
|
|
// Framework.framework/Resources"). May return an empty value if not running in
|
|
// an app bundle.
|
|
base::FilePath GetFrameworkResourcesDirectory();
|
|
|
|
// Returns the path to the main (running) process executable (e.g.
|
|
// "myapp.app/Contents/MacOS/myapp").
|
|
base::FilePath GetMainProcessPath();
|
|
|
|
// Returns the path to the top-level app bundle that contains the main process
|
|
// executable (e.g. "myapp.app").
|
|
base::FilePath GetMainBundlePath();
|
|
|
|
// Returns the identifier for the top-level app bundle.
|
|
std::string GetMainBundleID();
|
|
|
|
// Returns the path to the Resources directory inside the top-level app bundle
|
|
// (e.g. "myapp.app/Contents/Resources"). May return an empty value if not
|
|
// running in an app bundle.
|
|
base::FilePath GetMainResourcesDirectory();
|
|
|
|
// Returns the path to the child process executable (e.g. "myapp.app/
|
|
// Contents/Frameworks/myapp Helper.app/Contents/MacOS/myapp Helper"). May
|
|
// return an empty value if not running in an app bundle.
|
|
base::FilePath GetChildProcessPath();
|
|
|
|
// Called from MainDelegate::PreSandboxStartup for the main process.
|
|
void PreSandboxStartup();
|
|
|
|
// Called from MainDelegate::BasicStartupComplete for all processes.
|
|
void BasicStartupComplete();
|
|
|
|
} // namespace util_mac
|
|
|
|
#endif // CEF_LIBCEF_COMMON_UTIL_MAC_H_
|