OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 virtual bool canAccelerate2dCanvas() { return false; } | 587 virtual bool canAccelerate2dCanvas() { return false; } |
588 | 588 |
589 virtual bool isThreadedCompositingEnabled() { return false; } | 589 virtual bool isThreadedCompositingEnabled() { return false; } |
590 | 590 |
591 virtual WebCompositorSupport* compositorSupport() { return 0; } | 591 virtual WebCompositorSupport* compositorSupport() { return 0; } |
592 | 592 |
593 virtual WebFlingAnimator* createFlingAnimator() { return 0; } | 593 virtual WebFlingAnimator* createFlingAnimator() { return 0; } |
594 | 594 |
595 // Creates a new fling animation curve instance for device |deviceSource| | 595 // Creates a new fling animation curve instance for device |deviceSource| |
596 // with |velocity| and already scrolled |cumulativeScroll| pixels. | 596 // with |velocity| and already scrolled |cumulativeScroll| pixels. |
597 virtual WebGestureCurve* createFlingAnimationCurve(int deviceSource, const W
ebFloatPoint& velocity, const WebSize& cumulativeScroll) { return 0; } | 597 virtual WebGestureCurve* createFlingAnimationCurve(WebGestureDevice deviceSo
urce, const WebFloatPoint& velocity, const WebSize& cumulativeScroll) { return 0
; } |
598 | |
599 // TODO(rjkroege): Remove at end of http://crbug.com/343327 | |
600 virtual WebGestureCurve* createFlingAnimationCurve( | |
601 WebGestureDevice deviceSource, | |
602 const WebFloatPoint& velocity, | |
603 const WebSize& cumulativeScroll) | |
604 { | |
605 return createFlingAnimationCurve( | |
606 (int)deviceSource, velocity, cumulativeScroll); | |
607 } | |
608 | 598 |
609 // WebRTC ---------------------------------------------------------- | 599 // WebRTC ---------------------------------------------------------- |
610 | 600 |
611 // Creates an WebRTCPeerConnectionHandler for RTCPeerConnection. | 601 // Creates an WebRTCPeerConnectionHandler for RTCPeerConnection. |
612 // May return null if WebRTC functionality is not avaliable or out of resour
ces. | 602 // May return null if WebRTC functionality is not avaliable or out of resour
ces. |
613 virtual WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(WebRTCPe
erConnectionHandlerClient*) { return 0; } | 603 virtual WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(WebRTCPe
erConnectionHandlerClient*) { return 0; } |
614 | 604 |
615 // May return null if WebRTC functionality is not avaliable or out of resour
ces. | 605 // May return null if WebRTC functionality is not avaliable or out of resour
ces. |
616 virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterCl
ient*) { return 0; } | 606 virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterCl
ient*) { return 0; } |
617 | 607 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 virtual WebDatabaseObserver* databaseObserver() { return 0; } | 664 virtual WebDatabaseObserver* databaseObserver() { return 0; } |
675 | 665 |
676 | 666 |
677 protected: | 667 protected: |
678 virtual ~Platform() { } | 668 virtual ~Platform() { } |
679 }; | 669 }; |
680 | 670 |
681 } // namespace blink | 671 } // namespace blink |
682 | 672 |
683 #endif | 673 #endif |
OLD | NEW |