gfx/skia/trunk/include/views/SkOSWindow_Android.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 2011 Skia
     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 SkOSWindow_Android_DEFINED
    11 #define SkOSWindow_Android_DEFINED
    13 #include "SkWindow.h"
    15 class SkIRect;
    17 class SkOSWindow : public SkWindow {
    18 public:
    19     SkOSWindow(void*) {}
    20     ~SkOSWindow() {}
    22     enum SkBackEndTypes {
    23         kNone_BackEndType,
    24         kNativeGL_BackEndType,
    25     };
    27     struct AttachmentInfo {
    28         int fSampleCount;
    29         int fStencilBits;
    30     };
    32     bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo* info);
    33     void detach() {}
    34     void present() {}
    36     virtual void onPDFSaved(const char title[], const char desc[],
    37         const char path[]);
    39 protected:
    40     // overrides from SkWindow
    41     virtual void onHandleInval(const SkIRect&);
    42     virtual void onSetTitle(const char title[]);
    44 private:
    45     typedef SkWindow INHERITED;
    46 };
    48 #endif

mercurial