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

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

Issue 197213007: ScriptPromise implementation for V8 Promises (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 bool loseSharedGraphicsContext3D(); 303 bool loseSharedGraphicsContext3D();
304 304
305 void forceCompositingUpdate(Document*, ExceptionState&); 305 void forceCompositingUpdate(Document*, ExceptionState&);
306 306
307 bool isCompositorFramePending(Document*, ExceptionState&); 307 bool isCompositorFramePending(Document*, ExceptionState&);
308 308
309 void setZoomFactor(float); 309 void setZoomFactor(float);
310 310
311 void setShouldRevealPassword(Element*, bool, ExceptionState&); 311 void setShouldRevealPassword(Element*, bool, ExceptionState&);
312 312
313 ScriptPromise createPromise(ExecutionContext*);
314 ScriptPromise createResolvedPromise(ExecutionContext*, ScriptValue);
315 ScriptPromise createRejectedPromise(ExecutionContext*, ScriptValue);
313 ScriptPromise addOneToPromise(ExecutionContext*, ScriptPromise); 316 ScriptPromise addOneToPromise(ExecutionContext*, ScriptPromise);
314 317
315 void trace(Visitor*); 318 void trace(Visitor*);
316 319
317 void startSpeechInput(Element*); 320 void startSpeechInput(Element*);
318 void setValueForUser(Element*, const String&); 321 void setValueForUser(Element*, const String&);
319 322
320 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength); 323 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength);
321 324
322 private: 325 private:
323 explicit Internals(Document*); 326 explicit Internals(Document*);
324 Document* contextDocument() const; 327 Document* contextDocument() const;
325 LocalFrame* frame() const; 328 LocalFrame* frame() const;
326 Vector<String> iconURLs(Document*, int iconTypesMask) const; 329 Vector<String> iconURLs(Document*, int iconTypesMask) const;
327 PassRefPtr<ClientRectList> annotatedRegions(Document*, bool draggable, Excep tionState&); 330 PassRefPtr<ClientRectList> annotatedRegions(Document*, bool draggable, Excep tionState&);
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 RefPtr<DOMWindow> m_frontendWindow; 333 RefPtr<DOMWindow> m_frontendWindow;
331 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel; 334 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel;
332 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags; 335 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags;
333 RefPtrWillBeMember<InternalProfilers> m_profilers; 336 RefPtrWillBeMember<InternalProfilers> m_profilers;
334 }; 337 };
335 338
336 } // namespace WebCore 339 } // namespace WebCore
337 340
338 #endif 341 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698