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

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

Issue 1787913002: Clear page-defined constraints when viewportEnabled setting becomes false. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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) 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 WebPageImportanceSignals* pageImportanceSignals() override; 269 WebPageImportanceSignals* pageImportanceSignals() override;
270 void transferActiveWheelFlingAnimation(const WebActiveWheelFlingParameters&) override; 270 void transferActiveWheelFlingAnimation(const WebActiveWheelFlingParameters&) override;
271 bool endActiveFlingAnimation() override; 271 bool endActiveFlingAnimation() override;
272 bool isFlinging() const override { return !!m_gestureAnimation.get(); } 272 bool isFlinging() const override { return !!m_gestureAnimation.get(); }
273 void setShowPaintRects(bool) override; 273 void setShowPaintRects(bool) override;
274 void setShowDebugBorders(bool); 274 void setShowDebugBorders(bool);
275 void setShowFPSCounter(bool) override; 275 void setShowFPSCounter(bool) override;
276 void setShowScrollBottleneckRects(bool) override; 276 void setShowScrollBottleneckRects(bool) override;
277 void acceptLanguagesChanged() override; 277 void acceptLanguagesChanged() override;
278 278
279 // WebViewImpl 279 // WebViewImpl
pdr. 2016/03/12 06:36:08 Nit: this comment seems to just get cargoculted ar
skobes 2016/03/13 00:34:50 Done.
280 void enableViewport();
281 void disableViewport();
282
283 float defaultMinimumPageScaleFactor() const; 280 float defaultMinimumPageScaleFactor() const;
284 float defaultMaximumPageScaleFactor() const; 281 float defaultMaximumPageScaleFactor() const;
285 float minimumPageScaleFactor() const; 282 float minimumPageScaleFactor() const;
286 float maximumPageScaleFactor() const; 283 float maximumPageScaleFactor() const;
287 float clampPageScaleFactorToLimits(float) const; 284 float clampPageScaleFactorToLimits(float) const;
288 void resetScaleStateImmediately(); 285 void resetScaleStateImmediately();
289 286
290 HitTestResult coreHitTestResultAt(const WebPoint&); 287 HitTestResult coreHitTestResultAt(const WebPoint&);
291 void invalidateRect(const IntRect&); 288 void invalidateRect(const IntRect&);
292 289
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 }; 772 };
776 773
777 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 774 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
778 // 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
779 // WebViewImpl because WebViewImpl is the only implementation of WebView. 776 // WebViewImpl because WebViewImpl is the only implementation of WebView.
780 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 777 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
781 778
782 } // namespace blink 779 } // namespace blink
783 780
784 #endif 781 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/DevToolsEmulator.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698