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

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

Issue 1572703002: Use the screen info's scale factor to scale the drag image (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 virtual void setIgnoreViewportTagScaleLimits(bool) = 0; 279 virtual void setIgnoreViewportTagScaleLimits(bool) = 0;
280 280
281 // Returns the "preferred" contents size, defined as the preferred minimum w idth of the main document's contents 281 // Returns the "preferred" contents size, defined as the preferred minimum w idth of the main document's contents
282 // and the minimum height required to display the main document without scro llbars. 282 // and the minimum height required to display the main document without scro llbars.
283 // The returned size has the page zoom factor applied. 283 // The returned size has the page zoom factor applied.
284 virtual WebSize contentsPreferredMinimumSize() = 0; 284 virtual WebSize contentsPreferredMinimumSize() = 0;
285 285
286 // Sets the display mode of the web app. 286 // Sets the display mode of the web app.
287 virtual void setDisplayMode(WebDisplayMode) = 0; 287 virtual void setDisplayMode(WebDisplayMode) = 0;
288 288
289 // The ratio of the current device's screen DPI to the target device's scree n DPI.
290 virtual float deviceScaleFactor() const = 0;
291
292 // Sets the ratio as computed by computePageScaleConstraints. 289 // Sets the ratio as computed by computePageScaleConstraints.
293 // TODO(oshima): Remove this once the device scale factor implementation is fully 290 // TODO(oshima): Remove this once the device scale factor implementation is fully
294 // migrated to use zooming mechanism. 291 // migrated to use zooming mechanism.
295 virtual void setDeviceScaleFactor(float) = 0; 292 virtual void setDeviceScaleFactor(float) = 0;
296 293
297 // Sets the additional zoom factor used for device scale factor. This is use d 294 // Sets the additional zoom factor used for device scale factor. This is use d
298 // to scale the content by the device scale factor, without affecting zoom l evel. 295 // to scale the content by the device scale factor, without affecting zoom l evel.
299 virtual void setZoomFactorForDeviceScaleFactor(float) = 0; 296 virtual void setZoomFactorForDeviceScaleFactor(float) = 0;
300 297
301 // Set and reset the device color profile. 298 // Set and reset the device color profile.
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 // context's ability to deal with that failure gracefully can be tested. 487 // context's ability to deal with that failure gracefully can be tested.
491 virtual void forceNextDrawingBufferCreationToFail() = 0; 488 virtual void forceNextDrawingBufferCreationToFail() = 0;
492 489
493 protected: 490 protected:
494 ~WebView() {} 491 ~WebView() {}
495 }; 492 };
496 493
497 } // namespace blink 494 } // namespace blink
498 495
499 #endif 496 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698