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

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

Issue 1167503002: Remove obsolete pinch-zoom related code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix for broken SVG layout test Created 5 years, 6 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/core/frame/PinchViewport.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 virtual double zoomLevel() override; 194 virtual double zoomLevel() override;
195 virtual double setZoomLevel(double) override; 195 virtual double setZoomLevel(double) override;
196 virtual void zoomLimitsChanged(double minimumZoomLevel, double maximumZoomLe vel) override; 196 virtual void zoomLimitsChanged(double minimumZoomLevel, double maximumZoomLe vel) override;
197 virtual float textZoomFactor() override; 197 virtual float textZoomFactor() override;
198 virtual float setTextZoomFactor(float) override; 198 virtual float setTextZoomFactor(float) override;
199 virtual bool zoomToMultipleTargetsRect(const WebRect&) override; 199 virtual bool zoomToMultipleTargetsRect(const WebRect&) override;
200 virtual float pageScaleFactor() const override; 200 virtual float pageScaleFactor() const override;
201 virtual void setDefaultPageScaleLimits(float minScale, float maxScale) overr ide; 201 virtual void setDefaultPageScaleLimits(float minScale, float maxScale) overr ide;
202 virtual void setInitialPageScaleOverride(float) override; 202 virtual void setInitialPageScaleOverride(float) override;
203 virtual void setMaximumLegibleScale(float) override; 203 virtual void setMaximumLegibleScale(float) override;
204 virtual void setMainFrameScrollOffset(const WebPoint&) override;
205 virtual void setPageScaleFactor(float) override; 204 virtual void setPageScaleFactor(float) override;
206 virtual void setPinchViewportOffset(const WebFloatPoint&) override; 205 virtual void setPinchViewportOffset(const WebFloatPoint&) override;
207 virtual WebFloatPoint pinchViewportOffset() const override; 206 virtual WebFloatPoint pinchViewportOffset() const override;
208 virtual void resetScrollAndScaleState() override; 207 virtual void resetScrollAndScaleState() override;
209 virtual void setIgnoreViewportTagScaleLimits(bool) override; 208 virtual void setIgnoreViewportTagScaleLimits(bool) override;
210 virtual WebSize contentsPreferredMinimumSize() override; 209 virtual WebSize contentsPreferredMinimumSize() override;
211 virtual void setDisplayMode(WebDisplayMode) override; 210 virtual void setDisplayMode(WebDisplayMode) override;
212 211
213 virtual float deviceScaleFactor() const override; 212 virtual float deviceScaleFactor() const override;
214 virtual void setDeviceScaleFactor(float) override; 213 virtual void setDeviceScaleFactor(float) override;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 void setShowDebugBorders(bool); 271 void setShowDebugBorders(bool);
273 virtual void setShowFPSCounter(bool) override; 272 virtual void setShowFPSCounter(bool) override;
274 virtual void setContinuousPaintingEnabled(bool) override; 273 virtual void setContinuousPaintingEnabled(bool) override;
275 virtual void setShowScrollBottleneckRects(bool) override; 274 virtual void setShowScrollBottleneckRects(bool) override;
276 virtual void acceptLanguagesChanged() override; 275 virtual void acceptLanguagesChanged() override;
277 276
278 // WebViewImpl 277 // WebViewImpl
279 void enableViewport(); 278 void enableViewport();
280 void disableViewport(); 279 void disableViewport();
281 280
281 void setMainFrameScrollOffset(const WebPoint&);
282
282 float defaultMinimumPageScaleFactor() const; 283 float defaultMinimumPageScaleFactor() const;
283 float defaultMaximumPageScaleFactor() const; 284 float defaultMaximumPageScaleFactor() const;
284 float minimumPageScaleFactor() const; 285 float minimumPageScaleFactor() const;
285 float maximumPageScaleFactor() const; 286 float maximumPageScaleFactor() const;
286 float clampPageScaleFactorToLimits(float) const; 287 float clampPageScaleFactorToLimits(float) const;
287 288
288 HitTestResult coreHitTestResultAt(const WebPoint&); 289 HitTestResult coreHitTestResultAt(const WebPoint&);
289 void suppressInvalidations(bool enable); 290 void suppressInvalidations(bool enable);
290 void invalidateRect(const IntRect&); 291 void invalidateRect(const IntRect&);
291 292
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 }; 772 };
772 773
773 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 774 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
774 // We have no ways to check if the specified WebView is an instance of 775 // We have no ways to check if the specified WebView is an instance of
775 // WebViewImpl because WebViewImpl is the only implementation of WebView. 776 // WebViewImpl because WebViewImpl is the only implementation of WebView.
776 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 777 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
777 778
778 } // namespace blink 779 } // namespace blink
779 780
780 #endif 781 #endif
OLDNEW
« no previous file with comments | « Source/core/frame/PinchViewport.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698