15c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)/* 2926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles) * Copyright (C) 2013 Google Inc. All rights reserved. 3bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * Copyright (C) 2013 Intel Corporation. All rights reserved. 45c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * 55c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Redistribution and use in source and binary forms, with or without 65c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * modification, are permitted provided that the following conditions are 75c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * met: 85c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * 95c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * * Redistributions of source code must retain the above copyright 105c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * notice, this list of conditions and the following disclaimer. 115c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * * Redistributions in binary form must reproduce the above 125c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * copyright notice, this list of conditions and the following disclaimer 135c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * in the documentation and/or other materials provided with the 145c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * distribution. 155c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * * Neither the name of Google Inc. nor the names of its 165c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * contributors may be used to endorse or promote products derived from 175c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * this software without specific prior written permission. 185c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * 195c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 205c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 215c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 225c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 235c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 245c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 255c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 265c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 275c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 285c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 295c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 305c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) */ 315c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 321e202183a5dc46166763171984b285173f8585e5Torne (Richard Coles)#ifndef WebFilterKeyframe_h 331e202183a5dc46166763171984b285173f8585e5Torne (Richard Coles)#define WebFilterKeyframe_h 3406f816c7c76bc45a15e452ade8a34e8af077693eTorne (Richard Coles) 351e202183a5dc46166763171984b285173f8585e5Torne (Richard Coles)#include "WebFilterOperations.h" 36bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles)#include "WebPrivateOwnPtr.h" 37bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) 38f79f16f17ddc4f842d7b7a38603e280e94be826aTorne (Richard Coles)#if INSIDE_BLINK 39bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles)namespace WTF { template <typename T> class PassOwnPtr; } 40bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles)#endif 41926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles) 4251b2906e11752df6c18351cf520e30522d3b53a1Torne (Richard Coles)namespace blink { 43926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles) 441e202183a5dc46166763171984b285173f8585e5Torne (Richard Coles)class WebFilterKeyframe { 459bbd2f5e390b01907d97ecffde80aa1b06113aacTorne (Richard Coles)public: 46f79f16f17ddc4f842d7b7a38603e280e94be826aTorne (Richard Coles)#if INSIDE_BLINK 47f79f16f17ddc4f842d7b7a38603e280e94be826aTorne (Richard Coles) BLINK_PLATFORM_EXPORT WebFilterKeyframe(double time, PassOwnPtr<WebFilterOperations>); 48bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles)#endif 491e202183a5dc46166763171984b285173f8585e5Torne (Richard Coles) 50f79f16f17ddc4f842d7b7a38603e280e94be826aTorne (Richard Coles) BLINK_PLATFORM_EXPORT ~WebFilterKeyframe(); 511e202183a5dc46166763171984b285173f8585e5Torne (Richard Coles) 521e202183a5dc46166763171984b285173f8585e5Torne (Richard Coles) double time() const { return m_time; } 531e202183a5dc46166763171984b285173f8585e5Torne (Richard Coles) 54bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) const WebFilterOperations& value() const { return *m_value.get(); } 559bbd2f5e390b01907d97ecffde80aa1b06113aacTorne (Richard Coles) 561e202183a5dc46166763171984b285173f8585e5Torne (Richard Coles)private: 571e202183a5dc46166763171984b285173f8585e5Torne (Richard Coles) double m_time; 58bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) WebPrivateOwnPtr<WebFilterOperations> m_value; 595c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)}; 609bbd2f5e390b01907d97ecffde80aa1b06113aacTorne (Richard Coles) 6151b2906e11752df6c18351cf520e30522d3b53a1Torne (Richard Coles)} // namespace blink 629bbd2f5e390b01907d97ecffde80aa1b06113aacTorne (Richard Coles) 631e202183a5dc46166763171984b285173f8585e5Torne (Richard Coles)#endif // WebFilterKeyframe_h 64