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

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

Issue 871683002: Remove a number of unused features from WebViewImpl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/public/web/WebSettings.h ('k') | sky/engine/web/WebSettingsImpl.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, 2010, 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011, 2012 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // background-color style, this property is effectively ignored). 88 // background-color style, this property is effectively ignored).
89 // Setting this takes effect for the currently loaded page, if any, and 89 // Setting this takes effect for the currently loaded page, if any, and
90 // persists across subsequent navigations. Defaults to white prior to the 90 // persists across subsequent navigations. Defaults to white prior to the
91 // first call to this method. 91 // first call to this method.
92 virtual void setBaseBackgroundColor(WebColor) = 0; 92 virtual void setBaseBackgroundColor(WebColor) = 0;
93 93
94 // Controls whether pressing Tab key advances focus to links. 94 // Controls whether pressing Tab key advances focus to links.
95 virtual bool tabsToLinks() const = 0; 95 virtual bool tabsToLinks() const = 0;
96 virtual void setTabsToLinks(bool) = 0; 96 virtual void setTabsToLinks(bool) = 0;
97 97
98 // Method that controls whether pressing Tab key cycles through page
99 // elements or inserts a '\t' char in the focused text area.
100 virtual bool tabKeyCyclesThroughElements() const = 0;
101 virtual void setTabKeyCyclesThroughElements(bool) = 0;
102
103 // Controls the WebView's active state, which may affect the rendering 98 // Controls the WebView's active state, which may affect the rendering
104 // of elements on the page (i.e., tinting of input elements). 99 // of elements on the page (i.e., tinting of input elements).
105 virtual bool isActive() const = 0; 100 virtual bool isActive() const = 0;
106 virtual void setIsActive(bool) = 0; 101 virtual void setIsActive(bool) = 0;
107 102
108 // Frames -------------------------------------------------------------- 103 // Frames --------------------------------------------------------------
109 104
110 virtual WebFrame* mainFrame() = 0; 105 virtual WebFrame* mainFrame() = 0;
111 106
112 virtual void injectModule(const WebString& path) = 0; 107 virtual void injectModule(const WebString& path) = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 virtual void removeSpellingMarkersUnderWords(const WebVector<WebString>& wor ds) = 0; 143 virtual void removeSpellingMarkersUnderWords(const WebVector<WebString>& wor ds) = 0;
149 144
150 145
151 // Developer tools ----------------------------------------------------- 146 // Developer tools -----------------------------------------------------
152 147
153 // Set an override of device scale factor passed from WebView to 148 // Set an override of device scale factor passed from WebView to
154 // compositor. Pass zero to cancel override. This is used to implement 149 // compositor. Pass zero to cancel override. This is used to implement
155 // device metrics emulation. 150 // device metrics emulation.
156 virtual void setCompositorDeviceScaleFactorOverride(float) = 0; 151 virtual void setCompositorDeviceScaleFactorOverride(float) = 0;
157 152
158 // Called to inform the WebView that a wheel fling animation was started ext ernally (for instance
159 // by the compositor) but must be completed by the WebView.
160 virtual void transferActiveWheelFlingAnimation(const WebActiveWheelFlingPara meters&) = 0;
161
162 // Cancels an active fling, returning true if a fling was active.
163 virtual bool endActiveFlingAnimation() = 0;
164
165 virtual void setShowPaintRects(bool) = 0; 153 virtual void setShowPaintRects(bool) = 0;
166 virtual void setShowFPSCounter(bool) = 0;
167 virtual void setContinuousPaintingEnabled(bool) = 0; 154 virtual void setContinuousPaintingEnabled(bool) = 0;
168 virtual void setShowScrollBottleneckRects(bool) = 0; 155 virtual void setShowScrollBottleneckRects(bool) = 0;
169 156
170 // Visibility ----------------------------------------------------------- 157 // Visibility -----------------------------------------------------------
171 158
172 // Sets the visibility of the WebView. 159 // Sets the visibility of the WebView.
173 virtual void setVisibilityState(WebPageVisibilityState visibilityState, 160 virtual void setVisibilityState(WebPageVisibilityState visibilityState,
174 bool isInitialState) { } 161 bool isInitialState) { }
175 162
176 // i18n ----------------------------------------------------------------- 163 // i18n -----------------------------------------------------------------
177 164
178 // Inform the WebView that the accept languages have changed. 165 // Inform the WebView that the accept languages have changed.
179 // If the WebView wants to get the accept languages value, it will have 166 // If the WebView wants to get the accept languages value, it will have
180 // to call the WebViewClient::acceptLanguages(). 167 // to call the WebViewClient::acceptLanguages().
181 virtual void acceptLanguagesChanged() = 0; 168 virtual void acceptLanguagesChanged() = 0;
182 169
183 // Testing functionality for TestRunner --------------------------------- 170 // Testing functionality for TestRunner ---------------------------------
184 171
185 protected: 172 protected:
186 ~WebView() {} 173 ~WebView() {}
187 }; 174 };
188 175
189 } // namespace blink 176 } // namespace blink
190 177
191 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEW_H_ 178 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEW_H_
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebSettings.h ('k') | sky/engine/web/WebSettingsImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698