gfx/skia/trunk/include/views/SkOSWindow_iOS.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 Google Inc.
     4  *
     5  * Use of this source code is governed by a BSD-style license that can be
     6  * found in the LICENSE file.
     7  */
     8 #ifndef SkOSWindow_iOS_DEFINED
     9 #define SkOSWindow_iOS_DEFINED
    11 #include "SkWindow.h"
    13 class SkOSWindow : public SkWindow {
    14 public:
    15     SkOSWindow(void* hwnd);
    16     ~SkOSWindow();
    17     void*   getHWND() const { return fHWND; }
    19     enum SkBackEndTypes {
    20         kNone_BackEndType,
    21         kNativeGL_BackEndType,
    22     };
    24     struct AttachmentInfo {
    25         int fSampleCount;
    26         int fStencilBits;
    27     };
    29     void    detach();
    30     bool    attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*);
    31     void    present();
    33 protected:
    34     // overrides from SkEventSink
    35     virtual bool onEvent(const SkEvent& evt);
    36     // overrides from SkWindow
    37     virtual void onHandleInval(const SkIRect&);
    38     // overrides from SkView
    39     virtual void onAddMenu(const SkOSMenu*);
    40     virtual void onUpdateMenu(SkOSMenu*);
    41     virtual void onSetTitle(const char[]);
    43 private:
    44     void*   fHWND;
    45     bool    fInvalEventIsPending;
    46     void*   fNotifier;
    47     typedef SkWindow INHERITED;
    48 };
    50 #endif

mercurial