widget/windows/nsLookAndFeel.h

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #ifndef __nsLookAndFeel
     7 #define __nsLookAndFeel
     8 #include "nsXPLookAndFeel.h"
    10 /*
    11  * Gesture System Metrics
    12  */
    13 #ifndef SM_DIGITIZER
    14 #define SM_DIGITIZER         94
    15 #define TABLET_CONFIG_NONE   0x00000000
    16 #define NID_INTEGRATED_TOUCH 0x00000001
    17 #define NID_EXTERNAL_TOUCH   0x00000002
    18 #define NID_INTEGRATED_PEN   0x00000004
    19 #define NID_EXTERNAL_PEN     0x00000008
    20 #define NID_MULTI_INPUT      0x00000040
    21 #define NID_READY            0x00000080
    22 #endif
    24 class nsLookAndFeel: public nsXPLookAndFeel {
    25   static OperatingSystemVersion GetOperatingSystemVersion();
    26 public:
    27   nsLookAndFeel();
    28   virtual ~nsLookAndFeel();
    30   virtual nsresult NativeGetColor(ColorID aID, nscolor &aResult);
    31   virtual nsresult GetIntImpl(IntID aID, int32_t &aResult);
    32   virtual nsresult GetFloatImpl(FloatID aID, float &aResult);
    33   virtual bool GetFontImpl(FontID aID, nsString& aFontName,
    34                            gfxFontStyle& aFontStyle,
    35                            float aDevPixPerCSSPixel);
    36   virtual char16_t GetPasswordCharacterImpl();
    37 };
    39 #endif

mercurial