| 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 ICCProfile; |
| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 // TODO(oshima): Remove this once the device scale factor implementation is | 314 // TODO(oshima): Remove this once the device scale factor implementation is |
| 311 // fully migrated to use zooming mechanism. | 315 // fully migrated to use zooming mechanism. |
| 312 virtual void setDeviceScaleFactor(float) = 0; | 316 virtual void setDeviceScaleFactor(float) = 0; |
| 313 | 317 |
| 314 // Sets the additional zoom factor used for device scale factor. This is used | 318 // Sets the additional zoom factor used for device scale factor. This is used |
| 315 // to scale the content by the device scale factor, without affecting zoom | 319 // to scale the content by the device scale factor, without affecting zoom |
| 316 // level. | 320 // level. |
| 317 virtual void setZoomFactorForDeviceScaleFactor(float) = 0; | 321 virtual void setZoomFactorForDeviceScaleFactor(float) = 0; |
| 318 | 322 |
| 319 // Set and reset the device color profile. | 323 // Set and reset the device color profile. |
| 320 virtual void setDeviceColorProfile(const WebVector<char>&) = 0; | 324 virtual void setDeviceColorProfile(const gfx::ICCProfile&) = 0; |
| 321 | 325 |
| 322 // Resize the view at the same time as changing the state of the top | 326 // Resize the view at the same time as changing the state of the top |
| 323 // controls. If |browserControlsShrinkLayout| is true, the embedder shrunk the | 327 // controls. If |browserControlsShrinkLayout| is true, the embedder shrunk the |
| 324 // WebView size by the browser controls height. | 328 // WebView size by the browser controls height. |
| 325 virtual void resizeWithBrowserControls(const WebSize&, | 329 virtual void resizeWithBrowserControls(const WebSize&, |
| 326 float browserControlsHeight, | 330 float browserControlsHeight, |
| 327 bool browserControlsShrinkLayout) = 0; | 331 bool browserControlsShrinkLayout) = 0; |
| 328 | 332 |
| 329 // Auto-Resize ----------------------------------------------------------- | 333 // Auto-Resize ----------------------------------------------------------- |
| 330 | 334 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 // completed. | 499 // completed. |
| 496 WebWidget* widget() { return this; } | 500 WebWidget* widget() { return this; } |
| 497 | 501 |
| 498 protected: | 502 protected: |
| 499 ~WebView() {} | 503 ~WebView() {} |
| 500 }; | 504 }; |
| 501 | 505 |
| 502 } // namespace blink | 506 } // namespace blink |
| 503 | 507 |
| 504 #endif | 508 #endif |
| OLD | NEW |