Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Unified Diff: blimp/engine/app/engine_settings.h

Issue 1903873003: blimp: Update animation policy for images on the blimp engine. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove EngineSettings cc file. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/engine/BUILD.gn ('k') | blimp/engine/app/engine_settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/app/engine_settings.h
diff --git a/blimp/engine/app/engine_settings.h b/blimp/engine/app/engine_settings.h
index 99d5663a4a2c7a3d741c07de849a48290d8267d2..26fa779a91f2577b17de05386b69486bfe1a0510 100644
--- a/blimp/engine/app/engine_settings.h
+++ b/blimp/engine/app/engine_settings.h
@@ -5,16 +5,26 @@
#ifndef BLIMP_ENGINE_APP_ENGINE_SETTINGS_H_
#define BLIMP_ENGINE_APP_ENGINE_SETTINGS_H_
+#include "content/public/common/web_preferences.h"
+
namespace blimp {
namespace engine {
+// The EngineSettings includes all parameters which are configured for the
+// BlimpEngine and can be set by the client. This includes the values for
+// content::WebPreferences which override the default values.
struct EngineSettings {
+ EngineSettings() {}
+
// -------WebPreferences-------
- bool record_whole_document;
+ // These members mirror the parameters in content::WebPreferences. See
+ // content/public/common/web_preferences.h for details.
+
+ bool record_whole_document = false;
- EngineSettings();
- EngineSettings(const EngineSettings& other);
- ~EngineSettings();
+ // Disable animation in images by default.
+ content::ImageAnimationPolicy animation_policy =
+ content::ImageAnimationPolicy::IMAGE_ANIMATION_POLICY_NO_ANIMATION;
};
} // namespace engine
« no previous file with comments | « blimp/engine/BUILD.gn ('k') | blimp/engine/app/engine_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698