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

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

Issue 2615953003: Rename IGNORE_EXCEPTION to IGNORE_EXCEPTION_FOR_TESTING (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ContainerNode.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 void throwSecurityError(const String& sanitizedMessage, 206 void throwSecurityError(const String& sanitizedMessage,
207 const String& unsanitizedMessage) override; 207 const String& unsanitizedMessage) override;
208 void throwRangeError(const String& message) override; 208 void throwRangeError(const String& message) override;
209 void rethrowV8Exception(v8::Local<v8::Value>) override; 209 void rethrowV8Exception(v8::Local<v8::Value>) override;
210 ExceptionState& returnThis() { return *this; } 210 ExceptionState& returnThis() { return *this; }
211 }; 211 };
212 212
213 // Syntax sugar for DummyExceptionStateForTesting. 213 // Syntax sugar for DummyExceptionStateForTesting.
214 // This can be used as a default value of an ExceptionState parameter like this: 214 // This can be used as a default value of an ExceptionState parameter like this:
215 // 215 //
216 // Node* removeChild(Node* child, ExceptionState& = IGNORE_EXCEPTION) 216 // Node* removeChild(Node* child, ExceptionState& =
217 #define IGNORE_EXCEPTION (::blink::DummyExceptionStateForTesting().returnThis()) 217 // IGNORE_EXCEPTION_FOR_TESTING)
Yuki 2017/01/06 13:05:27 nit: indent 4 spaces?
haraken 2017/01/06 13:09:16 Fixed.
218 #define IGNORE_EXCEPTION_FOR_TESTING \
219 (::blink::DummyExceptionStateForTesting().returnThis())
218 220
219 } // namespace blink 221 } // namespace blink
220 222
221 #endif // ExceptionState_h 223 #endif // ExceptionState_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ContainerNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698