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

Side by Side Diff: sky/engine/public/web/WebSettings.h

Issue 654693004: Remove meta viewport and @viewport CSS rules. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 HoverTypeOnDemand = 2, 75 HoverTypeOnDemand = 2,
76 HoverTypeHover = 4 76 HoverTypeHover = 4
77 }; 77 };
78 78
79 virtual bool mainFrameResizesAreOrientationChanges() const = 0; 79 virtual bool mainFrameResizesAreOrientationChanges() const = 0;
80 virtual int availablePointerTypes() const = 0; 80 virtual int availablePointerTypes() const = 0;
81 virtual PointerType primaryPointerType() const = 0; 81 virtual PointerType primaryPointerType() const = 0;
82 virtual int availableHoverTypes() const = 0; 82 virtual int availableHoverTypes() const = 0;
83 virtual HoverType primaryHoverType() const = 0; 83 virtual HoverType primaryHoverType() const = 0;
84 virtual bool shrinksViewportContentToFit() const = 0; 84 virtual bool shrinksViewportContentToFit() const = 0;
85 virtual bool viewportEnabled() const = 0;
86 virtual void setAccelerated2dCanvasEnabled(bool) = 0; 85 virtual void setAccelerated2dCanvasEnabled(bool) = 0;
87 virtual void setAccelerated2dCanvasMSAASampleCount(int) = 0; 86 virtual void setAccelerated2dCanvasMSAASampleCount(int) = 0;
88 virtual void setPreferCompositingToLCDTextEnabled(bool) = 0; 87 virtual void setPreferCompositingToLCDTextEnabled(bool) = 0;
89 // Not implemented yet, see http://crbug.com/178119 88 // Not implemented yet, see http://crbug.com/178119
90 virtual void setAcceleratedCompositingForTransitionEnabled(bool) { }; 89 virtual void setAcceleratedCompositingForTransitionEnabled(bool) { };
91 // If set to true, allows frames with an https origin to display passive 90 // If set to true, allows frames with an https origin to display passive
92 // contents at an insecure URL. Otherwise, disallows it. The 91 // contents at an insecure URL. Otherwise, disallows it. The
93 // FrameLoaderClient set to the frame may override the value set by this 92 // FrameLoaderClient set to the frame may override the value set by this
94 // method. 93 // method.
95 virtual void setAccessibilityEnabled(bool) = 0; 94 virtual void setAccessibilityEnabled(bool) = 0;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 virtual void setSupportDeprecatedTargetDensityDPI(bool) = 0; 170 virtual void setSupportDeprecatedTargetDensityDPI(bool) = 0;
172 virtual void setTextAreasAreResizable(bool) = 0; 171 virtual void setTextAreasAreResizable(bool) = 0;
173 virtual void setAccessibilityFontScaleFactor(float) = 0; 172 virtual void setAccessibilityFontScaleFactor(float) = 0;
174 virtual void setTouchDragDropEnabled(bool) = 0; 173 virtual void setTouchDragDropEnabled(bool) = 0;
175 virtual void setTouchEditingEnabled(bool) = 0; 174 virtual void setTouchEditingEnabled(bool) = 0;
176 virtual void setUnifiedTextCheckerEnabled(bool) = 0; 175 virtual void setUnifiedTextCheckerEnabled(bool) = 0;
177 virtual void setUseSolidColorScrollbars(bool) = 0; 176 virtual void setUseSolidColorScrollbars(bool) = 0;
178 virtual void setUseWideViewport(bool) = 0; 177 virtual void setUseWideViewport(bool) = 0;
179 virtual void setV8CacheOptions(V8CacheOptions) = 0; 178 virtual void setV8CacheOptions(V8CacheOptions) = 0;
180 virtual void setValidationMessageTimerMagnification(int) = 0; 179 virtual void setValidationMessageTimerMagnification(int) = 0;
181 virtual void setViewportEnabled(bool) = 0;
182 virtual void setViewportMetaEnabled(bool) = 0;
183 virtual void setWebGLErrorsToConsoleEnabled(bool) = 0; 180 virtual void setWebGLErrorsToConsoleEnabled(bool) = 0;
184 virtual void setWebSecurityEnabled(bool) = 0; 181 virtual void setWebSecurityEnabled(bool) = 0;
185 182
186 protected: 183 protected:
187 ~WebSettings() { } 184 ~WebSettings() { }
188 }; 185 };
189 186
190 } // namespace blink 187 } // namespace blink
191 188
192 #endif 189 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698