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