Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: third_party/WebKit/Source/core/fileapi/FileError.h

Issue 2040563002: Remove FileError interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fe-dep
Patch Set: handleEvent -> invoke and other review nits Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fileapi/FileError.h
diff --git a/third_party/WebKit/Source/core/fileapi/FileError.h b/third_party/WebKit/Source/core/fileapi/FileError.h
index 0d9c65f3a10c9f57fa7913789269802de4b5c182..2c18bd1947f97cf58e93726576abcc685c2cf635 100644
--- a/third_party/WebKit/Source/core/fileapi/FileError.h
+++ b/third_party/WebKit/Source/core/fileapi/FileError.h
@@ -31,18 +31,15 @@
#ifndef FileError_h
#define FileError_h
-#include "bindings/core/v8/ScriptWrappable.h"
#include "core/CoreExport.h"
-#include "core/dom/DOMError.h"
-#include "platform/heap/Handle.h"
namespace blink {
+class DOMException;
class ExceptionState;
-class CORE_EXPORT FileError final : public DOMError {
- DEFINE_WRAPPERTYPEINFO();
-public:
+namespace FileError {
+
enum ErrorCode {
OK = 0,
NOT_FOUND_ERR = 1,
@@ -59,32 +56,22 @@ public:
PATH_EXISTS_ERR = 12,
};
- static const char abortErrorMessage[];
- static const char encodingErrorMessage[];
- static const char invalidStateErrorMessage[];
- static const char noModificationAllowedErrorMessage[];
- static const char notFoundErrorMessage[];
- static const char notReadableErrorMessage[];
- static const char pathExistsErrorMessage[];
- static const char quotaExceededErrorMessage[];
- static const char securityErrorMessage[];
- static const char syntaxErrorMessage[];
- static const char typeMismatchErrorMessage[];
-
- static FileError* create(ErrorCode code)
- {
- return new FileError(code);
- }
-
- ErrorCode code() const { return m_code; }
-
- static void throwDOMException(ExceptionState&, ErrorCode);
+ CORE_EXPORT extern const char abortErrorMessage[];
+ CORE_EXPORT extern const char encodingErrorMessage[];
+ CORE_EXPORT extern const char invalidStateErrorMessage[];
+ CORE_EXPORT extern const char noModificationAllowedErrorMessage[];
+ CORE_EXPORT extern const char notFoundErrorMessage[];
+ CORE_EXPORT extern const char notReadableErrorMessage[];
+ CORE_EXPORT extern const char pathExistsErrorMessage[];
+ CORE_EXPORT extern const char quotaExceededErrorMessage[];
+ CORE_EXPORT extern const char securityErrorMessage[];
+ CORE_EXPORT extern const char syntaxErrorMessage[];
+ CORE_EXPORT extern const char typeMismatchErrorMessage[];
-private:
- explicit FileError(ErrorCode);
+ CORE_EXPORT void throwDOMException(ExceptionState&, ErrorCode);
+ CORE_EXPORT DOMException* createDOMException(ErrorCode);
- ErrorCode m_code;
-};
+} // namespace FileError
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698