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

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

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, 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
« no previous file with comments | « Source/bindings/tests/results/V8TestObject.cpp ('k') | Source/core/testing/Internals.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) 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 bool loseSharedGraphicsContext3D(); 293 bool loseSharedGraphicsContext3D();
294 294
295 void forceCompositingUpdate(Document*, ExceptionState&); 295 void forceCompositingUpdate(Document*, ExceptionState&);
296 296
297 void setZoomFactor(float); 297 void setZoomFactor(float);
298 298
299 void setShouldRevealPassword(Element*, bool, ExceptionState&); 299 void setShouldRevealPassword(Element*, bool, ExceptionState&);
300 300
301 ScriptPromise createResolvedPromise(ScriptState*, ScriptValue); 301 ScriptPromise createResolvedPromise(ScriptState*, ScriptValue);
302 ScriptPromise createRejectedPromise(ScriptState*, ScriptValue); 302 ScriptPromise createRejectedPromise(ScriptState*, ScriptValue);
303 ScriptPromise addOneToPromise(ExecutionContext*, ScriptPromise); 303 ScriptPromise addOneToPromise(ScriptState*, ScriptPromise);
304 ScriptPromise promiseCheck(ScriptState*, long, bool, const Dictionary&, cons t String&, const Vector<String>&, ExceptionState&);
305 ScriptPromise promiseCheckWithoutExceptionState(ScriptState*, const Dictiona ry&, const String&, const Vector<String>&);
306 ScriptPromise promiseCheckRange(ScriptState*, long);
304 307
305 void trace(Visitor*); 308 void trace(Visitor*);
306 309
307 void setValueForUser(Element*, const String&); 310 void setValueForUser(Element*, const String&);
308 311
309 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength); 312 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength);
310 313
311 void setFocused(bool); 314 void setFocused(bool);
312 315
313 bool ignoreLayoutWithPendingStylesheets(Document*); 316 bool ignoreLayoutWithPendingStylesheets(Document*);
(...skipping 13 matching lines...) Expand all
327 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&); 330 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&);
328 331
329 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 332 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
330 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags; 333 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags;
331 RefPtrWillBeMember<InternalProfilers> m_profilers; 334 RefPtrWillBeMember<InternalProfilers> m_profilers;
332 }; 335 };
333 336
334 } // namespace blink 337 } // namespace blink
335 338
336 #endif 339 #endif
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestObject.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698