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

Side by Side Diff: third_party/WebKit/Source/core/frame/Settings.h

Issue 2850553002: Autoplay: use an autoplay policy setting in Blink. (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 4 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 10 matching lines...) Expand all
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #ifndef Settings_h 28 #ifndef Settings_h
29 #define Settings_h 29 #define Settings_h
30 30
31 #include <memory>
31 #include "bindings/core/v8/V8CacheOptions.h" 32 #include "bindings/core/v8/V8CacheOptions.h"
32 #include "bindings/core/v8/V8CacheStrategiesForCacheStorage.h" 33 #include "bindings/core/v8/V8CacheStrategiesForCacheStorage.h"
33 #include "core/CoreExport.h" 34 #include "core/CoreExport.h"
34 #include "core/SettingsMacros.h" 35 #include "core/SettingsMacros.h"
35 #include "core/editing/EditingBehaviorTypes.h" 36 #include "core/editing/EditingBehaviorTypes.h"
36 #include "core/editing/SelectionStrategy.h" 37 #include "core/editing/SelectionStrategy.h"
37 #include "core/events/AddEventListenerOptionsDefaults.h" 38 #include "core/events/AddEventListenerOptionsDefaults.h"
38 #include "core/frame/SettingsDelegate.h" 39 #include "core/frame/SettingsDelegate.h"
40 #include "core/html/media/AutoplayPolicy.h"
39 #include "core/html/track/TextTrackKindUserPreference.h" 41 #include "core/html/track/TextTrackKindUserPreference.h"
40 #include "core/loader/FrameLoaderTypes.h" 42 #include "core/loader/FrameLoaderTypes.h"
41 #include "platform/Timer.h" 43 #include "platform/Timer.h"
42 #include "platform/fonts/GenericFontFamilySettings.h" 44 #include "platform/fonts/GenericFontFamilySettings.h"
43 #include "platform/geometry/IntSize.h" 45 #include "platform/geometry/IntSize.h"
44 #include "platform/graphics/ImageAnimationPolicy.h" 46 #include "platform/graphics/ImageAnimationPolicy.h"
45 #include "platform/weborigin/KURL.h" 47 #include "platform/weborigin/KURL.h"
46 #include "public/platform/PointerProperties.h" 48 #include "public/platform/PointerProperties.h"
47 #include "public/platform/WebDisplayMode.h" 49 #include "public/platform/WebDisplayMode.h"
48 #include "public/platform/WebViewportStyle.h" 50 #include "public/platform/WebViewportStyle.h"
49 #include <memory>
50 51
51 namespace blink { 52 namespace blink {
52 53
53 class CORE_EXPORT Settings { 54 class CORE_EXPORT Settings {
54 WTF_MAKE_NONCOPYABLE(Settings); 55 WTF_MAKE_NONCOPYABLE(Settings);
55 USING_FAST_MALLOC(Settings); 56 USING_FAST_MALLOC(Settings);
56 57
57 public: 58 public:
58 static std::unique_ptr<Settings> Create(); 59 static std::unique_ptr<Settings> Create();
59 60
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 GenericFontFamilySettings generic_font_family_settings_; 93 GenericFontFamilySettings generic_font_family_settings_;
93 IntSize text_autosizing_window_size_override_; 94 IntSize text_autosizing_window_size_override_;
94 bool text_autosizing_enabled_ : 1; 95 bool text_autosizing_enabled_ : 1;
95 96
96 SETTINGS_MEMBER_VARIABLES 97 SETTINGS_MEMBER_VARIABLES
97 }; 98 };
98 99
99 } // namespace blink 100 } // namespace blink
100 101
101 #endif // Settings_h 102 #endif // Settings_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698