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

Unified Diff: experimental/c_salt/scriptable_native_object.h

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 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 | « experimental/c_salt/rect.cc ('k') | experimental/c_salt/scriptable_native_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/c_salt/scriptable_native_object.h
diff --git a/experimental/c_salt/scriptable_native_object.h b/experimental/c_salt/scriptable_native_object.h
deleted file mode 100644
index b8c58d866e587ee38bd258466bd80a2a9a51ff81..0000000000000000000000000000000000000000
--- a/experimental/c_salt/scriptable_native_object.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2010 The Ginsu Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can
-// be found in the LICENSE file.
-
-#ifndef C_SALT_SCRIPTABLE_NATIVE_OBJECT_H_
-#define C_SALT_SCRIPTABLE_NATIVE_OBJECT_H_
-
-#include "c_salt/scripting_bridge_ptrs.h"
-
-namespace c_salt {
-
-// The base class for C++ classes which are Scriptable, where Scriptable means
-// they can be accessed from JavaScript. Scriptable C++ classes expose their
-// methods and properties to JavaScript via ScriptingBridge.
-class ScriptableNativeObject {
- public:
- ScriptableNativeObject() {}
- virtual ~ScriptableNativeObject() {}
-
- // Initialize the ScriptableNativeObject. This invokes appropriate virtual
- // functions on the child class to give it an opportunity to register methods
- // and properties with the ScriptingBridge.
- void Initialize(SharedScriptingBridge bridge);
-
- // Return the ScriptingBridge which is associated with this object.
- WeakScriptingBridge GetScriptingBridge();
-
-
- private:
- // Called during initialization to publish the module's method names that
- // can be called from JavaScript.
- virtual void InitializeMethods(ScriptingBridge* bridge) = 0;
-
- // Called during initialization to publish the module's properties that can
- // be called from JavaScript.
- virtual void InitializeProperties(ScriptingBridge* bridge) = 0;
-
- private:
- // Copy and assign are unsupported and therefore not implemented.
- ScriptableNativeObject(const ScriptableNativeObject&);
- ScriptableNativeObject& operator=(const ScriptableNativeObject&);
- WeakScriptingBridge scripting_bridge_;
-};
-
-} // namespace c_salt
-
-#endif // C_SALT_SCRIPTABLE_NATIVE_OBJECT_H_
« no previous file with comments | « experimental/c_salt/rect.cc ('k') | experimental/c_salt/scriptable_native_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698