OLD | NEW |
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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 // TODO(oshima): Remove this once the device scale factor implementation is
fully | 320 // TODO(oshima): Remove this once the device scale factor implementation is
fully |
321 // migrated to use zooming mechanism. | 321 // migrated to use zooming mechanism. |
322 virtual void setDeviceScaleFactor(float) = 0; | 322 virtual void setDeviceScaleFactor(float) = 0; |
323 | 323 |
324 // Sets the additional zoom factor used for device scale factor. This is use
d | 324 // Sets the additional zoom factor used for device scale factor. This is use
d |
325 // to scale the content by the device scale factor, without affecting zoom l
evel. | 325 // to scale the content by the device scale factor, without affecting zoom l
evel. |
326 virtual void setZoomFactorForDeviceScaleFactor(float) = 0; | 326 virtual void setZoomFactorForDeviceScaleFactor(float) = 0; |
327 | 327 |
328 // Set and reset the device color profile. | 328 // Set and reset the device color profile. |
329 virtual void setDeviceColorProfile(const WebVector<char>&) = 0; | 329 virtual void setDeviceColorProfile(const WebVector<char>&) = 0; |
330 virtual void resetDeviceColorProfileForTesting() = 0; | |
331 | 330 |
332 // Resize the view at the same time as changing the state of the top | 331 // Resize the view at the same time as changing the state of the top |
333 // controls. If |topControlsShrinkLayout| is true, the embedder shrunk the | 332 // controls. If |topControlsShrinkLayout| is true, the embedder shrunk the |
334 // WebView size by the top controls height. | 333 // WebView size by the top controls height. |
335 virtual void resizeWithTopControls( | 334 virtual void resizeWithTopControls( |
336 const WebSize&, | 335 const WebSize&, |
337 float topControlsHeight, | 336 float topControlsHeight, |
338 bool topControlsShrinkLayout) = 0; | 337 bool topControlsShrinkLayout) = 0; |
339 | 338 |
340 // Auto-Resize ----------------------------------------------------------- | 339 // Auto-Resize ----------------------------------------------------------- |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 // completed. | 528 // completed. |
530 WebWidget* widget() { return this; } | 529 WebWidget* widget() { return this; } |
531 | 530 |
532 protected: | 531 protected: |
533 ~WebView() {} | 532 ~WebView() {} |
534 }; | 533 }; |
535 | 534 |
536 } // namespace blink | 535 } // namespace blink |
537 | 536 |
538 #endif | 537 #endif |
OLD | NEW |