Home | History | Annotate | Download | only in playpausebutton
      1 /*
      2     Copyright (C) 2008,2009 INdT - Instituto Nokia de Tecnologia
      3     Copyright (C) 2009,2010 ProFUSION embedded systems
      4     Copyright (C) 2011 Samsung Electronics
      5 
      6     This file is free software; you can redistribute it and/or
      7     modify it under the terms of the GNU Library General Public
      8     License as published by the Free Software Foundation; either
      9     version 2 of the License, or (at your option) any later version.
     10 
     11     This file is distributed in the hope that it will be useful,
     12     but WITHOUT ANY WARRANTY; without even the implied warranty of
     13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     14     Library General Public License for more details.
     15 
     16     You should have received a copy of the GNU Library General Public License
     17     along with this library; see the file COPYING.LIB.  If not, write to
     18     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
     19     Boston, MA 02110-1301, USA.
     20 */
     21 
     22    group {
     23       name: "webkit/widget/mediacontrol/playpause_button";
     24 
     25       images {
     26          image: "widget/mediacontrol/playpausebutton/playbutton.png" COMP;
     27          image: "widget/mediacontrol/playpausebutton/pausebutton.png" COMP;
     28       }
     29 
     30       parts {
     31          part {
     32             name: "playpause_button";
     33             type: IMAGE;
     34             description { state: "default" 0.0;
     35                min: 25 25;
     36             }
     37             description { state: "play" 0.0;
     38                inherit: "default" 0.0;
     39                image.normal: "widget/mediacontrol/playpausebutton/playbutton.png";
     40             }
     41             description { state: "pause" 0.0;
     42                inherit: "default" 0.0;
     43                image.normal: "widget/mediacontrol/playpausebutton/pausebutton.png";
     44             }
     45          }
     46       }
     47 
     48       programs {
     49          program {
     50              signal: "play";
     51              action: STATE_SET "play" 0.0;
     52              target: "playpause_button";
     53          }
     54          program {
     55              signal: "pause";
     56              action: STATE_SET "pause" 0.0;
     57              target: "playpause_button";
     58          }
     59       }
     60    }
     61