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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 class WebFrame; | 47 class WebFrame; |
48 class WebFrameClient; | 48 class WebFrameClient; |
49 class WebGraphicsContext3D; | 49 class WebGraphicsContext3D; |
50 class WebNode; | 50 class WebNode; |
51 class WebPageOverlay; | 51 class WebPageOverlay; |
52 class WebPermissionClient; | 52 class WebPermissionClient; |
53 class WebSettings; | 53 class WebSettings; |
54 class WebSpellCheckClient; | 54 class WebSpellCheckClient; |
55 class WebString; | 55 class WebString; |
56 class WebViewClient; | 56 class WebViewClient; |
| 57 struct WebActiveWheelFlingParameters; |
57 struct WebMediaPlayerAction; | 58 struct WebMediaPlayerAction; |
58 struct WebPluginAction; | 59 struct WebPluginAction; |
59 struct WebPoint; | 60 struct WebPoint; |
60 | 61 |
61 class WebView : public WebWidget { | 62 class WebView : public WebWidget { |
62 public: | 63 public: |
63 WEBKIT_EXPORT static const double textSizeMultiplierRatio; | 64 WEBKIT_EXPORT static const double textSizeMultiplierRatio; |
64 WEBKIT_EXPORT static const double minTextSizeMultiplier; | 65 WEBKIT_EXPORT static const double minTextSizeMultiplier; |
65 WEBKIT_EXPORT static const double maxTextSizeMultiplier; | 66 WEBKIT_EXPORT static const double maxTextSizeMultiplier; |
66 WEBKIT_EXPORT static const float minPageScaleFactor; | 67 WEBKIT_EXPORT static const float minPageScaleFactor; |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 // this WebView. One will be created if it doesn't already exist. | 422 // this WebView. One will be created if it doesn't already exist. |
422 // This is used to set up sharing between this context (which is | 423 // This is used to set up sharing between this context (which is |
423 // that used by the compositor) and contexts for WebGL and other | 424 // that used by the compositor) and contexts for WebGL and other |
424 // APIs. | 425 // APIs. |
425 virtual WebGraphicsContext3D* graphicsContext3D() = 0; | 426 virtual WebGraphicsContext3D* graphicsContext3D() = 0; |
426 | 427 |
427 // Context that's in the compositor's share group, but is not the compositor
context itself. | 428 // Context that's in the compositor's share group, but is not the compositor
context itself. |
428 // Can be used for allocating resources that the compositor will later acces
s. | 429 // Can be used for allocating resources that the compositor will later acces
s. |
429 virtual WebGraphicsContext3D* sharedGraphicsContext3D() = 0; | 430 virtual WebGraphicsContext3D* sharedGraphicsContext3D() = 0; |
430 | 431 |
| 432 // Called to inform the WebView that a wheel fling animation was started ext
ernally (for instance |
| 433 // by the compositor) but must be completed by the WebView. |
| 434 virtual void transferActiveWheelFlingAnimation(const WebActiveWheelFlingPara
meters&) = 0; |
| 435 |
431 // Visibility ----------------------------------------------------------- | 436 // Visibility ----------------------------------------------------------- |
432 | 437 |
433 // Sets the visibility of the WebView. | 438 // Sets the visibility of the WebView. |
434 virtual void setVisibilityState(WebPageVisibilityState visibilityState, | 439 virtual void setVisibilityState(WebPageVisibilityState visibilityState, |
435 bool isInitialState) { } | 440 bool isInitialState) { } |
436 | 441 |
437 // PageOverlay ---------------------------------------------------------- | 442 // PageOverlay ---------------------------------------------------------- |
438 | 443 |
439 // Adds/removes page overlay to this WebView. These functions change the | 444 // Adds/removes page overlay to this WebView. These functions change the |
440 // graphical appearance of the WebView. WebPageOverlay paints the | 445 // graphical appearance of the WebView. WebPageOverlay paints the |
441 // contents of the page overlay. It also provides an z-order number for | 446 // contents of the page overlay. It also provides an z-order number for |
442 // the page overlay. The z-order number defines the paint order the page | 447 // the page overlay. The z-order number defines the paint order the page |
443 // overlays. Page overlays with larger z-order number will be painted after | 448 // overlays. Page overlays with larger z-order number will be painted after |
444 // page overlays with smaller z-order number. That is, they appear above | 449 // page overlays with smaller z-order number. That is, they appear above |
445 // the page overlays with smaller z-order number. If two page overlays have | 450 // the page overlays with smaller z-order number. If two page overlays have |
446 // the same z-order number, the later added one will be on top. | 451 // the same z-order number, the later added one will be on top. |
447 virtual void addPageOverlay(WebPageOverlay*, int /*z-order*/) = 0; | 452 virtual void addPageOverlay(WebPageOverlay*, int /*z-order*/) = 0; |
448 virtual void removePageOverlay(WebPageOverlay*) = 0; | 453 virtual void removePageOverlay(WebPageOverlay*) = 0; |
449 | 454 |
450 // Testing functionality for LayoutTestController ----------------------- | 455 // Testing functionality for LayoutTestController ----------------------- |
451 | 456 |
452 // Simulates a compositor lost context. | 457 // Simulates a compositor lost context. |
453 virtual void loseCompositorContext(int numTimes) = 0; | 458 virtual void loseCompositorContext(int numTimes) = 0; |
454 | 459 |
455 | |
456 protected: | 460 protected: |
457 ~WebView() {} | 461 ~WebView() {} |
458 }; | 462 }; |
459 | 463 |
460 } // namespace WebKit | 464 } // namespace WebKit |
461 | 465 |
462 #endif | 466 #endif |
OLD | NEW |