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

Side by Side Diff: Source/bindings/v8/ScriptState.h

Issue 15764004: DevTools: show extension name in console context switcher (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removing v8 api from agent code Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009, 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 { 63 {
64 return m_context.newLocal(m_isolate); 64 return m_context.newLocal(m_isolate);
65 } 65 }
66 66
67 v8::Isolate* isolate() 67 v8::Isolate* isolate()
68 { 68 {
69 return m_isolate; 69 return m_isolate;
70 } 70 }
71 71
72 DOMWindow* domWindow() const; 72 DOMWindow* domWindow() const;
73 DOMWrapperWorld *domWrapperWorld() const;
73 ScriptExecutionContext* scriptExecutionContext() const; 74 ScriptExecutionContext* scriptExecutionContext() const;
74 75
75 static ScriptState* forContext(v8::Local<v8::Context>); 76 static ScriptState* forContext(v8::Local<v8::Context>);
76 static ScriptState* current(); 77 static ScriptState* current();
77 78
78 protected: 79 protected:
79 ScriptState() 80 ScriptState()
80 : m_isolate(v8::Isolate::GetCurrent()) 81 : m_isolate(v8::Isolate::GetCurrent())
81 { 82 {
82 } 83 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 ScriptState* scriptStateFromNode(DOMWrapperWorld*, Node*); 135 ScriptState* scriptStateFromNode(DOMWrapperWorld*, Node*);
135 ScriptState* scriptStateFromPage(DOMWrapperWorld*, Page*); 136 ScriptState* scriptStateFromPage(DOMWrapperWorld*, Page*);
136 ScriptState* scriptStateFromWorkerContext(WorkerContext*); 137 ScriptState* scriptStateFromWorkerContext(WorkerContext*);
137 138
138 inline DOMWrapperWorld* debuggerWorld() { return mainThreadNormalWorld(); } 139 inline DOMWrapperWorld* debuggerWorld() { return mainThreadNormalWorld(); }
139 inline DOMWrapperWorld* pluginWorld() { return mainThreadNormalWorld(); } 140 inline DOMWrapperWorld* pluginWorld() { return mainThreadNormalWorld(); }
140 141
141 } 142 }
142 143
143 #endif // ScriptState_h 144 #endif // ScriptState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698