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

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

Issue 997003004: [bindings] Migrate V8TestingScope out of V8Binding.h/cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/bindings/core/v8/ToV8Test.cpp ('k') | Source/bindings/core/v8/V8Binding.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) 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 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 992
993 virtual void requestInterrupt() override 993 virtual void requestInterrupt() override
994 { 994 {
995 m_isolate->RequestInterrupt(&onInterruptCallback, this); 995 m_isolate->RequestInterrupt(&onInterruptCallback, this);
996 } 996 }
997 997
998 private: 998 private:
999 v8::Isolate* m_isolate; 999 v8::Isolate* m_isolate;
1000 }; 1000 };
1001 1001
1002 class V8TestingScope {
1003 public:
1004 explicit V8TestingScope(v8::Isolate*);
1005 ScriptState* scriptState() const;
1006 v8::Isolate* isolate() const;
1007 ~V8TestingScope();
1008
1009 private:
1010 v8::HandleScope m_handleScope;
1011 v8::Context::Scope m_contextScope;
1012 RefPtr<ScriptState> m_scriptState;
1013 };
1014
1015 class DevToolsFunctionInfo final { 1002 class DevToolsFunctionInfo final {
1016 public: 1003 public:
1017 explicit DevToolsFunctionInfo(v8::Handle<v8::Function>& function) 1004 explicit DevToolsFunctionInfo(v8::Handle<v8::Function>& function)
1018 : m_scriptId(0) 1005 : m_scriptId(0)
1019 , m_lineNumber(1) 1006 , m_lineNumber(1)
1020 , m_function(function) 1007 , m_function(function)
1021 { 1008 {
1022 ASSERT(!m_function.IsEmpty()); 1009 ASSERT(!m_function.IsEmpty());
1023 } 1010 }
1024 1011
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 1046
1060 // Callback functions used by generated code. 1047 // Callback functions used by generated code.
1061 void v8ConstructorAttributeGetterAsProperty(v8::Local<v8::Name> propertyName, co nst v8::PropertyCallbackInfo<v8::Value>&); 1048 void v8ConstructorAttributeGetterAsProperty(v8::Local<v8::Name> propertyName, co nst v8::PropertyCallbackInfo<v8::Value>&);
1062 void v8ConstructorAttributeGetterAsAccessor(const v8::FunctionCallbackInfo<v8::V alue>&); 1049 void v8ConstructorAttributeGetterAsAccessor(const v8::FunctionCallbackInfo<v8::V alue>&);
1063 1050
1064 typedef void (*InstallTemplateFunction)(v8::Local<v8::FunctionTemplate>, v8::Iso late*); 1051 typedef void (*InstallTemplateFunction)(v8::Local<v8::FunctionTemplate>, v8::Iso late*);
1065 1052
1066 } // namespace blink 1053 } // namespace blink
1067 1054
1068 #endif // V8Binding_h 1055 #endif // V8Binding_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ToV8Test.cpp ('k') | Source/bindings/core/v8/V8Binding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698