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

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

Issue 1412663005: Introduce painted-device-scale-factor and use it when --enable-use-zoom-for-dsf is specified. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: export switch, remove WebWidgetClient::deviceScaleFactor Created 5 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
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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 // Sets the display mode of the web app. 287 // Sets the display mode of the web app.
288 virtual void setDisplayMode(WebDisplayMode) = 0; 288 virtual void setDisplayMode(WebDisplayMode) = 0;
289 289
290 // The ratio of the current device's screen DPI to the target device's scree n DPI. 290 // The ratio of the current device's screen DPI to the target device's scree n DPI.
291 virtual float deviceScaleFactor() const = 0; 291 virtual float deviceScaleFactor() const = 0;
292 292
293 // Sets the ratio as computed by computePageScaleConstraints. 293 // Sets the ratio as computed by computePageScaleConstraints.
294 virtual void setDeviceScaleFactor(float) = 0; 294 virtual void setDeviceScaleFactor(float) = 0;
295 295
296 // Sets the additional zoom factor used for device scale factor.
Rick Byers 2015/10/30 17:50:10 Can you please elaborate in this (and/or above) co
oshima 2015/10/30 18:14:18 So the idea is to use zoom *mechanism* to implemen
Rick Byers 2015/10/30 19:03:21 Makes sense, thanks! WebKit/public/ LGTM
297 virtual void setZoomFactorForDeviceScaleFactor(float) = 0;
298
296 // Set and reset the device color profile. 299 // Set and reset the device color profile.
297 virtual void setDeviceColorProfile(const WebVector<char>&) = 0; 300 virtual void setDeviceColorProfile(const WebVector<char>&) = 0;
298 virtual void resetDeviceColorProfile() = 0; 301 virtual void resetDeviceColorProfile() = 0;
299 302
300 // Auto-Resize ----------------------------------------------------------- 303 // Auto-Resize -----------------------------------------------------------
301 304
302 // In auto-resize mode, the view is automatically adjusted to fit the html 305 // In auto-resize mode, the view is automatically adjusted to fit the html
303 // content within the given bounds. 306 // content within the given bounds.
304 virtual void enableAutoResizeMode( 307 virtual void enableAutoResizeMode(
305 const WebSize& minSize, 308 const WebSize& minSize,
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 // context's ability to deal with that failure gracefully can be tested. 483 // context's ability to deal with that failure gracefully can be tested.
481 virtual void forceNextDrawingBufferCreationToFail() = 0; 484 virtual void forceNextDrawingBufferCreationToFail() = 0;
482 485
483 protected: 486 protected:
484 ~WebView() {} 487 ~WebView() {}
485 }; 488 };
486 489
487 } // namespace blink 490 } // namespace blink
488 491
489 #endif 492 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | third_party/WebKit/public/web/WebWidgetClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698