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

Side by Side Diff: Source/core/page/Settings.h

Issue 40423003: Experimental viewport meta tag support for desktop, Blink-side. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Android stylesheet and fixes Created 7 years, 1 month 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 reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserved.
3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
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 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulationEnab led = enabled; } 142 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulationEnab led = enabled; }
143 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulationEnab led; } 143 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulationEnab led; }
144 144
145 void setOpenGLMultisamplingEnabled(bool flag); 145 void setOpenGLMultisamplingEnabled(bool flag);
146 bool openGLMultisamplingEnabled(); 146 bool openGLMultisamplingEnabled();
147 147
148 void setViewportEnabled(bool); 148 void setViewportEnabled(bool);
149 bool viewportEnabled() const { return m_viewportEnabled; } 149 bool viewportEnabled() const { return m_viewportEnabled; }
150 150
151 void setViewportMetaEnabled(bool);
152 bool viewportMetaEnabled() const { return m_viewportMetaEnabled; }
153
151 // FIXME: This is a temporary flag and should be removed once accelerated 154 // FIXME: This is a temporary flag and should be removed once accelerated
152 // overflow scroll is ready (crbug.com/254111). 155 // overflow scroll is ready (crbug.com/254111).
153 void setCompositorDrivenAcceleratedScrollingEnabled(bool enabled) { m_compos itorDrivenAcceleratedScrollingEnabled = enabled; } 156 void setCompositorDrivenAcceleratedScrollingEnabled(bool enabled) { m_compos itorDrivenAcceleratedScrollingEnabled = enabled; }
154 bool isCompositorDrivenAcceleratedScrollingEnabled() const { return m_compos itorDrivenAcceleratedScrollingEnabled; } 157 bool isCompositorDrivenAcceleratedScrollingEnabled() const { return m_compos itorDrivenAcceleratedScrollingEnabled; }
155 158
156 private: 159 private:
157 explicit Settings(Page*); 160 explicit Settings(Page*);
158 161
159 Page* m_page; 162 Page* m_page;
160 163
(...skipping 17 matching lines...) Expand all
178 bool m_isJavaEnabled : 1; 181 bool m_isJavaEnabled : 1;
179 bool m_loadsImagesAutomatically : 1; 182 bool m_loadsImagesAutomatically : 1;
180 bool m_areImagesEnabled : 1; 183 bool m_areImagesEnabled : 1;
181 bool m_arePluginsEnabled : 1; 184 bool m_arePluginsEnabled : 1;
182 bool m_isScriptEnabled : 1; 185 bool m_isScriptEnabled : 1;
183 bool m_dnsPrefetchingEnabled : 1; 186 bool m_dnsPrefetchingEnabled : 1;
184 187
185 bool m_touchEventEmulationEnabled : 1; 188 bool m_touchEventEmulationEnabled : 1;
186 bool m_openGLMultisamplingEnabled : 1; 189 bool m_openGLMultisamplingEnabled : 1;
187 bool m_viewportEnabled : 1; 190 bool m_viewportEnabled : 1;
191 bool m_viewportMetaEnabled : 1;
188 192
189 // FIXME: This is a temporary flag and should be removed once accelerated 193 // FIXME: This is a temporary flag and should be removed once accelerated
190 // overflow scroll is ready (crbug.com/254111). 194 // overflow scroll is ready (crbug.com/254111).
191 bool m_compositorDrivenAcceleratedScrollingEnabled : 1; 195 bool m_compositorDrivenAcceleratedScrollingEnabled : 1;
192 196
193 Timer<Settings> m_setImageLoadingSettingsTimer; 197 Timer<Settings> m_setImageLoadingSettingsTimer;
194 void imageLoadingSettingsTimerFired(Timer<Settings>*); 198 void imageLoadingSettingsTimerFired(Timer<Settings>*);
195 }; 199 };
196 200
197 } // namespace WebCore 201 } // namespace WebCore
198 202
199 #endif // Settings_h 203 #endif // Settings_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698