Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: public/platform/Platform.h

Issue 1251473003: Add WebView API for smoothScroll (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 virtual bool isThreadedCompositingEnabled() { return false; } 610 virtual bool isThreadedCompositingEnabled() { return false; }
611 611
612 virtual WebCompositorSupport* compositorSupport() { return nullptr; } 612 virtual WebCompositorSupport* compositorSupport() { return nullptr; }
613 613
614 virtual WebFlingAnimator* createFlingAnimator() { return nullptr; } 614 virtual WebFlingAnimator* createFlingAnimator() { return nullptr; }
615 615
616 // Creates a new fling animation curve instance for device |deviceSource| 616 // Creates a new fling animation curve instance for device |deviceSource|
617 // with |velocity| and already scrolled |cumulativeScroll| pixels. 617 // with |velocity| and already scrolled |cumulativeScroll| pixels.
618 virtual WebGestureCurve* createFlingAnimationCurve(WebGestureDevice deviceSo urce, const WebFloatPoint& velocity, const WebSize& cumulativeScroll) { return n ullptr; } 618 virtual WebGestureCurve* createFlingAnimationCurve(WebGestureDevice deviceSo urce, const WebFloatPoint& velocity, const WebSize& cumulativeScroll) { return n ullptr; }
619 619
620
621 virtual WebGestureCurve* createSmoothScrollAnimationCurve(
622 WebGestureDevice deviceSource, float startX, float startY, float dx, flo at dy, int64_t duration) { return 0; }
623
620 // WebRTC ---------------------------------------------------------- 624 // WebRTC ----------------------------------------------------------
621 625
622 // Creates an WebRTCPeerConnectionHandler for RTCPeerConnection. 626 // Creates an WebRTCPeerConnectionHandler for RTCPeerConnection.
623 // May return null if WebRTC functionality is not avaliable or out of resour ces. 627 // May return null if WebRTC functionality is not avaliable or out of resour ces.
624 virtual WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(WebRTCPe erConnectionHandlerClient*) { return nullptr; } 628 virtual WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(WebRTCPe erConnectionHandlerClient*) { return nullptr; }
625 629
626 // May return null if WebRTC functionality is not avaliable or out of resour ces. 630 // May return null if WebRTC functionality is not avaliable or out of resour ces.
627 virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterCl ient*) { return nullptr; } 631 virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterCl ient*) { return nullptr; }
628 632
629 633
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 protected: 736 protected:
733 BLINK_PLATFORM_EXPORT Platform(); 737 BLINK_PLATFORM_EXPORT Platform();
734 virtual ~Platform() { } 738 virtual ~Platform() { }
735 739
736 WebThread* m_mainThread; 740 WebThread* m_mainThread;
737 }; 741 };
738 742
739 } // namespace blink 743 } // namespace blink
740 744
741 #endif 745 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698