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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ExceptionState.h

Issue 2566823002: Remove deprecated ExceptionState constructors. (Closed)
Patch Set: Created 4 years 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 case IndexedGetterContext: 90 case IndexedGetterContext:
91 case IndexedSetterContext: 91 case IndexedSetterContext:
92 case IndexedDeletionContext: 92 case IndexedDeletionContext:
93 break; 93 break;
94 default: 94 default:
95 NOTREACHED(); 95 NOTREACHED();
96 } 96 }
97 #endif // ENABLE(ASSERT) 97 #endif // ENABLE(ASSERT)
98 } 98 }
99 99
100 ExceptionState(ContextType context,
101 const char* propertyName,
102 const char* interfaceName,
103 const v8::Local<v8::Object>& creationContext,
104 v8::Isolate* isolate) // DEPRECATED
105 : ExceptionState(isolate, context, interfaceName, propertyName) {}
106
107 ExceptionState(ContextType context,
108 const char* interfaceName,
109 const v8::Local<v8::Object>& creationContext,
110 v8::Isolate* isolate) // DEPRECATED
111 : ExceptionState(isolate, context, interfaceName) {}
112
113 ~ExceptionState() { 100 ~ExceptionState() {
114 if (!m_exception.isEmpty()) { 101 if (!m_exception.isEmpty()) {
115 V8ThrowException::throwException(m_isolate, 102 V8ThrowException::throwException(m_isolate,
116 m_exception.newLocal(m_isolate)); 103 m_exception.newLocal(m_isolate));
117 } 104 }
118 } 105 }
119 106
120 virtual void throwDOMException(const ExceptionCode&, const String& message); 107 virtual void throwDOMException(const ExceptionCode&, const String& message);
121 virtual void throwRangeError(const String& message); 108 virtual void throwRangeError(const String& message);
122 virtual void throwSecurityError(const String& sanitizedMessage, 109 virtual void throwSecurityError(const String& sanitizedMessage,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 void throwTypeError(const String& message) override; 192 void throwTypeError(const String& message) override;
206 void throwSecurityError(const String& sanitizedMessage, 193 void throwSecurityError(const String& sanitizedMessage,
207 const String& unsanitizedMessage) override; 194 const String& unsanitizedMessage) override;
208 void throwRangeError(const String& message) override; 195 void throwRangeError(const String& message) override;
209 void rethrowV8Exception(v8::Local<v8::Value>) override; 196 void rethrowV8Exception(v8::Local<v8::Value>) override;
210 }; 197 };
211 198
212 } // namespace blink 199 } // namespace blink
213 200
214 #endif // ExceptionState_h 201 #endif // ExceptionState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698