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

Side by Side Diff: third_party/WebKit/Source/platform/bindings/V8DOMWrapper.h

Issue 2851563004: Add documentation for platform/bindings (Closed)
Patch Set: Address code review Created 3 years, 7 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 * 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 26 matching lines...) Expand all
37 #include "platform/bindings/V8Binding.h" 37 #include "platform/bindings/V8Binding.h"
38 #include "platform/bindings/WrapperCreationSecurityCheck.h" 38 #include "platform/bindings/WrapperCreationSecurityCheck.h"
39 #include "platform/wtf/Compiler.h" 39 #include "platform/wtf/Compiler.h"
40 #include "platform/wtf/text/AtomicString.h" 40 #include "platform/wtf/text/AtomicString.h"
41 #include "v8/include/v8.h" 41 #include "v8/include/v8.h"
42 42
43 namespace blink { 43 namespace blink {
44 44
45 struct WrapperTypeInfo; 45 struct WrapperTypeInfo;
46 46
47 // Contains utility methods to create wrappers, associate ScriptWrappable
48 // objects with wrappers and set fields in wrappers.
47 class V8DOMWrapper { 49 class V8DOMWrapper {
48 STATIC_ONLY(V8DOMWrapper); 50 STATIC_ONLY(V8DOMWrapper);
49 51
50 public: 52 public:
51 static v8::Local<v8::Object> CreateWrapper( 53 static v8::Local<v8::Object> CreateWrapper(
52 v8::Isolate*, 54 v8::Isolate*,
53 v8::Local<v8::Object> creation_context, 55 v8::Local<v8::Object> creation_context,
54 const WrapperTypeInfo*); 56 const WrapperTypeInfo*);
55 PLATFORM_EXPORT static bool IsWrapper(v8::Isolate*, v8::Local<v8::Value>); 57 PLATFORM_EXPORT static bool IsWrapper(v8::Isolate*, v8::Local<v8::Value>);
56 58
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 bool did_enter_context_; 188 bool did_enter_context_;
187 v8::Local<v8::Context> context_; 189 v8::Local<v8::Context> context_;
188 v8::TryCatch try_catch_; 190 v8::TryCatch try_catch_;
189 const WrapperTypeInfo* type_; 191 const WrapperTypeInfo* type_;
190 bool access_check_failed_; 192 bool access_check_failed_;
191 }; 193 };
192 194
193 } // namespace blink 195 } // namespace blink
194 196
195 #endif // V8DOMWrapper_h 197 #endif // V8DOMWrapper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698