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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 virtual void transferActiveWheelFlingAnimation(const WebActiveWheelFlingPara
meters&) = 0; | 449 virtual void transferActiveWheelFlingAnimation(const WebActiveWheelFlingPara
meters&) = 0; |
450 | 450 |
451 // Cancels an active fling, returning true if a fling was active. | 451 // Cancels an active fling, returning true if a fling was active. |
452 virtual bool endActiveFlingAnimation() = 0; | 452 virtual bool endActiveFlingAnimation() = 0; |
453 | 453 |
454 virtual void setShowPaintRects(bool) = 0; | 454 virtual void setShowPaintRects(bool) = 0; |
455 virtual void setShowFPSCounter(bool) = 0; | 455 virtual void setShowFPSCounter(bool) = 0; |
456 virtual void setContinuousPaintingEnabled(bool) = 0; | 456 virtual void setContinuousPaintingEnabled(bool) = 0; |
457 virtual void setShowScrollBottleneckRects(bool) = 0; | 457 virtual void setShowScrollBottleneckRects(bool) = 0; |
458 | 458 |
459 // Compute the bounds of the root element of the current selection and fills | |
460 // the out-parameter on success. |bounds| coordinates will be relative to | |
461 // the contents window and will take into account the current scale level. | |
462 virtual void getSelectionRootBounds(WebRect& bounds) const = 0; | |
463 | |
464 // Visibility ----------------------------------------------------------- | 459 // Visibility ----------------------------------------------------------- |
465 | 460 |
466 // Sets the visibility of the WebView. | 461 // Sets the visibility of the WebView. |
467 virtual void setVisibilityState(WebPageVisibilityState visibilityState, | 462 virtual void setVisibilityState(WebPageVisibilityState visibilityState, |
468 bool isInitialState) { } | 463 bool isInitialState) { } |
469 | 464 |
470 // PageOverlay ---------------------------------------------------------- | 465 // PageOverlay ---------------------------------------------------------- |
471 | 466 |
472 // Adds/removes page overlay to this WebView. These functions change the | 467 // Adds/removes page overlay to this WebView. These functions change the |
473 // graphical appearance of the WebView. WebPageOverlay paints the | 468 // graphical appearance of the WebView. WebPageOverlay paints the |
(...skipping 20 matching lines...) Expand all Loading... |
494 // event gets generated/tested. | 489 // event gets generated/tested. |
495 virtual void forceNextWebGLContextCreationToFail() = 0; | 490 virtual void forceNextWebGLContextCreationToFail() = 0; |
496 | 491 |
497 protected: | 492 protected: |
498 ~WebView() {} | 493 ~WebView() {} |
499 }; | 494 }; |
500 | 495 |
501 } // namespace blink | 496 } // namespace blink |
502 | 497 |
503 #endif | 498 #endif |
OLD | NEW |