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

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

Issue 2697543003: Remove ToEventTarget (Closed)
Patch Set: Code review changes Created 3 years, 10 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Ericsson AB. All rights reserved. 3 * Copyright (C) 2012 Ericsson AB. 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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 CORE_EXPORT v8::Local<v8::Context> toV8Context(Frame*, DOMWrapperWorld&); 988 CORE_EXPORT v8::Local<v8::Context> toV8Context(Frame*, DOMWrapperWorld&);
989 // Like toV8Context but also returns the context if the frame is already 989 // Like toV8Context but also returns the context if the frame is already
990 // detached. 990 // detached.
991 CORE_EXPORT v8::Local<v8::Context> toV8ContextEvenIfDetached(Frame*, 991 CORE_EXPORT v8::Local<v8::Context> toV8ContextEvenIfDetached(Frame*,
992 DOMWrapperWorld&); 992 DOMWrapperWorld&);
993 993
994 // Returns the frame object of the window object associated with 994 // Returns the frame object of the window object associated with
995 // a context, if the window is currently being displayed in a Frame. 995 // a context, if the window is currently being displayed in a Frame.
996 CORE_EXPORT Frame* toFrameIfNotDetached(v8::Local<v8::Context>); 996 CORE_EXPORT Frame* toFrameIfNotDetached(v8::Local<v8::Context>);
997 997
998 CORE_EXPORT EventTarget* toEventTarget(v8::Isolate*, v8::Local<v8::Value>);
999
1000 // If 'storage' is non-null, it must be large enough to copy all bytes in the 998 // If 'storage' is non-null, it must be large enough to copy all bytes in the
1001 // array buffer view into it. Use allocateFlexibleArrayBufferStorage(v8Value) 999 // array buffer view into it. Use allocateFlexibleArrayBufferStorage(v8Value)
1002 // to allocate it using alloca() in the callers stack frame. 1000 // to allocate it using alloca() in the callers stack frame.
1003 CORE_EXPORT void toFlexibleArrayBufferView(v8::Isolate*, 1001 CORE_EXPORT void toFlexibleArrayBufferView(v8::Isolate*,
1004 v8::Local<v8::Value>, 1002 v8::Local<v8::Value>,
1005 FlexibleArrayBufferView&, 1003 FlexibleArrayBufferView&,
1006 void* storage = nullptr); 1004 void* storage = nullptr);
1007 1005
1008 // Converts a V8 value to an array (an IDL sequence) as per the WebIDL 1006 // Converts a V8 value to an array (an IDL sequence) as per the WebIDL
1009 // specification: http://heycam.github.io/webidl/#es-sequence 1007 // specification: http://heycam.github.io/webidl/#es-sequence
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 // If the argument isn't an object, this will crash. 1154 // If the argument isn't an object, this will crash.
1157 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>, 1155 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>,
1158 v8::Isolate*); 1156 v8::Isolate*);
1159 1157
1160 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*, 1158 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*,
1161 const String& stringifiedJSON, 1159 const String& stringifiedJSON,
1162 ExceptionState&); 1160 ExceptionState&);
1163 } // namespace blink 1161 } // namespace blink
1164 1162
1165 #endif // V8Binding_h 1163 #endif // V8Binding_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698