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

Unified Diff: experimental/c_salt/instance.cc

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/instance.h ('k') | experimental/c_salt/integration_tests/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/c_salt/instance.cc
diff --git a/experimental/c_salt/instance.cc b/experimental/c_salt/instance.cc
deleted file mode 100644
index 87cacbf0d3ef048ed607cd4774c76a78528cc247..0000000000000000000000000000000000000000
--- a/experimental/c_salt/instance.cc
+++ /dev/null
@@ -1,51 +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.
-
-// TODO(c_salt authors): Make this API agnostic. Also maybe don't force it to
-// be a ScriptableNativeObjectInterface.
-
-#include "c_salt/instance.h"
-
-#include "c_salt/npapi/browser_binding.h"
-
-namespace c_salt {
-
-Instance::~Instance() {
- set_is_loaded(false);
-}
-
-void Instance::InitializeMethods(ScriptingBridge* bridge) {
-}
-
-void Instance::InitializeProperties(ScriptingBridge* bridge) {
-}
-
-bool Instance::InstanceDidLoad(int width, int height) {
- return true;
-}
-
-void Instance::WindowDidChangeSize(int width, int height) {
-}
-
-bool Instance::ReceiveEvent(const NPPepperEvent& event) {
- return false;
-}
-
-void Instance::CreateScriptingBridgeForObject(
- SharedScriptableNativeObject native_object) {
- // Create the browser_binding. This is a synchronous call to the Browser.
- c_salt::npapi::BrowserBinding* browser_binding =
- c_salt::npapi::BrowserBinding::CreateBrowserBinding(*this);
- if (browser_binding) {
- SharedScriptingBridge bridge(browser_binding->scripting_bridge());
- // Tell the ScriptingBridge the object for which it is the bridge.
- bridge->set_native_object(native_object);
- // And initialize the native object with the bridge. This initializes
- // methods and properties and sets the ScriptableNativeObject up with a weak
- // reference back to the ScriptingBridge.
- native_object->Initialize(bridge);
- }
-}
-
-} // namespace c_salt
« no previous file with comments | « experimental/c_salt/instance.h ('k') | experimental/c_salt/integration_tests/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698