HttpBrowserCapabilitiesBase.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. //
  2. // HttpBrowserCapabilitiesBase.cs
  3. //
  4. // Author:
  5. // Atsushi Enomoto <[email protected]>
  6. //
  7. // Copyright (C) 2008 Novell Inc. http://novell.com
  8. //
  9. //
  10. // Permission is hereby granted, free of charge, to any person obtaining
  11. // a copy of this software and associated documentation files (the
  12. // "Software"), to deal in the Software without restriction, including
  13. // without limitation the rights to use, copy, modify, merge, publish,
  14. // distribute, sublicense, and/or sell copies of the Software, and to
  15. // permit persons to whom the Software is furnished to do so, subject to
  16. // the following conditions:
  17. //
  18. // The above copyright notice and this permission notice shall be
  19. // included in all copies or substantial portions of the Software.
  20. //
  21. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28. //
  29. using System;
  30. using System.Collections;
  31. using System.Collections.Generic;
  32. using System.Globalization;
  33. using System.IO;
  34. using System.Runtime.CompilerServices;
  35. using System.Security.Permissions;
  36. using System.Security.Principal;
  37. using System.Web.Caching;
  38. using System.Web.UI;
  39. namespace System.Web
  40. {
  41. #if NET_4_0
  42. [TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
  43. #endif
  44. [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
  45. [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
  46. public abstract class HttpBrowserCapabilitiesBase : IFilterResolutionService
  47. {
  48. void NotImplemented ()
  49. {
  50. throw new NotImplementedException ();
  51. }
  52. public virtual bool ActiveXControls { get { NotImplemented (); return false; } }
  53. public virtual IDictionary Adapters { get { NotImplemented (); return null; } }
  54. public virtual bool AOL { get { NotImplemented (); return false; } }
  55. public virtual bool BackgroundSounds { get { NotImplemented (); return false; } }
  56. public virtual bool Beta { get { NotImplemented (); return false; } }
  57. public virtual string Browser { get { NotImplemented (); return null; } }
  58. public virtual ArrayList Browsers { get { NotImplemented (); return null; } }
  59. public virtual bool CanCombineFormsInDeck { get { NotImplemented (); return false; } }
  60. public virtual bool CanInitiateVoiceCall { get { NotImplemented (); return false; } }
  61. public virtual bool CanRenderAfterInputOrSelectElement { get { NotImplemented (); return false; } }
  62. public virtual bool CanRenderEmptySelects { get { NotImplemented (); return false; } }
  63. public virtual bool CanRenderInputAndSelectElementsTogether { get { NotImplemented (); return false; } }
  64. public virtual bool CanRenderMixedSelects { get { NotImplemented (); return false; } }
  65. public virtual bool CanRenderOneventAndPrevElementsTogether { get { NotImplemented (); return false; } }
  66. public virtual bool CanRenderPostBackCards { get { NotImplemented (); return false; } }
  67. public virtual bool CanRenderSetvarZeroWithMultiSelectionList { get { NotImplemented (); return false; } }
  68. public virtual bool CanSendMail { get { NotImplemented (); return false; } }
  69. public virtual IDictionary Capabilities { get; set; }
  70. public virtual bool CDF { get { NotImplemented (); return false; } }
  71. public virtual Version ClrVersion { get { NotImplemented (); return null; } }
  72. public virtual bool Cookies { get { NotImplemented (); return false; } }
  73. public virtual bool Crawler { get { NotImplemented (); return false; } }
  74. public virtual int DefaultSubmitButtonLimit { get { NotImplemented (); return 0; } }
  75. public virtual Version EcmaScriptVersion { get { NotImplemented (); return null; } }
  76. public virtual bool Frames { get { NotImplemented (); return false; } }
  77. public virtual int GatewayMajorVersion { get { NotImplemented (); return 0; } }
  78. public virtual double GatewayMinorVersion { get { NotImplemented (); return 0; } }
  79. public virtual string GatewayVersion { get { NotImplemented (); return null; } }
  80. public virtual bool HasBackButton { get { NotImplemented (); return false; } }
  81. public virtual bool HidesRightAlignedMultiselectScrollbars { get { NotImplemented (); return false; } }
  82. public virtual string HtmlTextWriter { get; set; }
  83. public virtual string Id { get { NotImplemented (); return null; } }
  84. public virtual string InputType { get { NotImplemented (); return null; } }
  85. public virtual bool IsColor { get { NotImplemented (); return false; } }
  86. public virtual bool IsMobileDevice { get { NotImplemented (); return false; } }
  87. public virtual string this [string key] {
  88. get { throw new NotImplementedException (); }
  89. }
  90. public virtual bool JavaApplets { get { NotImplemented (); return false; } }
  91. public virtual Version JScriptVersion { get { NotImplemented (); return null; } }
  92. public virtual int MajorVersion { get { NotImplemented (); return 0; } }
  93. public virtual int MaximumHrefLength { get { NotImplemented (); return 0; } }
  94. public virtual int MaximumRenderedPageSize { get { NotImplemented (); return 0; } }
  95. public virtual int MaximumSoftkeyLabelLength { get { NotImplemented (); return 0; } }
  96. public virtual double MinorVersion { get { NotImplemented (); return 0; } }
  97. public virtual string MinorVersionString { get { NotImplemented (); return null; } }
  98. public virtual string MobileDeviceManufacturer { get { NotImplemented (); return null; } }
  99. public virtual string MobileDeviceModel { get { NotImplemented (); return null; } }
  100. public virtual Version MSDomVersion { get { NotImplemented (); return null; } }
  101. public virtual int NumberOfSoftkeys { get { NotImplemented (); return 0; } }
  102. public virtual string Platform { get { NotImplemented (); return null; } }
  103. public virtual string PreferredImageMime { get { NotImplemented (); return null; } }
  104. public virtual string PreferredRenderingMime { get { NotImplemented (); return null; } }
  105. public virtual string PreferredRenderingType { get { NotImplemented (); return null; } }
  106. public virtual string PreferredRequestEncoding { get { NotImplemented (); return null; } }
  107. public virtual string PreferredResponseEncoding { get { NotImplemented (); return null; } }
  108. public virtual bool RendersBreakBeforeWmlSelectAndInput { get { NotImplemented (); return false; } }
  109. public virtual bool RendersBreaksAfterHtmlLists { get { NotImplemented (); return false; } }
  110. public virtual bool RendersBreaksAfterWmlAnchor { get { NotImplemented (); return false; } }
  111. public virtual bool RendersBreaksAfterWmlInput { get { NotImplemented (); return false; } }
  112. public virtual bool RendersWmlDoAcceptsInline { get { NotImplemented (); return false; } }
  113. public virtual bool RendersWmlSelectsAsMenuCards { get { NotImplemented (); return false; } }
  114. public virtual string RequiredMetaTagNameValue { get { NotImplemented (); return null; } }
  115. public virtual bool RequiresAttributeColonSubstitution { get { NotImplemented (); return false; } }
  116. public virtual bool RequiresContentTypeMetaTag { get { NotImplemented (); return false; } }
  117. public virtual bool RequiresControlStateInSession { get { NotImplemented (); return false; } }
  118. public virtual bool RequiresDBCSCharacter { get { NotImplemented (); return false; } }
  119. public virtual bool RequiresHtmlAdaptiveErrorReporting { get { NotImplemented (); return false; } }
  120. public virtual bool RequiresLeadingPageBreak { get { NotImplemented (); return false; } }
  121. public virtual bool RequiresNoBreakInFormatting { get { NotImplemented (); return false; } }
  122. public virtual bool RequiresOutputOptimization { get { NotImplemented (); return false; } }
  123. public virtual bool RequiresPhoneNumbersAsPlainText { get { NotImplemented (); return false; } }
  124. public virtual bool RequiresSpecialViewStateEncoding { get { NotImplemented (); return false; } }
  125. public virtual bool RequiresUniqueFilePathSuffix { get { NotImplemented (); return false; } }
  126. public virtual bool RequiresUniqueHtmlCheckboxNames { get { NotImplemented (); return false; } }
  127. public virtual bool RequiresUniqueHtmlInputNames { get { NotImplemented (); return false; } }
  128. public virtual bool RequiresUrlEncodedPostfieldValues { get { NotImplemented (); return false; } }
  129. public virtual int ScreenBitDepth { get { NotImplemented (); return 0; } }
  130. public virtual int ScreenCharactersHeight { get { NotImplemented (); return 0; } }
  131. public virtual int ScreenCharactersWidth { get { NotImplemented (); return 0; } }
  132. public virtual int ScreenPixelsHeight { get { NotImplemented (); return 0; } }
  133. public virtual int ScreenPixelsWidth { get { NotImplemented (); return 0; } }
  134. public virtual bool SupportsAccesskeyAttribute { get { NotImplemented (); return false; } }
  135. public virtual bool SupportsBodyColor { get { NotImplemented (); return false; } }
  136. public virtual bool SupportsBold { get { NotImplemented (); return false; } }
  137. public virtual bool SupportsCacheControlMetaTag { get { NotImplemented (); return false; } }
  138. public virtual bool SupportsCallback { get { NotImplemented (); return false; } }
  139. public virtual bool SupportsCss { get { NotImplemented (); return false; } }
  140. public virtual bool SupportsDivAlign { get { NotImplemented (); return false; } }
  141. public virtual bool SupportsDivNoWrap { get { NotImplemented (); return false; } }
  142. public virtual bool SupportsEmptyStringInCookieValue { get { NotImplemented (); return false; } }
  143. public virtual bool SupportsFontColor { get { NotImplemented (); return false; } }
  144. public virtual bool SupportsFontName { get { NotImplemented (); return false; } }
  145. public virtual bool SupportsFontSize { get { NotImplemented (); return false; } }
  146. public virtual bool SupportsImageSubmit { get { NotImplemented (); return false; } }
  147. public virtual bool SupportsIModeSymbols { get { NotImplemented (); return false; } }
  148. public virtual bool SupportsInputIStyle { get { NotImplemented (); return false; } }
  149. public virtual bool SupportsInputMode { get { NotImplemented (); return false; } }
  150. public virtual bool SupportsItalic { get { NotImplemented (); return false; } }
  151. public virtual bool SupportsJPhoneMultiMediaAttributes { get { NotImplemented (); return false; } }
  152. public virtual bool SupportsJPhoneSymbols { get { NotImplemented (); return false; } }
  153. public virtual bool SupportsQueryStringInFormAction { get { NotImplemented (); return false; } }
  154. public virtual bool SupportsRedirectWithCookie { get { NotImplemented (); return false; } }
  155. public virtual bool SupportsSelectMultiple { get { NotImplemented (); return false; } }
  156. public virtual bool SupportsUncheck { get { NotImplemented (); return false; } }
  157. public virtual bool SupportsXmlHttp { get { NotImplemented (); return false; } }
  158. public virtual bool Tables { get { NotImplemented (); return false; } }
  159. public virtual Type TagWriter { get { NotImplemented (); return null; } }
  160. public virtual string Type { get { NotImplemented (); return null; } }
  161. public virtual bool UseOptimizedCacheKey { get { NotImplemented (); return false; } }
  162. public virtual bool VBScript { get { NotImplemented (); return false; } }
  163. public virtual string Version { get { NotImplemented (); return null; } }
  164. public virtual Version W3CDomVersion { get { NotImplemented (); return null; } }
  165. public virtual bool Win16 { get { NotImplemented (); return false; } }
  166. public virtual bool Win32 { get { NotImplemented (); return false; } }
  167. public virtual void AddBrowser (string browserName)
  168. {
  169. NotImplemented ();
  170. }
  171. public virtual int CompareFilters (string filter1, string filter2)
  172. {
  173. NotImplemented ();
  174. return 0;
  175. }
  176. public virtual HtmlTextWriter CreateHtmlTextWriter (TextWriter w)
  177. {
  178. NotImplemented ();
  179. return null;
  180. }
  181. public virtual void DisableOptimizedCacheKey ()
  182. {
  183. NotImplemented ();
  184. }
  185. public virtual bool EvaluateFilter (string filterName)
  186. {
  187. NotImplemented ();
  188. return false;
  189. }
  190. public virtual Version [] GetClrVersions ()
  191. {
  192. NotImplemented ();
  193. return null;
  194. }
  195. public virtual bool IsBrowser (string browserName)
  196. {
  197. NotImplemented ();
  198. return false;
  199. }
  200. }
  201. }