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

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

Issue 1400213002: Update telemetry tests that rely on window.innerWidth/Height. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Worked on review comments Created 5 years, 2 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 virtual void setPinchViewportOffset(const WebFloatPoint&) = 0; 246 virtual void setPinchViewportOffset(const WebFloatPoint&) = 0;
247 247
248 // Gets the visual viewport's current offset within the page's main frame, 248 // Gets the visual viewport's current offset within the page's main frame,
249 // in partial CSS pixels. 249 // in partial CSS pixels.
250 virtual WebFloatPoint visualViewportOffset() const = 0; 250 virtual WebFloatPoint visualViewportOffset() const = 0;
251 251
252 // TODO(bokan): Renamed to VisualViewport above, remove once chromium 252 // TODO(bokan): Renamed to VisualViewport above, remove once chromium
253 // side callers are renamed. 253 // side callers are renamed.
254 virtual WebFloatPoint pinchViewportOffset() const = 0; 254 virtual WebFloatPoint pinchViewportOffset() const = 0;
255 255
256 // Get the visual viewport's size in CSS pixels.
257 virtual WebFloatSize visualViewportSize() const = 0;
258
256 // Sets the default minimum, and maximum page scale. These will be overridde n 259 // Sets the default minimum, and maximum page scale. These will be overridde n
257 // by the page or by the overrides below if they are set. 260 // by the page or by the overrides below if they are set.
258 virtual void setDefaultPageScaleLimits( 261 virtual void setDefaultPageScaleLimits(
259 float minScale, 262 float minScale,
260 float maxScale) = 0; 263 float maxScale) = 0;
261 264
262 // Sets the initial page scale to the given factor. This scale setting overr ides 265 // Sets the initial page scale to the given factor. This scale setting overr ides
263 // page scale set in the page's viewport meta tag. 266 // page scale set in the page's viewport meta tag.
264 virtual void setInitialPageScaleOverride(float) = 0; 267 virtual void setInitialPageScaleOverride(float) = 0;
265 268
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 // context's ability to deal with that failure gracefully can be tested. 480 // context's ability to deal with that failure gracefully can be tested.
478 virtual void forceNextDrawingBufferCreationToFail() = 0; 481 virtual void forceNextDrawingBufferCreationToFail() = 0;
479 482
480 protected: 483 protected:
481 ~WebView() {} 484 ~WebView() {}
482 }; 485 };
483 486
484 } // namespace blink 487 } // namespace blink
485 488
486 #endif 489 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | tools/telemetry/telemetry/internal/actions/gesture_common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698