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

Side by Side Diff: third_party/WebKit/Source/core/testing/InternalSettings.h

Issue 1895293002: Test fragment scrolling and history restoration interaction w/ scroll anchoring. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 DEFINE_WRAPPERTYPEINFO(); 50 DEFINE_WRAPPERTYPEINFO();
51 public: 51 public:
52 class Backup { 52 class Backup {
53 DISALLOW_NEW(); 53 DISALLOW_NEW();
54 public: 54 public:
55 explicit Backup(Settings*); 55 explicit Backup(Settings*);
56 void restoreTo(Settings*); 56 void restoreTo(Settings*);
57 57
58 bool m_originalCSP; 58 bool m_originalCSP;
59 bool m_originalCSSStickyPositionEnabled; 59 bool m_originalCSSStickyPositionEnabled;
60 bool m_originalScrollAnchoringEnabled;
60 bool m_originalOverlayScrollbarsEnabled; 61 bool m_originalOverlayScrollbarsEnabled;
61 EditingBehaviorType m_originalEditingBehavior; 62 EditingBehaviorType m_originalEditingBehavior;
62 bool m_originalTextAutosizingEnabled; 63 bool m_originalTextAutosizingEnabled;
63 IntSize m_originalTextAutosizingWindowSizeOverride; 64 IntSize m_originalTextAutosizingWindowSizeOverride;
64 float m_originalAccessibilityFontScaleFactor; 65 float m_originalAccessibilityFontScaleFactor;
65 String m_originalMediaTypeOverride; 66 String m_originalMediaTypeOverride;
66 WebDisplayMode m_originalDisplayModeOverride; 67 WebDisplayMode m_originalDisplayModeOverride;
67 bool m_originalMockScrollbarsEnabled; 68 bool m_originalMockScrollbarsEnabled;
68 bool m_originalMockGestureTapHighlightsEnabled; 69 bool m_originalMockGestureTapHighlightsEnabled;
69 bool m_langAttributeAwareFormControlUIEnabled; 70 bool m_langAttributeAwareFormControlUIEnabled;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 void setAccessibilityFontScaleFactor(float fontScaleFactor, ExceptionState&) ; 106 void setAccessibilityFontScaleFactor(float fontScaleFactor, ExceptionState&) ;
106 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta te&); 107 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta te&);
107 void setViewportEnabled(bool, ExceptionState&); 108 void setViewportEnabled(bool, ExceptionState&);
108 void setViewportMetaEnabled(bool, ExceptionState&); 109 void setViewportMetaEnabled(bool, ExceptionState&);
109 void setCompositorWorkerEnabled(bool, ExceptionState&); 110 void setCompositorWorkerEnabled(bool, ExceptionState&);
110 111
111 // FIXME: The following are RuntimeEnabledFeatures and likely 112 // FIXME: The following are RuntimeEnabledFeatures and likely
112 // cannot be changed after process start. These setters should 113 // cannot be changed after process start. These setters should
113 // be removed or moved onto internals.runtimeFlags: 114 // be removed or moved onto internals.runtimeFlags:
114 void setCSSStickyPositionEnabled(bool); 115 void setCSSStickyPositionEnabled(bool);
116 void setScrollAnchoringEnabled(bool);
115 void setLangAttributeAwareFormControlUIEnabled(bool); 117 void setLangAttributeAwareFormControlUIEnabled(bool);
116 void setOverlayScrollbarsEnabled(bool); 118 void setOverlayScrollbarsEnabled(bool);
117 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); 119 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool);
118 void setImageColorProfilesEnabled(bool); 120 void setImageColorProfilesEnabled(bool);
119 void setImageAnimationPolicy(const String&, ExceptionState&); 121 void setImageAnimationPolicy(const String&, ExceptionState&);
120 void setScrollTopLeftInteropEnabled(bool); 122 void setScrollTopLeftInteropEnabled(bool);
121 void setLinkHeaderEnabled(bool); 123 void setLinkHeaderEnabled(bool);
122 124
123 DECLARE_VIRTUAL_TRACE(); 125 DECLARE_VIRTUAL_TRACE();
124 126
(...skipping 11 matching lines...) Expand all
136 Page* page() const { return m_page; } 138 Page* page() const { return m_page; }
137 static const char* supplementName(); 139 static const char* supplementName();
138 140
139 WeakMember<Page> m_page; 141 WeakMember<Page> m_page;
140 Backup m_backup; 142 Backup m_backup;
141 }; 143 };
142 144
143 } // namespace blink 145 } // namespace blink
144 146
145 #endif // InternalSettings_h 147 #endif // InternalSettings_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698