Home | History | Annotate | Download | only in pdf
      1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef PDF_FADING_CONTROL_H_
      6 #define PDF_FADING_CONTROL_H_
      7 
      8 #include "pdf/control.h"
      9 
     10 namespace chrome_pdf {
     11 
     12 class FadingControl : public Control {
     13  public:
     14   FadingControl();
     15   virtual ~FadingControl();
     16 
     17   virtual void OnTimerFired(uint32 timer_id);
     18 
     19   // Fade In/Out control depending on visible flag over the time of time_ms.
     20   virtual void Fade(bool visible, uint32 time_ms);
     21 
     22   virtual void OnFadeInComplete() {}
     23   virtual void OnFadeOutComplete() {}
     24 
     25  private:
     26   int alpha_shift_;
     27   uint32 timer_id_;
     28 };
     29 
     30 }  // namespace chrome_pdf
     31 
     32 #endif  // PDF_FADING_CONTROL_H_
     33