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

Unified Diff: sky/engine/bindings/core/v8/V8HiddenValue.cpp

Issue 922053002: Remove unused V8 integration code in Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « sky/engine/bindings/core/v8/V8HiddenValue.h ('k') | sky/engine/bindings/core/v8/V8Initializer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/bindings/core/v8/V8HiddenValue.cpp
diff --git a/sky/engine/bindings/core/v8/V8HiddenValue.cpp b/sky/engine/bindings/core/v8/V8HiddenValue.cpp
deleted file mode 100644
index 79aecb09fa49a8d41516224318e2d24a3c1ce579..0000000000000000000000000000000000000000
--- a/sky/engine/bindings/core/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 "sky/engine/config.h"
-#include "sky/engine/bindings/core/v8/V8HiddenValue.h"
-
-#include "sky/engine/bindings/core/v8/ScriptWrappable.h"
-#include "sky/engine/bindings/core/v8/V8Binding.h"
-
-namespace blink {
-
-#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 blink
« no previous file with comments | « sky/engine/bindings/core/v8/V8HiddenValue.h ('k') | sky/engine/bindings/core/v8/V8Initializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698