mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Support runtime configuration of renderer-related preferences (issue #1501).
- Persist modified user preferences including per-host zoom settings when a cache_path value is specified and persist_user_preferences is set to true via CefSettings or CefRequestContextSettings. - Avoid the need to duplicate files from chrome/ by having CefBrowserContext extend Chrome's Profile class.
This commit is contained in:
13
patch/patches/font_family_cache_1501.patch
Normal file
13
patch/patches/font_family_cache_1501.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git font_family_cache.h font_family_cache.h
|
||||
index d5ff699..71fa27b 100644
|
||||
--- font_family_cache.h
|
||||
+++ font_family_cache.h
|
||||
@@ -19,6 +19,8 @@ class Profile;
|
||||
|
||||
FORWARD_DECLARE_TEST(FontFamilyCacheTest, Caching);
|
||||
|
||||
+extern const char kFontFamilyCacheKey[];
|
||||
+
|
||||
// Caches font family preferences associated with a PrefService. This class
|
||||
// relies on the assumption that each concatenation of map_name + '.' + script
|
||||
// is a unique string. It also relies on the assumption that the (const char*)
|
24
patch/patches/renderer_preferences_util_545103.patch
Normal file
24
patch/patches/renderer_preferences_util_545103.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
diff --git renderer_preferences_util.cc renderer_preferences_util.cc
|
||||
index f7628fe..e2f1451 100644
|
||||
--- renderer_preferences_util.cc
|
||||
+++ renderer_preferences_util.cc
|
||||
@@ -25,7 +25,8 @@
|
||||
#include "ui/views/controls/textfield/textfield.h"
|
||||
#endif
|
||||
|
||||
-#if defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
||||
+#if defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS) && \
|
||||
+ defined(ENABLE_THEMES)
|
||||
#include "chrome/browser/themes/theme_service.h"
|
||||
#include "chrome/browser/themes/theme_service_factory.h"
|
||||
#include "ui/views/linux_ui/linux_ui.h"
|
||||
@@ -81,7 +82,8 @@ void UpdateFromSystemSettings(content::RendererPreferences* prefs,
|
||||
prefs->caret_blink_interval = views::Textfield::GetCaretBlinkMs() / 1000.0;
|
||||
#endif
|
||||
|
||||
-#if defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
||||
+#if defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS) && \
|
||||
+ defined(ENABLE_THEMES)
|
||||
views::LinuxUI* linux_ui = views::LinuxUI::instance();
|
||||
if (linux_ui) {
|
||||
if (ThemeServiceFactory::GetForProfile(profile)->UsingSystemTheme()) {
|
Reference in New Issue
Block a user