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

Unified Diff: Source/bindings/v8/V8HiddenValue.cpp

Issue 351423002: Moved files under Source/bindings/v8 to Source/bindings/core/v8. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/v8/V8HiddenValue.h ('k') | Source/bindings/v8/V8Initializer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8HiddenValue.cpp
diff --git a/Source/bindings/v8/V8HiddenValue.cpp b/Source/bindings/v8/V8HiddenValue.cpp
deleted file mode 100644
index ab6e97d147c14cf1d920c7f6b206d3f63414d0aa..0000000000000000000000000000000000000000
--- a/Source/bindings/v8/V8HiddenValue.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-#include "bindings/v8/V8HiddenValue.h"
-
-#include "bindings/v8/ScriptWrappable.h"
-#include "bindings/v8/V8Binding.h"
-
-namespace WebCore {
-
-#define V8_DEFINE_METHOD(name) \
-v8::Handle<v8::String> V8HiddenValue::name(v8::Isolate* isolate) \
-{ \
- V8HiddenValue* hiddenValue = V8PerIsolateData::from(isolate)->hiddenValue(); \
- if (hiddenValue->m_##name.isEmpty()) { \
- hiddenValue->m_##name.set(isolate, v8AtomicString(isolate, #name)); \
- } \
- return hiddenValue->m_##name.newLocal(isolate); \
-}
-
-V8_HIDDEN_VALUES(V8_DEFINE_METHOD);
-
-v8::Local<v8::Value> V8HiddenValue::getHiddenValue(v8::Isolate* isolate, v8::Handle<v8::Object> object, v8::Handle<v8::String> key)
-{
- return object->GetHiddenValue(key);
-}
-
-bool V8HiddenValue::setHiddenValue(v8::Isolate* isolate, v8::Handle<v8::Object> object, v8::Handle<v8::String> key, v8::Handle<v8::Value> value)
-{
- return object->SetHiddenValue(key, value);
-}
-
-bool V8HiddenValue::deleteHiddenValue(v8::Isolate* isolate, v8::Handle<v8::Object> object, v8::Handle<v8::String> key)
-{
- return object->DeleteHiddenValue(key);
-}
-
-v8::Local<v8::Value> V8HiddenValue::getHiddenValueFromMainWorldWrapper(v8::Isolate* isolate, ScriptWrappable* wrappable, v8::Handle<v8::String> key)
-{
- v8::Local<v8::Object> wrapper = wrappable->newLocalWrapper(isolate);
- return wrapper.IsEmpty() ? v8::Local<v8::Value>() : getHiddenValue(isolate, wrapper, key);
-}
-
-} // namespace WebCore
« no previous file with comments | « Source/bindings/v8/V8HiddenValue.h ('k') | Source/bindings/v8/V8Initializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698