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

Side by Side Diff: public/web/WebView.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 | « public/web/WebSettings.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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // is scaled up, < 1.0 is scaled down. 223 // is scaled up, < 1.0 is scaled down.
224 virtual float pageScaleFactor() const = 0; 224 virtual float pageScaleFactor() const = 0;
225 225
226 // TODO: Obsolete, the origin parameter is ambiguous with two viewports. Rem ove 226 // TODO: Obsolete, the origin parameter is ambiguous with two viewports. Rem ove
227 // once Chromium side users are removed. 227 // once Chromium side users are removed.
228 // Scales a page by a factor of scaleFactor and then sets a scroll position to (x, y). 228 // Scales a page by a factor of scaleFactor and then sets a scroll position to (x, y).
229 // setPageScaleFactor() magnifies and shrinks a page without affecting layou t. 229 // setPageScaleFactor() magnifies and shrinks a page without affecting layou t.
230 // On the other hand, zooming affects layout of the page. 230 // On the other hand, zooming affects layout of the page.
231 virtual void setPageScaleFactor(float scaleFactor, const WebPoint& origin) { setPageScaleFactor(scaleFactor); } 231 virtual void setPageScaleFactor(float scaleFactor, const WebPoint& origin) { setPageScaleFactor(scaleFactor); }
232 232
233 // TODO: Reevaluate if this is needed once all users are converted to using the
234 // virtual viewport pinch model.
235 // Temporary to keep old style pinch viewport working while we gradually bri ng up
236 // virtual viewport pinch.
237 virtual void setMainFrameScrollOffset(const WebPoint& origin) = 0;
238
239 // Scales the page without affecting layout by using the pinch-to-zoom viewp ort. 233 // Scales the page without affecting layout by using the pinch-to-zoom viewp ort.
240 virtual void setPageScaleFactor(float) = 0; 234 virtual void setPageScaleFactor(float) = 0;
241 235
242 // Sets the offset of the pinch-to-zoom viewport within the main frame, in 236 // Sets the offset of the pinch-to-zoom viewport within the main frame, in
243 // partial CSS pixels. The offset will be clamped so the pinch viewport 237 // partial CSS pixels. The offset will be clamped so the pinch viewport
244 // stays within the frame's bounds. 238 // stays within the frame's bounds.
245 virtual void setPinchViewportOffset(const WebFloatPoint&) = 0; 239 virtual void setPinchViewportOffset(const WebFloatPoint&) = 0;
246 240
247 // Gets the pinch viewport's current offset within the page's main frame, 241 // Gets the pinch viewport's current offset within the page's main frame,
248 // in partial CSS pixels. 242 // in partial CSS pixels.
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 // context's ability to deal with that failure gracefully can be tested. 468 // context's ability to deal with that failure gracefully can be tested.
475 virtual void forceNextDrawingBufferCreationToFail() = 0; 469 virtual void forceNextDrawingBufferCreationToFail() = 0;
476 470
477 protected: 471 protected:
478 ~WebView() {} 472 ~WebView() {}
479 }; 473 };
480 474
481 } // namespace blink 475 } // namespace blink
482 476
483 #endif 477 #endif
OLDNEW
« no previous file with comments | « public/web/WebSettings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698