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