Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
2 /*
3 * Copyright 2006 The Android Open Source Project
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
10 #ifndef SkAnimatorView_DEFINED
11 #define SkAnimatorView_DEFINED
13 #include "SkView.h"
14 #include "SkAnimator.h"
16 class SkAnimatorView : public SkView {
17 public:
18 SkAnimatorView();
19 virtual ~SkAnimatorView();
21 SkAnimator* getAnimator() const { return fAnimator; }
23 bool decodeFile(const char path[]);
24 bool decodeMemory(const void* buffer, size_t size);
25 bool decodeStream(SkStream* stream);
27 protected:
28 // overrides
29 virtual bool onEvent(const SkEvent&);
30 virtual void onDraw(SkCanvas*);
31 virtual void onInflate(const SkDOM&, const SkDOM::Node*);
33 private:
34 SkAnimator* fAnimator;
36 typedef SkView INHERITED;
37 };
39 #endif