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

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

Issue 2417783005: [Master/Overview CL] Make PageScaleFactor work for oopif subframe.
Patch Set: Rebase to master@{#429656}. Created 4 years, 1 month 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 | « third_party/WebKit/public/web/WebFrameClient.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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // Note: this has no effect on plugins. 266 // Note: this has no effect on plugins.
267 virtual float setTextZoomFactor(float) = 0; 267 virtual float setTextZoomFactor(float) = 0;
268 268
269 // Gets the scale factor of the page, where 1.0 is the normal size, > 1.0 269 // Gets the scale factor of the page, where 1.0 is the normal size, > 1.0
270 // is scaled up, < 1.0 is scaled down. 270 // is scaled up, < 1.0 is scaled down.
271 virtual float pageScaleFactor() const = 0; 271 virtual float pageScaleFactor() const = 0;
272 272
273 // Scales the page without affecting layout by using the visual viewport. 273 // Scales the page without affecting layout by using the visual viewport.
274 virtual void setPageScaleFactor(float) = 0; 274 virtual void setPageScaleFactor(float) = 0;
275 275
276 // Returns the scale factor clamped within the current limits.
277 virtual float clampPageScaleFactorToLimits(float) const = 0;
278
276 // Sets the offset of the visual viewport within the main frame, in 279 // Sets the offset of the visual viewport within the main frame, in
277 // partial CSS pixels. The offset will be clamped so the visual viewport 280 // partial CSS pixels. The offset will be clamped so the visual viewport
278 // stays within the frame's bounds. 281 // stays within the frame's bounds.
279 virtual void setVisualViewportOffset(const WebFloatPoint&) = 0; 282 virtual void setVisualViewportOffset(const WebFloatPoint&) = 0;
280 283
281 // Gets the visual viewport's current offset within the page's main frame, 284 // Gets the visual viewport's current offset within the page's main frame,
282 // in partial CSS pixels. 285 // in partial CSS pixels.
283 virtual WebFloatPoint visualViewportOffset() const = 0; 286 virtual WebFloatPoint visualViewportOffset() const = 0;
284 287
285 // Get the visual viewport's size in CSS pixels. 288 // Get the visual viewport's size in CSS pixels.
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 // completed. 533 // completed.
531 WebWidget* widget() { return this; } 534 WebWidget* widget() { return this; }
532 535
533 protected: 536 protected:
534 ~WebView() {} 537 ~WebView() {}
535 }; 538 };
536 539
537 } // namespace blink 540 } // namespace blink
538 541
539 #endif 542 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698