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

Side by Side Diff: third_party/WebKit/Source/modules/webdatabase/SQLError.h

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 class SQLError final : public GarbageCollectedFinalized<SQLError>, public Script Wrappable { 69 class SQLError final : public GarbageCollectedFinalized<SQLError>, public Script Wrappable {
70 DEFINE_WRAPPERTYPEINFO(); 70 DEFINE_WRAPPERTYPEINFO();
71 public: 71 public:
72 static SQLError* create(const SQLErrorData& data) { return new SQLError(data ); } 72 static SQLError* create(const SQLErrorData& data) { return new SQLError(data ); }
73 DEFINE_INLINE_TRACE() { } 73 DEFINE_INLINE_TRACE() { }
74 74
75 unsigned code() const { return m_data.code(); } 75 unsigned code() const { return m_data.code(); }
76 String message() const { return m_data.message(); } 76 String message() const { return m_data.message(); }
77 77
78 enum SQLErrorCode { 78 enum SQLErrorCode {
79 UNKNOWN_ERR = 0, 79 kUnknownErr = 0,
80 DATABASE_ERR = 1, 80 kDatabaseErr = 1,
81 VERSION_ERR = 2, 81 kVersionErr = 2,
82 TOO_LARGE_ERR = 3, 82 kTooLargeErr = 3,
83 QUOTA_ERR = 4, 83 kQuotaErr = 4,
84 SYNTAX_ERR = 5, 84 kSyntaxErr = 5,
85 CONSTRAINT_ERR = 6, 85 kConstraintErr = 6,
86 TIMEOUT_ERR = 7 86 kTimeoutErr = 7
87 }; 87 };
88 88
89 static const char quotaExceededErrorMessage[]; 89 static const char quotaExceededErrorMessage[];
90 static const char unknownErrorMessage[]; 90 static const char unknownErrorMessage[];
91 static const char versionErrorMessage[]; 91 static const char versionErrorMessage[];
92 92
93 private: 93 private:
94 explicit SQLError(const SQLErrorData& data) 94 explicit SQLError(const SQLErrorData& data)
95 : m_data(data) { } 95 : m_data(data) { }
96 96
97 const SQLErrorData m_data; 97 const SQLErrorData m_data;
98 }; 98 };
99 99
100 } // namespace blink 100 } // namespace blink
101 101
102 #endif // SQLError_h 102 #endif // SQLError_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698