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

Side by Side Diff: Source/web/WebSettingsImpl.h

Issue 467573002: Cleanup namespace usage in Source/web/Web*.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « Source/web/WebRemoteFrameImpl.h ('k') | Source/web/WebSharedWorkerImpl.h » ('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) 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 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebSettingsImpl_h 31 #ifndef WebSettingsImpl_h
32 #define WebSettingsImpl_h 32 #define WebSettingsImpl_h
33 33
34 #include "public/web/WebSettings.h" 34 #include "public/web/WebSettings.h"
35 35
36 namespace blink { 36 namespace blink {
37
37 class InspectorController; 38 class InspectorController;
38 class Settings; 39 class Settings;
39 }
40
41 namespace blink {
42 40
43 class WebSettingsImpl FINAL : public WebSettings { 41 class WebSettingsImpl FINAL : public WebSettings {
44 public: 42 public:
45 explicit WebSettingsImpl(blink::Settings*, blink::InspectorController*); 43 explicit WebSettingsImpl(Settings*, InspectorController*);
46 virtual ~WebSettingsImpl() { } 44 virtual ~WebSettingsImpl() { }
47 45
48 virtual bool mainFrameResizesAreOrientationChanges() const OVERRIDE; 46 virtual bool mainFrameResizesAreOrientationChanges() const OVERRIDE;
49 virtual bool shrinksViewportContentToFit() const OVERRIDE; 47 virtual bool shrinksViewportContentToFit() const OVERRIDE;
50 virtual bool viewportEnabled() const OVERRIDE; 48 virtual bool viewportEnabled() const OVERRIDE;
51 virtual void setAccelerated2dCanvasEnabled(bool) OVERRIDE; 49 virtual void setAccelerated2dCanvasEnabled(bool) OVERRIDE;
52 virtual void setAccelerated2dCanvasMSAASampleCount(int) OVERRIDE; 50 virtual void setAccelerated2dCanvasMSAASampleCount(int) OVERRIDE;
53 virtual void setAcceleratedCompositingEnabled(bool) OVERRIDE; 51 virtual void setAcceleratedCompositingEnabled(bool) OVERRIDE;
54 virtual void setAcceleratedCompositingForFixedPositionEnabled(bool) OVERRIDE ; 52 virtual void setAcceleratedCompositingForFixedPositionEnabled(bool) OVERRIDE ;
55 virtual void setAcceleratedCompositingForOverflowScrollEnabled(bool) OVERRID E; 53 virtual void setAcceleratedCompositingForOverflowScrollEnabled(bool) OVERRID E;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 bool supportDeprecatedTargetDensityDPI() const { return m_supportDeprecatedT argetDensityDPI; } 177 bool supportDeprecatedTargetDensityDPI() const { return m_supportDeprecatedT argetDensityDPI; }
180 bool useExpandedHeuristicsForGpuRasterization() const { return m_useExpanded HeuristicsForGpuRasterization; } 178 bool useExpandedHeuristicsForGpuRasterization() const { return m_useExpanded HeuristicsForGpuRasterization; }
181 bool viewportMetaLayoutSizeQuirk() const { return m_viewportMetaLayoutSizeQu irk; } 179 bool viewportMetaLayoutSizeQuirk() const { return m_viewportMetaLayoutSizeQu irk; }
182 bool viewportMetaNonUserScalableQuirk() const { return m_viewportMetaNonUser ScalableQuirk; } 180 bool viewportMetaNonUserScalableQuirk() const { return m_viewportMetaNonUser ScalableQuirk; }
183 bool clobberUserAgentInitialScaleQuirk() const { return m_clobberUserAgentIn itialScaleQuirk; } 181 bool clobberUserAgentInitialScaleQuirk() const { return m_clobberUserAgentIn itialScaleQuirk; }
184 182
185 void setMockGestureTapHighlightsEnabled(bool); 183 void setMockGestureTapHighlightsEnabled(bool);
186 bool mockGestureTapHighlightsEnabled() const; 184 bool mockGestureTapHighlightsEnabled() const;
187 185
188 private: 186 private:
189 blink::Settings* m_settings; 187 Settings* m_settings;
190 blink::InspectorController* m_inspectorController; 188 InspectorController* m_inspectorController;
191 bool m_showFPSCounter; 189 bool m_showFPSCounter;
192 bool m_showPaintRects; 190 bool m_showPaintRects;
193 bool m_renderVSyncNotificationEnabled; 191 bool m_renderVSyncNotificationEnabled;
194 bool m_autoZoomFocusedNodeToLegibleScale; 192 bool m_autoZoomFocusedNodeToLegibleScale;
195 bool m_deferredImageDecodingEnabled; 193 bool m_deferredImageDecodingEnabled;
196 bool m_doubleTapToZoomEnabled; 194 bool m_doubleTapToZoomEnabled;
197 bool m_perTilePaintingEnabled; 195 bool m_perTilePaintingEnabled;
198 bool m_supportDeprecatedTargetDensityDPI; 196 bool m_supportDeprecatedTargetDensityDPI;
199 bool m_shrinksViewportContentToFit; 197 bool m_shrinksViewportContentToFit;
200 bool m_useExpandedHeuristicsForGpuRasterization; 198 bool m_useExpandedHeuristicsForGpuRasterization;
201 // This quirk is to maintain compatibility with Android apps built on 199 // This quirk is to maintain compatibility with Android apps built on
202 // the Android SDK prior to and including version 18. Presumably, this 200 // the Android SDK prior to and including version 18. Presumably, this
203 // can be removed any time after 2015. See http://crbug.com/277369. 201 // can be removed any time after 2015. See http://crbug.com/277369.
204 bool m_viewportMetaLayoutSizeQuirk; 202 bool m_viewportMetaLayoutSizeQuirk;
205 // This quirk is to maintain compatibility with Android apps built on 203 // This quirk is to maintain compatibility with Android apps built on
206 // the Android SDK prior to and including version 18. Presumably, this 204 // the Android SDK prior to and including version 18. Presumably, this
207 // can be removed any time after 2015. See http://crbug.com/312691. 205 // can be removed any time after 2015. See http://crbug.com/312691.
208 bool m_viewportMetaNonUserScalableQuirk; 206 bool m_viewportMetaNonUserScalableQuirk;
209 // This quirk is to maintain compatibility with Android apps built on 207 // This quirk is to maintain compatibility with Android apps built on
210 // the Android SDK prior to and including version 18. Presumably, this 208 // the Android SDK prior to and including version 18. Presumably, this
211 // can be removed any time after 2015. See http://crbug.com/313754. 209 // can be removed any time after 2015. See http://crbug.com/313754.
212 bool m_clobberUserAgentInitialScaleQuirk; 210 bool m_clobberUserAgentInitialScaleQuirk;
213 bool m_mainFrameResizesAreOrientationChanges; 211 bool m_mainFrameResizesAreOrientationChanges;
214 }; 212 };
215 213
216 } // namespace blink 214 } // namespace blink
217 215
218 #endif 216 #endif
OLDNEW
« no previous file with comments | « Source/web/WebRemoteFrameImpl.h ('k') | Source/web/WebSharedWorkerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698