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

Side by Side Diff: sky/engine/web/WebSettingsImpl.h

Issue 1210153009: Remove (almost all of) //sky/engine/web (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « sky/engine/web/WebRange.cpp ('k') | sky/engine/web/WebSettingsImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met:
7 *
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following disclaimer
12 * in the documentation and/or other materials provided with the
13 * distribution.
14 * * Neither the name of Google Inc. nor the names of its
15 * contributors may be used to endorse or promote products derived from
16 * this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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.
29 */
30
31 #ifndef SKY_ENGINE_WEB_WEBSETTINGSIMPL_H_
32 #define SKY_ENGINE_WEB_WEBSETTINGSIMPL_H_
33
34 #include "sky/engine/public/web/WebSettings.h"
35
36 namespace blink {
37
38 class Settings;
39
40 class WebSettingsImpl final : public WebSettings {
41 public:
42 explicit WebSettingsImpl(Settings*);
43 virtual ~WebSettingsImpl() { }
44
45 virtual bool mainFrameResizesAreOrientationChanges() const override;
46 virtual bool shrinksViewportContentToFit() const override;
47 virtual int availablePointerTypes() const override;
48 virtual PointerType primaryPointerType() const override;
49 virtual int availableHoverTypes() const override;
50 virtual HoverType primaryHoverType() const override;
51 virtual void setAccelerated2dCanvasEnabled(bool) override;
52 virtual void setAccelerated2dCanvasMSAASampleCount(int) override;
53 virtual void setAntialiased2dCanvasEnabled(bool) override;
54 virtual void setAsynchronousSpellCheckingEnabled(bool) override;
55 virtual void setContainerCullingEnabled(bool) override;
56 virtual void setCursiveFontFamily(const WebString&, UScriptCode = USCRIPT_CO MMON) override;
57 virtual void setDOMPasteAllowed(bool) override;
58 virtual void setDefaultFixedFontSize(int) override;
59 virtual void setDefaultFontSize(int) override;
60 virtual void setDefaultTextEncodingName(const WebString&) override;
61 virtual void setDefaultVideoPosterURL(const WebString&) override;
62 virtual void setDeferredImageDecodingEnabled(bool) override;
63 virtual void setDeviceSupportsMouse(bool) override;
64
65 // FIXME: Remove once the pointer/hover features are converted to use the
66 // new APIs (e.g. setPrimaryPointerType) on the chromium side
67 virtual void setDeviceSupportsTouch(bool) override;
68
69 virtual void setDownloadableBinaryFontsEnabled(bool) override;
70
71 virtual void setExperimentalWebGLEnabled(bool) override;
72 virtual void setFantasyFontFamily(const WebString&, UScriptCode = USCRIPT_CO MMON) override;
73 virtual void setFixedFontFamily(const WebString&, UScriptCode = USCRIPT_COMM ON) override;
74 virtual void setForceZeroLayoutHeight(bool) override;
75 virtual void setImagesEnabled(bool) override;
76 virtual void setJavaScriptCanAccessClipboard(bool) override;
77 virtual void setLoadsImagesAutomatically(bool) override;
78 virtual void setLoadWithOverviewMode(bool) override;
79 virtual void setMainFrameClipsContent(bool) override;
80 virtual void setMainFrameResizesAreOrientationChanges(bool) override;
81 virtual void setMediaControlsOverlayPlayButtonEnabled(bool) override;
82 virtual void setMinimumAccelerated2dCanvasSize(int) override;
83 virtual void setOpenGLMultisamplingEnabled(bool) override;
84 virtual void setPerTilePaintingEnabled(bool) override;
85 virtual void setPictographFontFamily(const WebString&, UScriptCode = USCRIPT _COMMON) override;
86 virtual void setAvailablePointerTypes(int) override;
87 virtual void setPrimaryPointerType(PointerType) override;
88 virtual void setAvailableHoverTypes(int) override;
89 virtual void setPrimaryHoverType(HoverType) override;
90 virtual void setRenderVSyncNotificationEnabled(bool) override;
91 virtual void setSansSerifFontFamily(const WebString&, UScriptCode = USCRIPT_ COMMON) override;
92 virtual void setSelectionIncludesAltImageText(bool) override;
93 virtual void setSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMM ON) override;
94 virtual void setShouldClearDocumentBackground(bool) override;
95 virtual void setShouldRespectImageOrientation(bool) override;
96 virtual void setShowPaintRects(bool) override;
97 virtual void setShrinksViewportContentToFit(bool) override;
98 virtual void setSmartInsertDeleteEnabled(bool) override;
99 virtual void setStandardFontFamily(const WebString&, UScriptCode = USCRIPT_C OMMON) override;
100 virtual void setSupportDeprecatedTargetDensityDPI(bool) override;
101 virtual void setTouchEditingEnabled(bool) override;
102 virtual void setUnifiedTextCheckerEnabled(bool) override;
103 virtual void setUseWideViewport(bool) override;
104 virtual void setWebGLErrorsToConsoleEnabled(bool) override;
105
106 bool showPaintRects() const { return m_showPaintRects; }
107 bool renderVSyncNotificationEnabled() const { return m_renderVSyncNotificati onEnabled; }
108 bool perTilePaintingEnabled() const { return m_perTilePaintingEnabled; }
109 bool supportDeprecatedTargetDensityDPI() const { return m_supportDeprecatedT argetDensityDPI; }
110
111 void setMockGestureTapHighlightsEnabled(bool);
112 bool mockGestureTapHighlightsEnabled() const;
113
114 private:
115 Settings* m_settings;
116 bool m_showPaintRects;
117 bool m_renderVSyncNotificationEnabled;
118 bool m_deferredImageDecodingEnabled;
119 bool m_perTilePaintingEnabled;
120 bool m_supportDeprecatedTargetDensityDPI;
121 bool m_shrinksViewportContentToFit;
122 bool m_mainFrameResizesAreOrientationChanges;
123 };
124
125 } // namespace blink
126
127 #endif // SKY_ENGINE_WEB_WEBSETTINGSIMPL_H_
OLDNEW
« no previous file with comments | « sky/engine/web/WebRange.cpp ('k') | sky/engine/web/WebSettingsImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698