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

Side by Side Diff: Source/core/testing/Internals.idl

Issue 232563003: API functions returning Promises should not throw exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 [RaisesException] boolean isCompositorFramePending(Document document); 276 [RaisesException] boolean isCompositorFramePending(Document document);
277 277
278 void setZoomFactor(float factor); 278 void setZoomFactor(float factor);
279 279
280 [RaisesException] void setShouldRevealPassword(Element element, boolean reve al); 280 [RaisesException] void setShouldRevealPassword(Element element, boolean reve al);
281 281
282 [CallWith=ExecutionContext] Promise createPromise(); 282 [CallWith=ExecutionContext] Promise createPromise();
283 [CallWith=ExecutionContext] Promise createResolvedPromise(any value); 283 [CallWith=ExecutionContext] Promise createResolvedPromise(any value);
284 [CallWith=ExecutionContext] Promise createRejectedPromise(any reason); 284 [CallWith=ExecutionContext] Promise createRejectedPromise(any reason);
285 [CallWith=ExecutionContext] Promise addOneToPromise(Promise promise); 285 [CallWith=ExecutionContext] Promise addOneToPromise(Promise promise);
286 [CallWith=ExecutionContext, RaisesException] Promise promiseCheck(long arg1, boolean arg2, Dictionary arg3, DOMString arg4);
287 [CallWith=ExecutionContext] Promise promiseCheckWithoutExceptionState(Dictio nary arg1, DOMString arg2, DOMString... variadic);
288 [CallWith=ExecutionContext] Promise promiseCheckRange([EnforceRange] octet a rg1);
286 289
287 void startSpeechInput(Element element); 290 void startSpeechInput(Element element);
288 void setValueForUser(Element element, DOMString value); 291 void setValueForUser(Element element, DOMString value);
289 292
290 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe ngth); 293 DOMString textSurroundingNode(Node node, long x, long y, unsigned long maxLe ngth);
291 }; 294 };
OLDNEW
« Source/core/testing/Internals.cpp ('K') | « Source/core/testing/Internals.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698