Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / pdf / fading_control.h
blob03ac134698af27e701b0b50a0a93432a4154a449
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.
5 #ifndef PDF_FADING_CONTROL_H_
6 #define PDF_FADING_CONTROL_H_
8 #include "pdf/control.h"
10 namespace chrome_pdf {
12 class FadingControl : public Control {
13 public:
14 FadingControl();
15 virtual ~FadingControl();
17 virtual void OnTimerFired(uint32 timer_id);
19 // Fade In/Out control depending on visible flag over the time of time_ms.
20 virtual void Fade(bool visible, uint32 time_ms);
22 virtual void OnFadeInComplete() {}
23 virtual void OnFadeOutComplete() {}
25 private:
26 int alpha_shift_;
27 uint32 timer_id_;
30 } // namespace chrome_pdf
32 #endif // PDF_FADING_CONTROL_H_