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

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

Issue 675693002: An API returning a Promise should not throw an exceptions [overload version] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 void setZoomFactor(float); 298 void setZoomFactor(float);
299 299
300 void setShouldRevealPassword(Element*, bool, ExceptionState&); 300 void setShouldRevealPassword(Element*, bool, ExceptionState&);
301 301
302 ScriptPromise createResolvedPromise(ScriptState*, ScriptValue); 302 ScriptPromise createResolvedPromise(ScriptState*, ScriptValue);
303 ScriptPromise createRejectedPromise(ScriptState*, ScriptValue); 303 ScriptPromise createRejectedPromise(ScriptState*, ScriptValue);
304 ScriptPromise addOneToPromise(ScriptState*, ScriptPromise); 304 ScriptPromise addOneToPromise(ScriptState*, ScriptPromise);
305 ScriptPromise promiseCheck(ScriptState*, long, bool, const Dictionary&, cons t String&, const Vector<String>&, ExceptionState&); 305 ScriptPromise promiseCheck(ScriptState*, long, bool, const Dictionary&, cons t String&, const Vector<String>&, ExceptionState&);
306 ScriptPromise promiseCheckWithoutExceptionState(ScriptState*, const Dictiona ry&, const String&, const Vector<String>&); 306 ScriptPromise promiseCheckWithoutExceptionState(ScriptState*, const Dictiona ry&, const String&, const Vector<String>&);
307 ScriptPromise promiseCheckRange(ScriptState*, long); 307 ScriptPromise promiseCheckRange(ScriptState*, long);
308 ScriptPromise promiseCheckOverload(ScriptState*, Location*);
309 ScriptPromise promiseCheckOverload(ScriptState*, Document*);
310 ScriptPromise promiseCheckOverload(ScriptState*, Location*, long, long);
308 311
309 void trace(Visitor*); 312 void trace(Visitor*);
310 313
311 void setValueForUser(Element*, const String&); 314 void setValueForUser(Element*, const String&);
312 315
313 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength); 316 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength);
314 317
315 void setFocused(bool); 318 void setFocused(bool);
316 319
317 bool ignoreLayoutWithPendingStylesheets(Document*); 320 bool ignoreLayoutWithPendingStylesheets(Document*);
(...skipping 19 matching lines...) Expand all
337 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&); 340 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&);
338 341
339 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 342 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
340 Member<InternalRuntimeFlags> m_runtimeFlags; 343 Member<InternalRuntimeFlags> m_runtimeFlags;
341 Member<InternalProfilers> m_profilers; 344 Member<InternalProfilers> m_profilers;
342 }; 345 };
343 346
344 } // namespace blink 347 } // namespace blink
345 348
346 #endif // Internals_h 349 #endif // Internals_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698