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

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

Issue 1844013002: Fix main thread top controls scrolling to mirror CC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@propertyTreesBoundsDelta
Patch Set: Build fix after rebase Created 4 years, 7 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 virtual void setDeviceScaleFactor(float) = 0; 278 virtual void setDeviceScaleFactor(float) = 0;
279 279
280 // Sets the additional zoom factor used for device scale factor. This is use d 280 // Sets the additional zoom factor used for device scale factor. This is use d
281 // to scale the content by the device scale factor, without affecting zoom l evel. 281 // to scale the content by the device scale factor, without affecting zoom l evel.
282 virtual void setZoomFactorForDeviceScaleFactor(float) = 0; 282 virtual void setZoomFactorForDeviceScaleFactor(float) = 0;
283 283
284 // Set and reset the device color profile. 284 // Set and reset the device color profile.
285 virtual void setDeviceColorProfile(const WebVector<char>&) = 0; 285 virtual void setDeviceColorProfile(const WebVector<char>&) = 0;
286 virtual void resetDeviceColorProfileForTesting() = 0; 286 virtual void resetDeviceColorProfileForTesting() = 0;
287 287
288 // Resize the view at the same time as changing the state of the top
289 // controls. If |topControlsShrinkLayout| is true, the embedder shrunk the
290 // WebView size by the top controls height.
291 virtual void resizeWithTopControls(
292 const WebSize&,
293 float topControlsHeight,
294 bool topControlsShrinkLayout) = 0;
295
288 // Auto-Resize ----------------------------------------------------------- 296 // Auto-Resize -----------------------------------------------------------
289 297
290 // In auto-resize mode, the view is automatically adjusted to fit the html 298 // In auto-resize mode, the view is automatically adjusted to fit the html
291 // content within the given bounds. 299 // content within the given bounds.
292 virtual void enableAutoResizeMode( 300 virtual void enableAutoResizeMode(
293 const WebSize& minSize, 301 const WebSize& minSize,
294 const WebSize& maxSize) = 0; 302 const WebSize& maxSize) = 0;
295 303
296 // Turn off auto-resize. 304 // Turn off auto-resize.
297 virtual void disableAutoResizeMode() = 0; 305 virtual void disableAutoResizeMode() = 0;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 // context's ability to deal with that failure gracefully can be tested. 488 // context's ability to deal with that failure gracefully can be tested.
481 virtual void forceNextDrawingBufferCreationToFail() = 0; 489 virtual void forceNextDrawingBufferCreationToFail() = 0;
482 490
483 protected: 491 protected:
484 ~WebView() {} 492 ~WebView() {}
485 }; 493 };
486 494
487 } // namespace blink 495 } // namespace blink
488 496
489 #endif 497 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | third_party/WebKit/public/web/WebWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698