gfx/skia/trunk/src/animator/SkDump.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.

     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 SkDump_DEFINED
    11 #define SkDump_DEFINED
    13 #include "SkDisplayable.h"
    14 #include "SkMemberInfo.h"
    16 class SkAnimateMaker;
    17 class SkString;
    19 class SkDump : public SkDisplayable {
    20     DECLARE_MEMBER_INFO(Dump);
    21 #ifdef SK_DUMP_ENABLED
    22     SkDump();
    23     virtual bool enable(SkAnimateMaker & );
    24     bool evaluate(SkAnimateMaker &);
    25     virtual bool hasEnable() const;
    26     static void GetEnumString(SkDisplayTypes , int index, SkString* result);
    27     SkBool displayList;
    28     SkBool eventList;
    29     SkBool events;
    30     SkString name;
    31     SkBool groups;
    32     SkBool posts;
    33     SkString script;
    34 #else
    35     virtual bool enable(SkAnimateMaker & );
    36     virtual bool hasEnable() const;
    37     virtual bool setProperty(int index, SkScriptValue& );
    38 #endif
    39 };
    42 #endif // SkDump_DEFINED

mercurial