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

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

Issue 428633004: Webkit setting for embedders that do not support fullscreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: nits Created 6 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // these functions have a 1:1 mapping with the methods in WebCore/page/Settings. h. 45 // these functions have a 1:1 mapping with the methods in WebCore/page/Settings. h.
46 class WebSettings { 46 class WebSettings {
47 public: 47 public:
48 enum EditingBehavior { 48 enum EditingBehavior {
49 EditingBehaviorMac, 49 EditingBehaviorMac,
50 EditingBehaviorWin, 50 EditingBehaviorWin,
51 EditingBehaviorUnix, 51 EditingBehaviorUnix,
52 EditingBehaviorAndroid 52 EditingBehaviorAndroid
53 }; 53 };
54 54
55 virtual bool disallowFullscreenForNonMediaElements() const = 0;
philipj_slow 2014/07/30 12:11:18 In total there are now four functions to support t
Ignacio Solla 2014/07/30 14:40:00 See my other reply that explains why we need the t
philipj_slow 2014/07/30 15:47:17 I applied your patch locally and tried removing th
Ignacio Solla 2014/07/31 10:30:51 That's right, sorry. Removed now.
56 virtual bool fullscreenEnabled() const = 0;
55 virtual bool mainFrameResizesAreOrientationChanges() const = 0; 57 virtual bool mainFrameResizesAreOrientationChanges() const = 0;
56 virtual bool shrinksViewportContentToFit() const = 0; 58 virtual bool shrinksViewportContentToFit() const = 0;
57 virtual bool scrollAnimatorEnabled() const = 0; 59 virtual bool scrollAnimatorEnabled() const = 0;
58 virtual bool touchEditingEnabled() const = 0; 60 virtual bool touchEditingEnabled() const = 0;
59 virtual bool viewportEnabled() const = 0; 61 virtual bool viewportEnabled() const = 0;
60 virtual bool viewportMetaEnabled() const = 0; 62 virtual bool viewportMetaEnabled() const = 0;
61 virtual void setAccelerated2dCanvasEnabled(bool) = 0; 63 virtual void setAccelerated2dCanvasEnabled(bool) = 0;
62 virtual void setAccelerated2dCanvasMSAASampleCount(int) = 0; 64 virtual void setAccelerated2dCanvasMSAASampleCount(int) = 0;
63 virtual void setAcceleratedCompositingEnabled(bool) = 0; 65 virtual void setAcceleratedCompositingEnabled(bool) = 0;
64 virtual void setAcceleratedCompositingForCanvasEnabled(bool) = 0; 66 virtual void setAcceleratedCompositingForCanvasEnabled(bool) = 0;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 virtual void setDeviceSupportsTouch(bool) = 0; 117 virtual void setDeviceSupportsTouch(bool) = 0;
116 virtual void setDoubleTapToZoomEnabled(bool) = 0; 118 virtual void setDoubleTapToZoomEnabled(bool) = 0;
117 virtual void setDownloadableBinaryFontsEnabled(bool) = 0; 119 virtual void setDownloadableBinaryFontsEnabled(bool) = 0;
118 virtual void setEditingBehavior(EditingBehavior) = 0; 120 virtual void setEditingBehavior(EditingBehavior) = 0;
119 virtual void setEnableScrollAnimator(bool) = 0; 121 virtual void setEnableScrollAnimator(bool) = 0;
120 virtual void setEnableTouchAdjustment(bool) = 0; 122 virtual void setEnableTouchAdjustment(bool) = 0;
121 virtual void setRegionBasedColumnsEnabled(bool) = 0; 123 virtual void setRegionBasedColumnsEnabled(bool) = 0;
122 virtual void setExperimentalWebGLEnabled(bool) = 0; 124 virtual void setExperimentalWebGLEnabled(bool) = 0;
123 virtual void setFantasyFontFamily(const WebString&, UScriptCode = USCRIPT_CO MMON) = 0; 125 virtual void setFantasyFontFamily(const WebString&, UScriptCode = USCRIPT_CO MMON) = 0;
124 virtual void setFixedFontFamily(const WebString&, UScriptCode = USCRIPT_COMM ON) = 0; 126 virtual void setFixedFontFamily(const WebString&, UScriptCode = USCRIPT_COMM ON) = 0;
127 virtual void setFullscreenEnabled(bool) = 0;
125 virtual void setHyperlinkAuditingEnabled(bool) = 0; 128 virtual void setHyperlinkAuditingEnabled(bool) = 0;
126 virtual void setIgnoreMainFrameOverflowHiddenQuirk(bool) = 0; 129 virtual void setIgnoreMainFrameOverflowHiddenQuirk(bool) = 0;
127 virtual void setImagesEnabled(bool) = 0; 130 virtual void setImagesEnabled(bool) = 0;
128 virtual void setJavaEnabled(bool) = 0; 131 virtual void setJavaEnabled(bool) = 0;
129 virtual void setJavaScriptCanAccessClipboard(bool) = 0; 132 virtual void setJavaScriptCanAccessClipboard(bool) = 0;
130 virtual void setJavaScriptCanOpenWindowsAutomatically(bool) = 0; 133 virtual void setJavaScriptCanOpenWindowsAutomatically(bool) = 0;
131 virtual void setJavaScriptEnabled(bool) = 0; 134 virtual void setJavaScriptEnabled(bool) = 0;
132 virtual void setLayerSquashingEnabled(bool) = 0; 135 virtual void setLayerSquashingEnabled(bool) = 0;
133 virtual void setLoadsImagesAutomatically(bool) = 0; 136 virtual void setLoadsImagesAutomatically(bool) = 0;
134 virtual void setLoadWithOverviewMode(bool) = 0; 137 virtual void setLoadWithOverviewMode(bool) = 0;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 virtual void setWideViewportQuirkEnabled(bool) = 0; 206 virtual void setWideViewportQuirkEnabled(bool) = 0;
204 virtual void setXSSAuditorEnabled(bool) = 0; 207 virtual void setXSSAuditorEnabled(bool) = 0;
205 208
206 protected: 209 protected:
207 ~WebSettings() { } 210 ~WebSettings() { }
208 }; 211 };
209 212
210 } // namespace blink 213 } // namespace blink
211 214
212 #endif 215 #endif
OLDNEW
« Source/core/frame/Settings.in ('K') | « Source/web/WebSettingsImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698