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

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

Issue 263853008: Added pinch viewport offset to history item. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 | « public/web/WebHistoryItem.h ('k') | no next file » | 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 virtual WebFloatPoint pinchViewportOffset() const = 0; 265 virtual WebFloatPoint pinchViewportOffset() const = 0;
266 266
267 // PageScaleFactor will be force-clamped between minPageScale and maxPageSca le 267 // PageScaleFactor will be force-clamped between minPageScale and maxPageSca le
268 // (and these values will persist until setPageScaleFactorLimits is called 268 // (and these values will persist until setPageScaleFactorLimits is called
269 // again). 269 // again).
270 virtual void setPageScaleFactorLimits(float minPageScale, float maxPageScale ) = 0; 270 virtual void setPageScaleFactorLimits(float minPageScale, float maxPageScale ) = 0;
271 271
272 virtual float minimumPageScaleFactor() const = 0; 272 virtual float minimumPageScaleFactor() const = 0;
273 virtual float maximumPageScaleFactor() const = 0; 273 virtual float maximumPageScaleFactor() const = 0;
274 274
275 // Save the WebView's current scroll and scale state. Each call to this func tion
276 // overwrites the previously saved scroll and scale state.
277 virtual void saveScrollAndScaleState() = 0;
278
279 // Restore the previously saved scroll and scale state. After restoring the
280 // state, this function deletes any saved scroll and scale state.
281 virtual void restoreScrollAndScaleState() = 0;
282
283 // Reset any saved values for the scroll and scale state. 275 // Reset any saved values for the scroll and scale state.
284 virtual void resetScrollAndScaleState() = 0; 276 virtual void resetScrollAndScaleState() = 0;
285 277
286 // Prevent the web page from setting min/max scale via the viewport meta 278 // Prevent the web page from setting min/max scale via the viewport meta
287 // tag. This is an accessibility feature that lets folks zoom in to web 279 // tag. This is an accessibility feature that lets folks zoom in to web
288 // pages even if the web page tries to block scaling. 280 // pages even if the web page tries to block scaling.
289 virtual void setIgnoreViewportTagScaleLimits(bool) = 0; 281 virtual void setIgnoreViewportTagScaleLimits(bool) = 0;
290 282
291 // Returns the "preferred" contents size, defined as the preferred minimum w idth of the main document's contents 283 // Returns the "preferred" contents size, defined as the preferred minimum w idth of the main document's contents
292 // and the minimum height required to display the main document without scro llbars. 284 // and the minimum height required to display the main document without scro llbars.
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 497
506 // Testing functionality for TestRunner --------------------------------- 498 // Testing functionality for TestRunner ---------------------------------
507 499
508 protected: 500 protected:
509 ~WebView() {} 501 ~WebView() {}
510 }; 502 };
511 503
512 } // namespace blink 504 } // namespace blink
513 505
514 #endif 506 #endif
OLDNEW
« no previous file with comments | « public/web/WebHistoryItem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698