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 2096633002: Adds scroll position/scale emulation to DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // Note: this has no effect on plugins. 264 // Note: this has no effect on plugins.
265 virtual float setTextZoomFactor(float) = 0; 265 virtual float setTextZoomFactor(float) = 0;
266 266
267 // Gets the scale factor of the page, where 1.0 is the normal size, > 1.0 267 // Gets the scale factor of the page, where 1.0 is the normal size, > 1.0
268 // is scaled up, < 1.0 is scaled down. 268 // is scaled up, < 1.0 is scaled down.
269 virtual float pageScaleFactor() const = 0; 269 virtual float pageScaleFactor() const = 0;
270 270
271 // Scales the page without affecting layout by using the visual viewport. 271 // Scales the page without affecting layout by using the visual viewport.
272 virtual void setPageScaleFactor(float) = 0; 272 virtual void setPageScaleFactor(float) = 0;
273 273
274 // Gets the main frame's current scroll offset in CSS pixels.
275 virtual WebPoint mainFrameOffset() const = 0;
276
274 // Sets the offset of the visual viewport within the main frame, in 277 // Sets the offset of the visual viewport within the main frame, in
275 // partial CSS pixels. The offset will be clamped so the visual viewport 278 // partial CSS pixels. The offset will be clamped so the visual viewport
276 // stays within the frame's bounds. 279 // stays within the frame's bounds.
277 virtual void setVisualViewportOffset(const WebFloatPoint&) = 0; 280 virtual void setVisualViewportOffset(const WebFloatPoint&) = 0;
278 281
279 // Gets the visual viewport's current offset within the page's main frame, 282 // Gets the visual viewport's current offset within the page's main frame,
280 // in partial CSS pixels. 283 // in partial CSS pixels.
281 virtual WebFloatPoint visualViewportOffset() const = 0; 284 virtual WebFloatPoint visualViewportOffset() const = 0;
282 285
283 // Get the visual viewport's size in CSS pixels. 286 // Get the visual viewport's size in CSS pixels.
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 // completed. 537 // completed.
535 WebWidget* widget() { return this; } 538 WebWidget* widget() { return this; }
536 539
537 protected: 540 protected:
538 ~WebView() {} 541 ~WebView() {}
539 }; 542 };
540 543
541 } // namespace blink 544 } // namespace blink
542 545
543 #endif 546 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698