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

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

Issue 2692753003: [Bindings] Update runtime enabled features from partial interfaces (Closed)
Patch Set: Remove needless classname addition 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 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 1071
1072 void requestInterrupt() override { 1072 void requestInterrupt() override {
1073 m_isolate->RequestInterrupt(&onInterruptCallback, this); 1073 m_isolate->RequestInterrupt(&onInterruptCallback, this);
1074 } 1074 }
1075 1075
1076 private: 1076 private:
1077 v8::Isolate* m_isolate; 1077 v8::Isolate* m_isolate;
1078 }; 1078 };
1079 1079
1080 typedef void (*InstallTemplateFunction)( 1080 typedef void (*InstallTemplateFunction)(
1081 v8::Isolate*, 1081 v8::Isolate* isolate,
1082 const DOMWrapperWorld&, 1082 const DOMWrapperWorld& world,
1083 v8::Local<v8::FunctionTemplate> interfaceTemplate); 1083 v8::Local<v8::FunctionTemplate> interfaceTemplate);
1084 typedef void (*InstallRuntimeEnabledFunction)(
Yuki 2017/02/13 12:15:03 nit: We don't need to expose this type to anything
1085 v8::Isolate* isolate,
1086 const DOMWrapperWorld& world,
1087 v8::Local<v8::Object> instance,
1088 v8::Local<v8::Object> prototype,
1089 v8::Local<v8::Function> interface);
1084 1090
1085 // Freeze a V8 object. The type of the first parameter and the return value is 1091 // Freeze a V8 object. The type of the first parameter and the return value is
1086 // intentionally v8::Value so that this function can wrap ToV8(). 1092 // intentionally v8::Value so that this function can wrap ToV8().
1087 // If the argument isn't an object, this will crash. 1093 // If the argument isn't an object, this will crash.
1088 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>, 1094 CORE_EXPORT v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value>,
1089 v8::Isolate*); 1095 v8::Isolate*);
1090 1096
1091 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*, 1097 CORE_EXPORT v8::Local<v8::Value> fromJSONString(v8::Isolate*,
1092 const String& stringifiedJSON, 1098 const String& stringifiedJSON,
1093 ExceptionState&); 1099 ExceptionState&);
1094 } // namespace blink 1100 } // namespace blink
1095 1101
1096 #endif // V8Binding_h 1102 #endif // V8Binding_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698