/* * Copyright (C) 2007 Esmertec AG. * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.thoughtcrime.securesms.dom.smil; import java.util.ArrayList; import org.w3c.dom.DOMException; import org.w3c.dom.NodeList; import org.w3c.dom.events.DocumentEvent; import org.w3c.dom.events.Event; import org.w3c.dom.smil.ElementParallelTimeContainer; import org.w3c.dom.smil.ElementTime; import org.w3c.dom.smil.SMILParElement; import org.w3c.dom.smil.Time; import org.w3c.dom.smil.TimeList; public class SmilParElementImpl extends SmilElementImpl implements SMILParElement { public final static String SMIL_SLIDE_START_EVENT = "SmilSlideStart"; public final static String SMIL_SLIDE_END_EVENT = "SmilSlideEnd"; ElementParallelTimeContainer mParTimeContainer = new ElementParallelTimeContainerImpl(this) { @Override public TimeList getBegin() { /* * For children of a sequence, the only legal value for begin is * a (single) non-negative offset value. */ TimeList beginTimeList = super.getBegin(); if (beginTimeList.getLength() > 1) { ArrayList