| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 #include "../platform/WebColor.h" | 34 #include "../platform/WebColor.h" |
| 35 #include "../platform/WebDisplayMode.h" | 35 #include "../platform/WebDisplayMode.h" |
| 36 #include "../platform/WebDragOperation.h" | 36 #include "../platform/WebDragOperation.h" |
| 37 #include "../platform/WebFocusType.h" | 37 #include "../platform/WebFocusType.h" |
| 38 #include "../platform/WebPageVisibilityState.h" | 38 #include "../platform/WebPageVisibilityState.h" |
| 39 #include "../platform/WebString.h" | 39 #include "../platform/WebString.h" |
| 40 #include "../platform/WebVector.h" | 40 #include "../platform/WebVector.h" |
| 41 #include "WebWidget.h" | 41 #include "WebWidget.h" |
| 42 | 42 |
| 43 namespace gfx { | |
| 44 class ColorSpace; | |
| 45 } | |
| 46 | |
| 47 namespace blink { | 43 namespace blink { |
| 48 | 44 |
| 49 class WebAXObject; | 45 class WebAXObject; |
| 50 class WebCompositedDisplayList; | 46 class WebCompositedDisplayList; |
| 51 class WebCredentialManagerClient; | 47 class WebCredentialManagerClient; |
| 52 class WebFrame; | 48 class WebFrame; |
| 53 class WebHitTestResult; | 49 class WebHitTestResult; |
| 54 class WebLocalFrame; | 50 class WebLocalFrame; |
| 55 class WebPageImportanceSignals; | 51 class WebPageImportanceSignals; |
| 56 class WebPrerendererClient; | 52 class WebPrerendererClient; |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 // Sets the ratio as computed by computePageScaleConstraints. | 311 // Sets the ratio as computed by computePageScaleConstraints. |
| 316 // TODO(oshima): Remove this once the device scale factor implementation is | 312 // TODO(oshima): Remove this once the device scale factor implementation is |
| 317 // fully migrated to use zooming mechanism. | 313 // fully migrated to use zooming mechanism. |
| 318 virtual void setDeviceScaleFactor(float) = 0; | 314 virtual void setDeviceScaleFactor(float) = 0; |
| 319 | 315 |
| 320 // Sets the additional zoom factor used for device scale factor. This is used | 316 // Sets the additional zoom factor used for device scale factor. This is used |
| 321 // to scale the content by the device scale factor, without affecting zoom | 317 // to scale the content by the device scale factor, without affecting zoom |
| 322 // level. | 318 // level. |
| 323 virtual void setZoomFactorForDeviceScaleFactor(float) = 0; | 319 virtual void setZoomFactorForDeviceScaleFactor(float) = 0; |
| 324 | 320 |
| 325 // Set and reset the device color space. | 321 // Set and reset the device color profile. |
| 326 virtual void setDeviceColorSpace(const gfx::ColorSpace&) = 0; | 322 virtual void setDeviceColorProfile(const WebVector<char>&) = 0; |
| 327 | 323 |
| 328 // Resize the view at the same time as changing the state of the top | 324 // Resize the view at the same time as changing the state of the top |
| 329 // controls. If |browserControlsShrinkLayout| is true, the embedder shrunk the | 325 // controls. If |browserControlsShrinkLayout| is true, the embedder shrunk the |
| 330 // WebView size by the browser controls height. | 326 // WebView size by the browser controls height. |
| 331 virtual void resizeWithBrowserControls(const WebSize&, | 327 virtual void resizeWithBrowserControls(const WebSize&, |
| 332 float browserControlsHeight, | 328 float browserControlsHeight, |
| 333 bool browserControlsShrinkLayout) = 0; | 329 bool browserControlsShrinkLayout) = 0; |
| 334 | 330 |
| 335 // Auto-Resize ----------------------------------------------------------- | 331 // Auto-Resize ----------------------------------------------------------- |
| 336 | 332 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 // completed. | 497 // completed. |
| 502 WebWidget* widget() { return this; } | 498 WebWidget* widget() { return this; } |
| 503 | 499 |
| 504 protected: | 500 protected: |
| 505 ~WebView() {} | 501 ~WebView() {} |
| 506 }; | 502 }; |
| 507 | 503 |
| 508 } // namespace blink | 504 } // namespace blink |
| 509 | 505 |
| 510 #endif | 506 #endif |
| OLD | NEW |