widget/windows/winrt/DisplayInfo_sdk81.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.

     2 /* this file contains the definitions for DisplayInformation related interfaces
     3   copied over from Windows.Graphics.Display.h file in the windows 8.1 SDK 
     4   This file can be deleted once our build system moves to 8.1. */
     6  /* File created by MIDL compiler version 8.00.0603 */
     7 /* @@MIDL_FILE_HEADING(  ) */
     9 /* Forward Declarations */ 
    11 #ifndef ____FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_FWD_DEFINED__
    12 #define ____FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_FWD_DEFINED__
    13 typedef interface __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable;
    15 #endif 	/* ____FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_FWD_DEFINED__ */
    18 #ifndef ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics_FWD_DEFINED__
    19 #define ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics_FWD_DEFINED__
    20 typedef interface __x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics __x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics;
    22 #ifdef __cplusplus
    23 namespace ABI {
    24     namespace Windows {
    25         namespace Graphics {
    26             namespace Display {
    27                 interface IDisplayInformationStatics;
    28             } /* end namespace */
    29         } /* end namespace */
    30     } /* end namespace */
    31 } /* end namespace */
    33 #endif /* __cplusplus */
    35 #endif 	/* ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics_FWD_DEFINED__ */
    38 #ifndef ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation_FWD_DEFINED__
    39 #define ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation_FWD_DEFINED__
    40 typedef interface __x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation __x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation;
    42 #ifdef __cplusplus
    43 namespace ABI {
    44     namespace Windows {
    45         namespace Graphics {
    46             namespace Display {
    47                 interface IDisplayInformation;
    48             } /* end namespace */
    49         } /* end namespace */
    50     } /* end namespace */
    51 } /* end namespace */
    53 #endif /* __cplusplus */
    55 #endif 	/* ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation_FWD_DEFINED__ */
    58 #ifdef __cplusplus
    59 namespace ABI {
    60 namespace Windows {
    61 namespace Graphics {
    62 namespace Display {
    63 class DisplayInformation;
    64 } /*Display*/
    65 } /*Graphics*/
    66 } /*Windows*/
    67 }
    68 #endif
    70 #ifdef __cplusplus
    71 namespace ABI {
    72 namespace Windows {
    73 namespace Graphics {
    74 namespace Display {
    75 interface IDisplayInformation;
    76 } /*Display*/
    77 } /*Graphics*/
    78 } /*Windows*/
    79 }
    80 #endif
    82 interface IInspectable;
    85 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0000 */
    86 /* [local] */ 
    92 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0000_v0_0_c_ifspec;
    93 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0000_v0_0_s_ifspec;
    95 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0580 */
   100 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0580 */
   105 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0580_v0_0_c_ifspec;
   106 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0580_v0_0_s_ifspec;
   108 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0001 */
   109 /* [local] */ 
   111 #ifndef DEF___FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_USE
   112 #define DEF___FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_USE
   113 #if defined(__cplusplus) && !defined(RO_NO_TEMPLATE_NAME)
   114 namespace ABI { namespace Windows { namespace Foundation {
   115 template <>
   116 struct __declspec(uuid("86c4f619-67b6-51c7-b30d-d8cf13625327"))
   117 ITypedEventHandler<ABI::Windows::Graphics::Display::DisplayInformation*,IInspectable*> : ITypedEventHandler_impl<ABI::Windows::Foundation::Internal::AggregateType<ABI::Windows::Graphics::Display::DisplayInformation*, ABI::Windows::Graphics::Display::IDisplayInformation*>,IInspectable*> {
   118 static const wchar_t* z_get_rc_name_impl() {
   119 return L"Windows.Foundation.TypedEventHandler`2<Windows.Graphics.Display.DisplayInformation, Object>"; }
   120 };
   121 typedef ITypedEventHandler<ABI::Windows::Graphics::Display::DisplayInformation*,IInspectable*> __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_t;
   122 #define ____FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_FWD_DEFINED__
   123 #define __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable ABI::Windows::Foundation::__FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_t
   125 /* ABI */ } /* Windows */ } /* Foundation */ }
   126 #endif //__cplusplus
   127 #endif /* DEF___FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_USE */
   129 #ifndef DEF___FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable
   130 #define DEF___FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable
   131 #if !defined(__cplusplus) || defined(RO_NO_TEMPLATE_NAME)
   134 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0004 */
   135 /* [local] */ 
   139 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0004_v0_0_c_ifspec;
   140 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0004_v0_0_s_ifspec;
   142 #ifndef ____FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_INTERFACE_DEFINED__
   143 #define ____FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_INTERFACE_DEFINED__
   145 /* interface __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable */
   146 /* [unique][uuid][object] */ 
   150 /* interface __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable */
   151 /* [unique][uuid][object] */ 
   154 EXTERN_C const IID IID___FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable;
   156 #if defined(__cplusplus) && !defined(CINTERFACE)
   158     MIDL_INTERFACE("86c4f619-67b6-51c7-b30d-d8cf13625327")
   159     __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable : public IUnknown
   160     {
   161     public:
   162         virtual HRESULT STDMETHODCALLTYPE Invoke( 
   163             /* [in] */ __RPC__in_opt ABI::Windows::Graphics::Display::IDisplayInformation *sender,
   164             /* [in] */ __RPC__in_opt IInspectable *e) = 0;
   166     };
   169 #else 	/* C style interface */
   171     typedef struct __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectableVtbl
   172     {
   173         BEGIN_INTERFACE
   175         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
   176             __RPC__in __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable * This,
   177             /* [in] */ __RPC__in REFIID riid,
   178             /* [annotation][iid_is][out] */ 
   179             _COM_Outptr_  void **ppvObject);
   181         ULONG ( STDMETHODCALLTYPE *AddRef )( 
   182             __RPC__in __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable * This);
   184         ULONG ( STDMETHODCALLTYPE *Release )( 
   185             __RPC__in __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable * This);
   187         HRESULT ( STDMETHODCALLTYPE *Invoke )( 
   188             __RPC__in __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable * This,
   189             /* [in] */ __RPC__in_opt __x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation *sender,
   190             /* [in] */ __RPC__in_opt IInspectable *e);
   192         END_INTERFACE
   193     } __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectableVtbl;
   195     interface __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable
   196     {
   197         CONST_VTBL struct __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectableVtbl *lpVtbl;
   198     };
   202 #ifdef COBJMACROS
   205 #define __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_QueryInterface(This,riid,ppvObject)	\
   206     ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 
   208 #define __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_AddRef(This)	\
   209     ( (This)->lpVtbl -> AddRef(This) ) 
   211 #define __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_Release(This)	\
   212     ( (This)->lpVtbl -> Release(This) ) 
   215 #define __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_Invoke(This,sender,e)	\
   216     ( (This)->lpVtbl -> Invoke(This,sender,e) ) 
   218 #endif /* COBJMACROS */
   221 #endif 	/* C style interface */
   226 #endif 	/* ____FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable_INTERFACE_DEFINED__ */
   229 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0005 */
   230 /* [local] */ 
   232 #endif /* pinterface */
   233 #endif /* DEF___FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable */
   236 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0005 */
   237 /* [local] */ 
   240 /* interface __x_ABI_CWindows_CGraphics_CDisplay_CIDisplayPropertiesEventHandler */
   241 /* [uuid][object] */ 
   245 /* interface ABI::Windows::Graphics::Display::IDisplayPropertiesEventHandler */
   246 /* [uuid][object] */ 
   251 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0006 */
   252 /* [local] */ 
   254 #if !defined(____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics_INTERFACE_DEFINED__)
   255 extern const __declspec(selectany) _Null_terminated_ WCHAR InterfaceName_Windows_Graphics_Display_IDisplayInformationStatics[] = L"Windows.Graphics.Display.IDisplayInformationStatics";
   256 #endif /* !defined(____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics_INTERFACE_DEFINED__) */
   259 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0006 */
   260 /* [local] */ 
   264 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0006_v0_0_c_ifspec;
   265 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0006_v0_0_s_ifspec;
   267 #ifndef ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics_INTERFACE_DEFINED__
   268 #define ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics_INTERFACE_DEFINED__
   270 /* interface __x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics */
   271 /* [uuid][object] */ 
   275 /* interface ABI::Windows::Graphics::Display::IDisplayInformationStatics */
   276 /* [uuid][object] */ 
   279 EXTERN_C const IID IID___x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics;
   281 #if defined(__cplusplus) && !defined(CINTERFACE)
   282     namespace ABI {
   283         namespace Windows {
   284             namespace Graphics {
   285                 namespace Display {
   287                     MIDL_INTERFACE("C6A02A6C-D452-44DC-BA07-96F3C6ADF9D1")
   288                     IDisplayInformationStatics : public IInspectable
   289                     {
   290                     public:
   291                         virtual HRESULT STDMETHODCALLTYPE GetForCurrentView( 
   292                             /* [out][retval] */ __RPC__deref_out_opt ABI::Windows::Graphics::Display::IDisplayInformation **current) = 0;
   294                         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AutoRotationPreferences( 
   295                             /* [out][retval] */ __RPC__out ABI::Windows::Graphics::Display::DisplayOrientations *value) = 0;
   297                         virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AutoRotationPreferences( 
   298                             /* [in] */ ABI::Windows::Graphics::Display::DisplayOrientations value) = 0;
   300                         virtual HRESULT STDMETHODCALLTYPE add_DisplayContentsInvalidated( 
   301                             /* [in] */ __RPC__in_opt __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable *handler,
   302                             /* [out][retval] */ __RPC__out EventRegistrationToken *token) = 0;
   304                         virtual HRESULT STDMETHODCALLTYPE remove_DisplayContentsInvalidated( 
   305                             /* [in] */ EventRegistrationToken token) = 0;
   307                     };
   309                     extern const __declspec(selectany) IID & IID_IDisplayInformationStatics = __uuidof(IDisplayInformationStatics);
   312                 }  /* end namespace */
   313             }  /* end namespace */
   314         }  /* end namespace */
   315     }  /* end namespace */
   317 #endif 	/* C style interface */
   322 #endif 	/* ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformationStatics_INTERFACE_DEFINED__ */
   325 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0007 */
   326 /* [local] */ 
   328 #if !defined(____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation_INTERFACE_DEFINED__)
   329 extern const __declspec(selectany) _Null_terminated_ WCHAR InterfaceName_Windows_Graphics_Display_IDisplayInformation[] = L"Windows.Graphics.Display.IDisplayInformation";
   330 #endif /* !defined(____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation_INTERFACE_DEFINED__) */
   333 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0007 */
   334 /* [local] */ 
   338 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0007_v0_0_c_ifspec;
   339 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0007_v0_0_s_ifspec;
   341 #ifndef ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation_INTERFACE_DEFINED__
   342 #define ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation_INTERFACE_DEFINED__
   344 /* interface __x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation */
   345 /* [uuid][object] */ 
   349 /* interface ABI::Windows::Graphics::Display::IDisplayInformation */
   350 /* [uuid][object] */ 
   353 EXTERN_C const IID IID___x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation;
   355 #if defined(__cplusplus) && !defined(CINTERFACE)
   356     namespace ABI {
   357         namespace Windows {
   358             namespace Graphics {
   359                 namespace Display {
   361                     MIDL_INTERFACE("BED112AE-ADC3-4DC9-AE65-851F4D7D4799")
   362                     IDisplayInformation : public IInspectable
   363                     {
   364                     public:
   365                         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CurrentOrientation( 
   366                             /* [out][retval] */ __RPC__out ABI::Windows::Graphics::Display::DisplayOrientations *value) = 0;
   368                         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NativeOrientation( 
   369                             /* [out][retval] */ __RPC__out ABI::Windows::Graphics::Display::DisplayOrientations *value) = 0;
   371                         virtual HRESULT STDMETHODCALLTYPE add_OrientationChanged( 
   372                             /* [in] */ __RPC__in_opt __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable *handler,
   373                             /* [out][retval] */ __RPC__out EventRegistrationToken *token) = 0;
   375                         virtual HRESULT STDMETHODCALLTYPE remove_OrientationChanged( 
   376                             /* [in] */ EventRegistrationToken token) = 0;
   378                         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ResolutionScale( 
   379                             /* [out][retval] */ __RPC__out ABI::Windows::Graphics::Display::ResolutionScale *value) = 0;
   381                         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_LogicalDpi( 
   382                             /* [out][retval] */ __RPC__out FLOAT *value) = 0;
   384                         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RawDpiX( 
   385                             /* [out][retval] */ __RPC__out FLOAT *value) = 0;
   387                         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RawDpiY( 
   388                             /* [out][retval] */ __RPC__out FLOAT *value) = 0;
   390                         virtual HRESULT STDMETHODCALLTYPE add_DpiChanged( 
   391                             /* [in] */ __RPC__in_opt __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable *handler,
   392                             /* [out][retval] */ __RPC__out EventRegistrationToken *token) = 0;
   394                         virtual HRESULT STDMETHODCALLTYPE remove_DpiChanged( 
   395                             /* [in] */ EventRegistrationToken token) = 0;
   397                         virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_StereoEnabled( 
   398                             /* [out][retval] */ __RPC__out boolean *value) = 0;
   400                         virtual HRESULT STDMETHODCALLTYPE add_StereoEnabledChanged( 
   401                             /* [in] */ __RPC__in_opt __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable *handler,
   402                             /* [out][retval] */ __RPC__out EventRegistrationToken *token) = 0;
   404                         virtual HRESULT STDMETHODCALLTYPE remove_StereoEnabledChanged( 
   405                             /* [in] */ EventRegistrationToken token) = 0;
   407                         virtual HRESULT STDMETHODCALLTYPE GetColorProfileAsync( 
   408                             /* [out][retval] */ __RPC__deref_out_opt __FIAsyncOperation_1_Windows__CStorage__CStreams__CIRandomAccessStream **asyncInfo) = 0;
   410                         virtual HRESULT STDMETHODCALLTYPE add_ColorProfileChanged( 
   411                             /* [in] */ __RPC__in_opt __FITypedEventHandler_2_Windows__CGraphics__CDisplay__CDisplayInformation_IInspectable *handler,
   412                             /* [out][retval] */ __RPC__out EventRegistrationToken *token) = 0;
   414                         virtual HRESULT STDMETHODCALLTYPE remove_ColorProfileChanged( 
   415                             /* [in] */ EventRegistrationToken token) = 0;
   417                     };
   419                     extern const __declspec(selectany) IID & IID_IDisplayInformation = __uuidof(IDisplayInformation);
   422                 }  /* end namespace */
   423             }  /* end namespace */
   424         }  /* end namespace */
   425     }  /* end namespace */
   427 #endif 	/* C style interface */
   432 #endif 	/* ____x_ABI_CWindows_CGraphics_CDisplay_CIDisplayInformation_INTERFACE_DEFINED__ */
   435 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0008 */
   436 /* [local] */ 
   439 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0009 */
   440 /* [local] */ 
   442 #ifndef RUNTIMECLASS_Windows_Graphics_Display_DisplayInformation_DEFINED
   443 #define RUNTIMECLASS_Windows_Graphics_Display_DisplayInformation_DEFINED
   444 extern const __declspec(selectany) _Null_terminated_ WCHAR RuntimeClass_Windows_Graphics_Display_DisplayInformation[] = L"Windows.Graphics.Display.DisplayInformation";
   445 #endif
   448 /* interface __MIDL_itf_windows2Egraphics2Edisplay_0000_0009 */
   449 /* [local] */ 
   453 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0009_v0_0_c_ifspec;
   454 extern RPC_IF_HANDLE __MIDL_itf_windows2Egraphics2Edisplay_0000_0009_v0_0_s_ifspec;
   456 /* Additional Prototypes for ALL interfaces */
   458 /* end of Additional Prototypes */

mercurial