gfx/skia/trunk/src/animator/SkDisplayPost.h

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1
michael@0 2 /*
michael@0 3 * Copyright 2006 The Android Open Source Project
michael@0 4 *
michael@0 5 * Use of this source code is governed by a BSD-style license that can be
michael@0 6 * found in the LICENSE file.
michael@0 7 */
michael@0 8
michael@0 9
michael@0 10 #ifndef SkDisplayPost_DEFINED
michael@0 11 #define SkDisplayPost_DEFINED
michael@0 12
michael@0 13 #include "SkDisplayable.h"
michael@0 14 #include "SkEvent.h"
michael@0 15 #include "SkEventSink.h"
michael@0 16 #include "SkMemberInfo.h"
michael@0 17 #include "SkIntArray.h"
michael@0 18
michael@0 19 class SkDataInput;
michael@0 20 class SkAnimateMaker;
michael@0 21
michael@0 22 class SkPost : public SkDisplayable {
michael@0 23 DECLARE_MEMBER_INFO(Post);
michael@0 24 enum Mode {
michael@0 25 kDeferred,
michael@0 26 kImmediate
michael@0 27 };
michael@0 28 SkPost();
michael@0 29 virtual ~SkPost();
michael@0 30 virtual bool addChild(SkAnimateMaker& , SkDisplayable* child) SK_OVERRIDE;
michael@0 31 virtual bool childrenNeedDisposing() const;
michael@0 32 virtual void dirty();
michael@0 33 #ifdef SK_DUMP_ENABLED
michael@0 34 virtual void dump(SkAnimateMaker* );
michael@0 35 #endif
michael@0 36 virtual bool enable(SkAnimateMaker& );
michael@0 37 virtual bool hasEnable() const;
michael@0 38 virtual void onEndElement(SkAnimateMaker& );
michael@0 39 virtual void setChildHasID();
michael@0 40 virtual bool setProperty(int index, SkScriptValue& );
michael@0 41 protected:
michael@0 42 SkMSec delay;
michael@0 43 SkString sink;
michael@0 44 // SkBool initialized;
michael@0 45 Mode mode;
michael@0 46 SkEvent fEvent;
michael@0 47 SkAnimateMaker* fMaker;
michael@0 48 SkTDDataArray fParts;
michael@0 49 SkEventSinkID fSinkID;
michael@0 50 SkAnimateMaker* fTargetMaker;
michael@0 51 SkBool8 fChildHasID;
michael@0 52 SkBool8 fDirty;
michael@0 53 private:
michael@0 54 void findSinkID();
michael@0 55 friend class SkDataInput;
michael@0 56 typedef SkDisplayable INHERITED;
michael@0 57 };
michael@0 58
michael@0 59 #endif //SkDisplayPost_DEFINED

mercurial