| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class WebAXObject; | 46 class WebAXObject; |
| 47 class WebAutofillClient; | 47 class WebAutofillClient; |
| 48 class WebCompositedDisplayList; | 48 class WebCompositedDisplayList; |
| 49 class WebCredentialManagerClient; | 49 class WebCredentialManagerClient; |
| 50 class WebDragData; | 50 class WebDragData; |
| 51 class WebFrame; | 51 class WebFrame; |
| 52 class WebHitTestResult; | 52 class WebHitTestResult; |
| 53 class WebPageImportanceSignals; |
| 53 class WebPageOverlay; | 54 class WebPageOverlay; |
| 54 class WebPrerendererClient; | 55 class WebPrerendererClient; |
| 55 class WebSettings; | 56 class WebSettings; |
| 56 class WebSpellCheckClient; | 57 class WebSpellCheckClient; |
| 57 class WebString; | 58 class WebString; |
| 58 class WebViewClient; | 59 class WebViewClient; |
| 59 struct WebActiveWheelFlingParameters; | 60 struct WebActiveWheelFlingParameters; |
| 60 struct WebDeviceEmulationParams; | 61 struct WebDeviceEmulationParams; |
| 62 struct WebFloatPoint; |
| 61 struct WebMediaPlayerAction; | 63 struct WebMediaPlayerAction; |
| 62 struct WebPluginAction; | 64 struct WebPluginAction; |
| 63 struct WebPoint; | 65 struct WebPoint; |
| 64 struct WebFloatPoint; | |
| 65 struct WebWindowFeatures; | 66 struct WebWindowFeatures; |
| 66 | 67 |
| 67 class WebView : public WebWidget { | 68 class WebView : public WebWidget { |
| 68 public: | 69 public: |
| 69 BLINK_EXPORT static const double textSizeMultiplierRatio; | 70 BLINK_EXPORT static const double textSizeMultiplierRatio; |
| 70 BLINK_EXPORT static const double minTextSizeMultiplier; | 71 BLINK_EXPORT static const double minTextSizeMultiplier; |
| 71 BLINK_EXPORT static const double maxTextSizeMultiplier; | 72 BLINK_EXPORT static const double maxTextSizeMultiplier; |
| 72 | 73 |
| 73 enum StyleInjectionTarget { | 74 enum StyleInjectionTarget { |
| 74 InjectStyleInAllFrames, | 75 InjectStyleInAllFrames, |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 | 449 |
| 449 // Graphics ------------------------------------------------------------- | 450 // Graphics ------------------------------------------------------------- |
| 450 | 451 |
| 451 virtual WebCompositedDisplayList* compositedDisplayList() { return nullptr;
} | 452 virtual WebCompositedDisplayList* compositedDisplayList() { return nullptr;
} |
| 452 | 453 |
| 453 // PageOverlay ---------------------------------------------------------- | 454 // PageOverlay ---------------------------------------------------------- |
| 454 | 455 |
| 455 // Overlay this WebView with a solid color. | 456 // Overlay this WebView with a solid color. |
| 456 virtual void setPageOverlayColor(WebColor) = 0; | 457 virtual void setPageOverlayColor(WebColor) = 0; |
| 457 | 458 |
| 459 // Page Importance Signals ---------------------------------------------- |
| 460 |
| 461 virtual WebPageImportanceSignals* pageImportanceSignals() { return nullptr;
} |
| 458 | 462 |
| 459 // i18n ----------------------------------------------------------------- | 463 // i18n ----------------------------------------------------------------- |
| 460 | 464 |
| 461 // Inform the WebView that the accept languages have changed. | 465 // Inform the WebView that the accept languages have changed. |
| 462 // If the WebView wants to get the accept languages value, it will have | 466 // If the WebView wants to get the accept languages value, it will have |
| 463 // to call the WebViewClient::acceptLanguages(). | 467 // to call the WebViewClient::acceptLanguages(). |
| 464 virtual void acceptLanguagesChanged() = 0; | 468 virtual void acceptLanguagesChanged() = 0; |
| 465 | 469 |
| 466 // Testing functionality for TestRunner --------------------------------- | 470 // Testing functionality for TestRunner --------------------------------- |
| 467 | 471 |
| 468 // Force the webgl context to fail so that webglcontextcreationerror | 472 // Force the webgl context to fail so that webglcontextcreationerror |
| 469 // event gets generated/tested. | 473 // event gets generated/tested. |
| 470 virtual void forceNextWebGLContextCreationToFail() = 0; | 474 virtual void forceNextWebGLContextCreationToFail() = 0; |
| 471 | 475 |
| 472 // Force the drawing buffer used by webgl contexts to fail so that the webgl | 476 // Force the drawing buffer used by webgl contexts to fail so that the webgl |
| 473 // context's ability to deal with that failure gracefully can be tested. | 477 // context's ability to deal with that failure gracefully can be tested. |
| 474 virtual void forceNextDrawingBufferCreationToFail() = 0; | 478 virtual void forceNextDrawingBufferCreationToFail() = 0; |
| 475 | 479 |
| 476 protected: | 480 protected: |
| 477 ~WebView() {} | 481 ~WebView() {} |
| 478 }; | 482 }; |
| 479 | 483 |
| 480 } // namespace blink | 484 } // namespace blink |
| 481 | 485 |
| 482 #endif | 486 #endif |
| OLD | NEW |