]> git.sesse.net Git - casparcg/blobdiff - dependencies64/cef/linux/include/cef_app.h
Upgrade CEF to 3.3029.1611.g44e39a8 / Chromium 58.0.3029.81.
[casparcg] / dependencies64 / cef / linux / include / cef_app.h
similarity index 86%
rename from dependencies64/cef/include/cef_app.h
rename to dependencies64/cef/linux/include/cef_app.h
index bac62281253aa1687b9cfad3e4209e72f5289e21..5aca29b30ebf145b991d96ff095f59ef7f9a5739 100644 (file)
@@ -89,11 +89,17 @@ void CefShutdown();
 
 ///
 // Perform a single iteration of CEF message loop processing. This function is
-// used to integrate the CEF message loop into an existing application message
-// loop. Care must be taken to balance performance against excessive CPU usage.
-// This function should only be called on the main application thread and only
-// if CefInitialize() is called with a CefSettings.multi_threaded_message_loop
-// value of false. This function will not block.
+// provided for cases where the CEF message loop must be integrated into an
+// existing application message loop. Use of this function is not recommended
+// for most users; use either the CefRunMessageLoop() function or
+// CefSettings.multi_threaded_message_loop if possible. When using this function
+// care must be taken to balance performance against excessive CPU usage. It is
+// recommended to enable the CefSettings.external_message_pump option when using
+// this function so that CefBrowserProcessHandler::OnScheduleMessagePumpWork()
+// callbacks can facilitate the scheduling process. This function should only be
+// called on the main application thread and only if CefInitialize() is called
+// with a CefSettings.multi_threaded_message_loop value of false. This function
+// will not block.
 ///
 /*--cef()--*/
 void CefDoMessageLoopWork();
@@ -124,12 +130,20 @@ void CefQuitMessageLoop();
 /*--cef()--*/
 void CefSetOSModalLoop(bool osModalLoop);
 
+///
+// Call during process startup to enable High-DPI support on Windows 7 or newer.
+// Older versions of Windows should be left DPI-unaware because they do not
+// support DirectWrite and GDI fonts are kerned very badly.
+///
+/*--cef(capi_name=cef_enable_highdpi_support)--*/
+void CefEnableHighDPISupport();
+
 ///
 // Implement this interface to provide handler implementations. Methods will be
 // called by the process and/or thread indicated.
 ///
 /*--cef(source=client,no_debugct_check)--*/
-class CefApp : public virtual CefBase {
+class CefApp : public virtual CefBaseRefCounted {
  public:
   ///
   // Provides an opportunity to view and/or modify command-line arguments before
@@ -156,7 +170,7 @@ class CefApp : public virtual CefBase {
   ///
   /*--cef()--*/
   virtual void OnRegisterCustomSchemes(
-      CefRefPtr<CefSchemeRegistrar> registrar) {
+      CefRawPtr<CefSchemeRegistrar> registrar) {
   }
 
   ///