Merge "[Multimedia] Updated the doc-comments to fix the grammar errors."
[platform/core/csapi/tizenfx.git] / src / Tizen.WebView / Tizen.WebView / SmartCallbackLoadErrorArgs.cs
index 8ade295..28323bb 100644 (file)
-/*\r
- * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the License);\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an AS IS BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-using System;\r
-using System.Runtime.InteropServices;\r
-\r
-namespace Tizen.WebView\r
-{\r
-    /// <summary>\r
-    /// Enumeration that provides an option to error codes.\r
-    /// </summary>\r
-    public enum LoadErrorCode\r
-    {\r
-        /// <summary>\r
-        /// Unknown\r
-        /// </summary>\r
-        Unknown = 0,\r
-        /// <summary>\r
-        /// User canceled\r
-        /// </summary>\r
-        Canceled,\r
-        /// <summary>\r
-        /// Can't show page for this MIME Type\r
-        /// </summary>\r
-        CantSupportMimetype,\r
-        /// <summary>\r
-        /// File IO error\r
-        /// </summary>\r
-        FailedFileIo,\r
-        /// <summary>\r
-        /// Cannot connect to network\r
-        /// </summary>\r
-        CantConnect,\r
-        /// <summary>\r
-        /// Fail to look up host from DNS\r
-        /// </summary>\r
-        CantLookupHost,\r
-        /// <summary>\r
-        /// Fail to SSL/TLS handshake\r
-        /// </summary>\r
-        FailedTlsHandshake,\r
-        /// <summary>\r
-        /// Received certificate is invalid\r
-        /// </summary>\r
-        InvalidCertificate,\r
-        /// <summary>\r
-        /// Connection timeout\r
-        /// </summary>\r
-        RequestTimeout,\r
-        /// <summary>\r
-        /// Too many redirects\r
-        /// </summary>\r
-        TooManyRedirects,\r
-        /// <summary>\r
-        /// Too many requests during this load\r
-        /// </summary>\r
-        TooManyRequests,\r
-        /// <summary>\r
-        /// Malformed url\r
-        /// </summary>\r
-        BadUrl,\r
-        /// <summary>\r
-        /// Unsupported scheme\r
-        /// </summary>\r
-        UnsupportedScheme,\r
-        /// <summary>\r
-        /// User authentication failed on server\r
-        /// </summary>\r
-        Authentication,\r
-        /// <summary>\r
-        /// Web server has internal server error\r
-        /// </summary>\r
-        InternalServer,\r
-    }\r
-\r
-    /// <summary>\r
-    /// Argument from the LoadError SmartCallback.\r
-    /// </summary>\r
-    public class SmartCallbackLoadErrorArgs : EventArgs\r
-    {\r
-        IntPtr _handle;\r
-\r
-        internal SmartCallbackLoadErrorArgs(IntPtr handle)\r
-        {\r
-            _handle = handle;\r
-        }\r
-\r
-        /// <summary>\r
-        /// Failing URL for the error.\r
-        /// </summary>\r
-        public string Url\r
-        {\r
-            get\r
-            {\r
-                return Interop.ChromiumEwk.ewk_error_url_get(_handle);\r
-            }\r
-        }\r
-\r
-        /// <summary>\r
-        /// The error code.\r
-        /// </summary>\r
-        public LoadErrorCode Code\r
-        {\r
-            get\r
-            {\r
-                return (LoadErrorCode)Interop.ChromiumEwk.ewk_error_code_get(_handle);\r
-            }\r
-        }\r
-\r
-        /// <summary>\r
-        /// The description for the error.\r
-        /// </summary>\r
-        public string Description\r
-        {\r
-            get\r
-            {\r
-                return Interop.ChromiumEwk.ewk_error_description_get(_handle);\r
-            }\r
-        }\r
-\r
-        /// <summary>\r
-        /// Whether the error should be treated as a cancellation.\r
-        /// </summary>\r
-        public bool Cancellation\r
-        {\r
-            get\r
-            {\r
-                return Interop.ChromiumEwk.ewk_error_cancellation_get(_handle);\r
-            }\r
-        }\r
-\r
-        internal static SmartCallbackLoadErrorArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info)\r
-        {\r
-            return new SmartCallbackLoadErrorArgs(info);\r
-        }\r
-    }\r
-}\r
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+using System.Runtime.InteropServices;
+
+namespace Tizen.WebView
+{
+    /// <summary>
+    /// Enumeration that provides an option to error codes.
+    /// </summary>
+    public enum LoadErrorCode
+    {
+        /// <summary>
+        /// Unknown
+        /// </summary>
+        Unknown = 0,
+        /// <summary>
+        /// User canceled
+        /// </summary>
+        Canceled,
+        /// <summary>
+        /// Can't show page for this MIME Type.
+        /// </summary>
+        CantSupportMimetype,
+        /// <summary>
+        /// File IO error
+        /// </summary>
+        FailedFileIo,
+        /// <summary>
+        /// Cannot connect to network.
+        /// </summary>
+        CantConnect,
+        /// <summary>
+        /// Fail to look up host from DNS.
+        /// </summary>
+        CantLookupHost,
+        /// <summary>
+        /// Fail to SSL/TLS handshake.
+        /// </summary>
+        FailedTlsHandshake,
+        /// <summary>
+        /// Received certificate is invalid.
+        /// </summary>
+        InvalidCertificate,
+        /// <summary>
+        /// Connection timeout
+        /// </summary>
+        RequestTimeout,
+        /// <summary>
+        /// Too many redirects
+        /// </summary>
+        TooManyRedirects,
+        /// <summary>
+        /// Too many requests during this load
+        /// </summary>
+        TooManyRequests,
+        /// <summary>
+        /// Malformed url
+        /// </summary>
+        BadUrl,
+        /// <summary>
+        /// Unsupported scheme
+        /// </summary>
+        UnsupportedScheme,
+        /// <summary>
+        /// User authentication failed on server
+        /// </summary>
+        Authentication,
+        /// <summary>
+        /// Web server has internal server error.
+        /// </summary>
+        InternalServer,
+    }
+
+    /// <summary>
+    /// Argument from the LoadError SmartCallback.
+    /// </summary>
+    public class SmartCallbackLoadErrorArgs : EventArgs
+    {
+        IntPtr _handle;
+
+        internal SmartCallbackLoadErrorArgs(IntPtr handle)
+        {
+            _handle = handle;
+        }
+
+        /// <summary>
+        /// Failing URL for the error.
+        /// </summary>
+        public string Url
+        {
+            get
+            {
+                return Interop.ChromiumEwk.ewk_error_url_get(_handle);
+            }
+        }
+
+        /// <summary>
+        /// The error code.
+        /// </summary>
+        public LoadErrorCode Code
+        {
+            get
+            {
+                return (LoadErrorCode)Interop.ChromiumEwk.ewk_error_code_get(_handle);
+            }
+        }
+
+        /// <summary>
+        /// The description for the error.
+        /// </summary>
+        public string Description
+        {
+            get
+            {
+                return Interop.ChromiumEwk.ewk_error_description_get(_handle);
+            }
+        }
+
+        /// <summary>
+        /// Whether the error should be treated as a cancellation.
+        /// </summary>
+        public bool Cancellation
+        {
+            get
+            {
+                return Interop.ChromiumEwk.ewk_error_cancellation_get(_handle);
+            }
+        }
+
+        internal static SmartCallbackLoadErrorArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info)
+        {
+            return new SmartCallbackLoadErrorArgs(info);
+        }
+    }
+}