Add kPdfRenderer define for non-Windows platforms (see issue #3047)

This switch is currently only defined for Windows in
content/public/common/content_switches.h.
This commit is contained in:
Marshall Greenblatt 2021-12-02 12:36:59 -05:00
parent f4d5395c4b
commit 83ffc1f00d
2 changed files with 10 additions and 0 deletions

View File

@ -137,4 +137,10 @@ const char kFrameworkDirPath[] = "framework-dir-path";
const char kMainBundlePath[] = "main-bundle-path"; const char kMainBundlePath[] = "main-bundle-path";
#endif #endif
#if !defined(OS_WIN)
// Renderer process that runs the non-PPAPI PDF plugin.
// This is defined in content/public/common/content_switches.h for Windows.
const char kPdfRenderer[] = "pdf-renderer";
#endif
} // namespace switches } // namespace switches

View File

@ -62,6 +62,10 @@ extern const char kFrameworkDirPath[];
extern const char kMainBundlePath[]; extern const char kMainBundlePath[];
#endif #endif
#if !defined(OS_WIN)
extern const char kPdfRenderer[];
#endif
} // namespace switches } // namespace switches
#endif // CEF_LIBCEF_COMMON_CEF_SWITCHES_H_ #endif // CEF_LIBCEF_COMMON_CEF_SWITCHES_H_