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

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: 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 // The returned size has the page zoom factor applied. 284 // The returned size has the page zoom factor applied.
285 virtual WebSize contentsPreferredMinimumSize() = 0; 285 virtual WebSize contentsPreferredMinimumSize() = 0;
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 // TODO(oshima): Remove this once the device scale factor implementation is fully
295 // migrated to use zooming mechanism.
294 virtual void setDeviceScaleFactor(float) = 0; 296 virtual void setDeviceScaleFactor(float) = 0;
295 297
298 // Sets the additional zoom factor used for device scale factor. This is use d
299 // to scale the content by the device scale factor, without affecting zoom l evel.
300 virtual void setZoomFactorForDeviceScaleFactor(float) = 0;
301
296 // Set and reset the device color profile. 302 // Set and reset the device color profile.
297 virtual void setDeviceColorProfile(const WebVector<char>&) = 0; 303 virtual void setDeviceColorProfile(const WebVector<char>&) = 0;
298 virtual void resetDeviceColorProfile() = 0; 304 virtual void resetDeviceColorProfile() = 0;
299 305
300 // Auto-Resize ----------------------------------------------------------- 306 // Auto-Resize -----------------------------------------------------------
301 307
302 // In auto-resize mode, the view is automatically adjusted to fit the html 308 // In auto-resize mode, the view is automatically adjusted to fit the html
303 // content within the given bounds. 309 // content within the given bounds.
304 virtual void enableAutoResizeMode( 310 virtual void enableAutoResizeMode(
305 const WebSize& minSize, 311 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. 486 // context's ability to deal with that failure gracefully can be tested.
481 virtual void forceNextDrawingBufferCreationToFail() = 0; 487 virtual void forceNextDrawingBufferCreationToFail() = 0;
482 488
483 protected: 489 protected:
484 ~WebView() {} 490 ~WebView() {}
485 }; 491 };
486 492
487 } // namespace blink 493 } // namespace blink
488 494
489 #endif 495 #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