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

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

Issue 22747002: setViewportEnabled on InternalSettings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Mac compile issue: removed unused member variable Created 7 years, 4 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
« no previous file with comments | « Source/core/page/Settings.cpp ('k') | Source/core/testing/InternalSettings.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void setDefaultVideoPosterURL(const String& url, ExceptionState&); 90 void setDefaultVideoPosterURL(const String& url, ExceptionState&);
91 void setEditingBehavior(const String&, ExceptionState&); 91 void setEditingBehavior(const String&, ExceptionState&);
92 void setImagesEnabled(bool, ExceptionState&); 92 void setImagesEnabled(bool, ExceptionState&);
93 void setMediaTypeOverride(const String& mediaType, ExceptionState&); 93 void setMediaTypeOverride(const String& mediaType, ExceptionState&);
94 void setMockScrollbarsEnabled(bool, ExceptionState&); 94 void setMockScrollbarsEnabled(bool, ExceptionState&);
95 void setTextAutosizingEnabled(bool, ExceptionState&); 95 void setTextAutosizingEnabled(bool, ExceptionState&);
96 void setTextAutosizingFontScaleFactor(float fontScaleFactor, ExceptionState& ); 96 void setTextAutosizingFontScaleFactor(float fontScaleFactor, ExceptionState& );
97 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta te&); 97 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta te&);
98 void setTouchEventEmulationEnabled(bool, ExceptionState&); 98 void setTouchEventEmulationEnabled(bool, ExceptionState&);
99 void setUsesOverlayScrollbars(bool, ExceptionState&); 99 void setUsesOverlayScrollbars(bool, ExceptionState&);
100 void setViewportEnabled(bool, ExceptionState&);
100 101
101 // FIXME: This is a temporary flag and should be removed once accelerated 102 // FIXME: This is a temporary flag and should be removed once accelerated
102 // overflow scroll is ready (crbug.com/254111). 103 // overflow scroll is ready (crbug.com/254111).
103 void setCompositorDrivenAcceleratedScrollingEnabled(bool, ExceptionState&); 104 void setCompositorDrivenAcceleratedScrollingEnabled(bool, ExceptionState&);
104 105
105 // FIXME: The following are RuntimeEnabledFeatures and likely 106 // FIXME: The following are RuntimeEnabledFeatures and likely
106 // cannot be changed after process start. These setters should 107 // cannot be changed after process start. These setters should
107 // be removed or moved onto internals.runtimeFlags: 108 // be removed or moved onto internals.runtimeFlags:
108 void setAuthorShadowDOMForAnyElementEnabled(bool); 109 void setAuthorShadowDOMForAnyElementEnabled(bool);
109 void setCSSExclusionsEnabled(bool); 110 void setCSSExclusionsEnabled(bool);
110 void setExperimentalWebSocketEnabled(bool); 111 void setExperimentalWebSocketEnabled(bool);
111 void setLangAttributeAwareFormControlUIEnabled(bool); 112 void setLangAttributeAwareFormControlUIEnabled(bool);
112 void setLazyLayoutEnabled(bool); 113 void setLazyLayoutEnabled(bool);
113 void setStyleScopedEnabled(bool); 114 void setStyleScopedEnabled(bool);
114 115
115 private: 116 private:
116 explicit InternalSettings(Page*); 117 explicit InternalSettings(Page*);
117 118
118 Settings* settings() const; 119 Settings* settings() const;
119 Page* page() const { return m_page; } 120 Page* page() const { return m_page; }
120 static const char* supplementName(); 121 static const char* supplementName();
121 122
122 Page* m_page; 123 Page* m_page;
123 Backup m_backup; 124 Backup m_backup;
124 }; 125 };
125 126
126 } // namespace WebCore 127 } // namespace WebCore
127 128
128 #endif 129 #endif
OLDNEW
« no previous file with comments | « Source/core/page/Settings.cpp ('k') | Source/core/testing/InternalSettings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698