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

Side by Side Diff: Source/bindings/dart/DartDOMData.h

Issue 33973002: Fix for https://code.google.com/p/dart/issues/detail?id=5851 Proper line #s and columns for Dart er… (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: ready to review Created 7 years, 2 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef DartDOMData_h 31 #ifndef DartDOMData_h
32 #define DartDOMData_h 32 #define DartDOMData_h
33 33
34 #include "DartJsInteropData.h" 34 #include "DartJsInteropData.h"
35 #include "DartWebkitClassIds.h" 35 #include "DartWebkitClassIds.h"
36 36
37 #include "bindings/dart/DartCustomElementBinding.h" 37 #include "bindings/dart/DartCustomElementBinding.h"
38 #include "bindings/dart/DartLibraryIds.h" 38 #include "bindings/dart/DartLibraryIds.h"
39 #include "bindings/dart/DartScriptState.h"
39 #include "bindings/dart/DartStringCache.h" 40 #include "bindings/dart/DartStringCache.h"
40 41
41 #include "wtf/HashMap.h" 42 #include "wtf/HashMap.h"
42 #include "wtf/HashSet.h" 43 #include "wtf/HashSet.h"
43 #include "wtf/RefPtr.h" 44 #include "wtf/RefPtr.h"
44 #include "wtf/Threading.h" 45 #include "wtf/Threading.h"
45 #include "wtf/ThreadingPrimitives.h" 46 #include "wtf/ThreadingPrimitives.h"
46 #include "wtf/Vector.h" 47 #include "wtf/Vector.h"
47 #include "wtf/text/WTFString.h" 48 #include "wtf/text/WTFString.h"
48 49
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 void setJsLibrary(Dart_PersistentHandle lib) 204 void setJsLibrary(Dart_PersistentHandle lib)
204 { 205 {
205 m_libraryHandleCache[DartJsLibraryId] = lib; 206 m_libraryHandleCache[DartJsLibraryId] = lib;
206 } 207 }
207 208
208 DartJsInteropData* jsInteropData() 209 DartJsInteropData* jsInteropData()
209 { 210 {
210 return &m_jsInteropData; 211 return &m_jsInteropData;
211 } 212 }
212 213
214 DartScriptState* rootScriptState()
215 {
216 return m_rootScriptState;
217 }
218
219 DartScriptState* setRootScriptState(DartScriptState* scriptState)
220 {
221 m_rootScriptState = scriptState;
222 }
223
213 private: 224 private:
214 ScriptExecutionContext* m_scriptExecutionContext; 225 ScriptExecutionContext* m_scriptExecutionContext;
215 bool m_isDOMEnabled; 226 bool m_isDOMEnabled;
216 int m_recursion; 227 int m_recursion;
217 DartStringCache m_stringCache; 228 DartStringCache m_stringCache;
218 RefPtr<ThreadSafeDartIsolateWrapper> m_threadSafeIsolateWrapper; 229 RefPtr<ThreadSafeDartIsolateWrapper> m_threadSafeIsolateWrapper;
219 Mutex m_isolateWrapperMutex; 230 Mutex m_isolateWrapperMutex;
220 RefPtr<DartApplicationLoader> m_applicationLoader; 231 RefPtr<DartApplicationLoader> m_applicationLoader;
221 RefPtr<DartAsyncLoader> m_asyncLoader; 232 RefPtr<DartAsyncLoader> m_asyncLoader;
222 Vector<uint8_t> m_applicationSnapshot; 233 Vector<uint8_t> m_applicationSnapshot;
223 Dart_WeakPersistentHandle m_reachableWeakHandle; 234 Dart_WeakPersistentHandle m_reachableWeakHandle;
224 235
225 DartJsInteropData m_jsInteropData; 236 DartJsInteropData m_jsInteropData;
226 DartDOMNodeMap m_nodeMap; 237 DartDOMNodeMap m_nodeMap;
227 DartDOMObjectMap m_objectMap; 238 DartDOMObjectMap m_objectMap;
228 DartMessagePortMap m_messagePortMap; 239 DartMessagePortMap m_messagePortMap;
229 DartActiveDOMObjectMap m_activeObjectMap; 240 DartActiveDOMObjectMap m_activeObjectMap;
230 DartEventTargetMap m_eventTargetMap; 241 DartEventTargetMap m_eventTargetMap;
231 DartWeakCallbacks m_weakCallbacks; 242 DartWeakCallbacks m_weakCallbacks;
232 DartIsolateDestructionObservers m_isolateDestructionObservers; 243 DartIsolateDestructionObservers m_isolateDestructionObservers;
233 DartCustomElementBindingMap m_customElementBindings; 244 DartCustomElementBindingMap m_customElementBindings;
234 ClassTable m_classHandleCache; 245 ClassTable m_classHandleCache;
235 LibraryTable m_libraryHandleCache; 246 LibraryTable m_libraryHandleCache;
247 DartScriptState* m_rootScriptState;
236 }; 248 };
237 249
238 } 250 }
239 251
240 #endif // DartDOMData_h 252 #endif // DartDOMData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698