| 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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 virtual void setShowScrollBottleneckRects(bool) = 0; | 433 virtual void setShowScrollBottleneckRects(bool) = 0; |
| 434 | 434 |
| 435 // Visibility ----------------------------------------------------------- | 435 // Visibility ----------------------------------------------------------- |
| 436 | 436 |
| 437 // Sets the visibility of the WebView. | 437 // Sets the visibility of the WebView. |
| 438 virtual void setVisibilityState(WebPageVisibilityState visibilityState, | 438 virtual void setVisibilityState(WebPageVisibilityState visibilityState, |
| 439 bool isInitialState) { } | 439 bool isInitialState) { } |
| 440 | 440 |
| 441 // PageOverlay ---------------------------------------------------------- | 441 // PageOverlay ---------------------------------------------------------- |
| 442 | 442 |
| 443 // Adds/removes page overlay to this WebView. These functions change the | |
| 444 // graphical appearance of the WebView. WebPageOverlay paints the | |
| 445 // contents of the page overlay. It also provides an z-order number for | |
| 446 // the page overlay. The z-order number defines the paint order the page | |
| 447 // overlays. Page overlays with larger z-order number will be painted after | |
| 448 // page overlays with smaller z-order number. That is, they appear above | |
| 449 // the page overlays with smaller z-order number. If two page overlays have | |
| 450 // the same z-order number, the later added one will be on top. | |
| 451 virtual void addPageOverlay(WebPageOverlay*, int /*z-order*/) = 0; | |
| 452 | |
| 453 // Overlay this WebView with a solid color. | 443 // Overlay this WebView with a solid color. |
| 454 virtual void setPageOverlayColor(WebColor) = 0; | 444 virtual void setPageOverlayColor(WebColor) = 0; |
| 455 virtual void removePageOverlay(WebPageOverlay*) = 0; | |
| 456 | 445 |
| 457 | 446 |
| 458 // i18n ----------------------------------------------------------------- | 447 // i18n ----------------------------------------------------------------- |
| 459 | 448 |
| 460 // Inform the WebView that the accept languages have changed. | 449 // Inform the WebView that the accept languages have changed. |
| 461 // If the WebView wants to get the accept languages value, it will have | 450 // If the WebView wants to get the accept languages value, it will have |
| 462 // to call the WebViewClient::acceptLanguages(). | 451 // to call the WebViewClient::acceptLanguages(). |
| 463 virtual void acceptLanguagesChanged() = 0; | 452 virtual void acceptLanguagesChanged() = 0; |
| 464 | 453 |
| 465 // Testing functionality for TestRunner --------------------------------- | 454 // Testing functionality for TestRunner --------------------------------- |
| 466 | 455 |
| 467 // Force the webgl context to fail so that webglcontextcreationerror | 456 // Force the webgl context to fail so that webglcontextcreationerror |
| 468 // event gets generated/tested. | 457 // event gets generated/tested. |
| 469 virtual void forceNextWebGLContextCreationToFail() = 0; | 458 virtual void forceNextWebGLContextCreationToFail() = 0; |
| 470 | 459 |
| 471 // Force the drawing buffer used by webgl contexts to fail so that the webgl | 460 // Force the drawing buffer used by webgl contexts to fail so that the webgl |
| 472 // context's ability to deal with that failure gracefully can be tested. | 461 // context's ability to deal with that failure gracefully can be tested. |
| 473 virtual void forceNextDrawingBufferCreationToFail() = 0; | 462 virtual void forceNextDrawingBufferCreationToFail() = 0; |
| 474 | 463 |
| 475 protected: | 464 protected: |
| 476 ~WebView() {} | 465 ~WebView() {} |
| 477 }; | 466 }; |
| 478 | 467 |
| 479 } // namespace blink | 468 } // namespace blink |
| 480 | 469 |
| 481 #endif | 470 #endif |
| OLD | NEW |