gfx/tests/gtest/TestLayers.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.

     1 /* vim:set ts=2 sw=2 sts=2 et: */
     2 /* Any copyright is dedicated to the Public Domain.
     3  * http://creativecommons.org/publicdomain/zero/1.0/
     4  */
     6 #ifndef GFX_TEST_LAYERS_H
     7 #define GFX_TEST_LAYERS_H
     9 #include "Layers.h"
    10 #include "nsTArray.h"
    12 /* Create layer tree from a simple layer tree description syntax.
    13  * Each index is either the first letter of the layer type or
    14  * a '(',')' to indicate the start/end of the child layers.
    15  * The aim of this function is to remove hard to read
    16  * layer tree creation code.
    17  *
    18  * Example "c(c(c(tt)t))" would yield:
    19  *          c
    20  *          |
    21  *          c
    22  *         / \
    23  *        c   t
    24  *       / \
    25  *      t   t
    26  */
    27 already_AddRefed<mozilla::layers::Layer> CreateLayerTree(
    28     const char* aLayerTreeDescription,
    29     nsIntRegion* aVisibleRegions,
    30     const gfx3DMatrix* aTransforms,
    31     nsRefPtr<mozilla::layers::LayerManager>& aLayerManager,
    32     nsTArray<nsRefPtr<mozilla::layers::Layer> >& aLayersOut);
    35 #endif

mercurial