//
// System.Web.HttpBrowserCapabilities
//
-// Author:
+// Authors:
// Patrik Torstensson (Patrik.Torstensson@labs2.com)
// Gonzalo Paniagua Javier (gonzalo@ximian.com)
//
-using System;
+// Copyright (C) 2003,2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+using System.Security.Permissions;
using System.Web.Configuration;
+using System.Web.UI;
-namespace System.Web {
-public class HttpBrowserCapabilities : HttpCapabilitiesBase
+namespace System.Web
{
- public HttpBrowserCapabilities()
- {
- }
-
- public bool ActiveXControls
- {
- get { return false; }
- }
-
- [MonoTODO()]
- public bool AOL
- {
- get { return false; }
- }
-
- [MonoTODO()]
- public bool BackgroundSounds
- {
- get { return false; }
- }
-
- [MonoTODO()]
- public bool Beta
- {
- get { return false; }
- }
-
- [MonoTODO()]
- public string Browser
- {
- get { return "Not Implemented"; }
- }
-
- [MonoTODO()]
- public bool CDF
- {
- get { return false; }
- }
-
- [MonoTODO()]
- public Version ClrVersion
- {
- get { return new Version (0, 0); }
- }
-
- [MonoTODO()]
- public bool Cookies
- {
- get { return true; }
- }
-
- [MonoTODO()]
- public bool Crawler
- {
- get { return false; }
- }
-
- [MonoTODO()]
- public Version EcmaScriptVersion
- {
- get { return new Version (0, 0); }
- }
-
- [MonoTODO()]
- public bool Frames
- {
- get { return true; }
- }
-
- [MonoTODO()]
- public bool JavaApplets
- {
- get { return false; }
- }
-
- [MonoTODO()]
- public bool JavaScript
- {
- get { return true; }
- }
-
- [MonoTODO()]
- public int MajorVersion
- {
- get { return 0; }
- }
-
- [MonoTODO()]
- public double MinorVersion
- {
- get { return 0.0; }
- }
-
- [MonoTODO()]
- public Version MSDomVersion
- {
- get { return new Version (0, 0); }
- }
-
- [MonoTODO()]
- public string Platform
- {
- get { return "mono::"; }
- }
+ //
+ // The real implementation lives in System.Web/BrowserCapabilities.cs
+ //
- [MonoTODO()]
- public bool Tables
+ // CAS
+ [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+ [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+ public class HttpBrowserCapabilities : HttpCapabilitiesBase, IFilterResolutionService
{
- get { return true; }
- }
-
- [MonoTODO()]
- public string Type
- {
- get { return "4"; }
- }
+ public HttpBrowserCapabilities ()
+ {
+ }
- [MonoTODO()]
- public bool VBScript
- {
- get { return false; }
- }
+ bool IFilterResolutionService.EvaluateFilter (string filterName)
+ {
+ throw new NotImplementedException ();
+ }
- [MonoTODO()]
- public string Version
- {
- get { return "4.0"; }
+ int IFilterResolutionService.CompareFilters (string filter1, string filter2)
+ {
+ throw new NotImplementedException ();
+ }
}
-
- [MonoTODO()]
- public bool Win16
- {
- get { return false; }
- }
-
- [MonoTODO()]
- public bool Win32
- {
- get { return true; }
- }
-
-
-
-}
}
+
+#endif