summaryrefslogtreecommitdiffstats
path: root/o3d/gpu/np_utils/default_np_object.h
diff options
context:
space:
mode:
authorapatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-11 18:48:49 +0000
committerapatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-11 18:48:49 +0000
commit85c5b0230b1a9a9d8e02ad6049c31bf55eb5c076 (patch)
treea4d8ddd09d0beeffa01b2ad9222698cd914b4717 /o3d/gpu/np_utils/default_np_object.h
parent5222bb1495ef2e9a6294da8a8f1b9c1dae2e54e4 (diff)
downloadchromium_src-85c5b0230b1a9a9d8e02ad6049c31bf55eb5c076.zip
chromium_src-85c5b0230b1a9a9d8e02ad6049c31bf55eb5c076.tar.gz
chromium_src-85c5b0230b1a9a9d8e02ad6049c31bf55eb5c076.tar.bz2
Reverting 31676.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31682 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/gpu/np_utils/default_np_object.h')
-rw-r--r--o3d/gpu/np_utils/default_np_object.h84
1 files changed, 0 insertions, 84 deletions
diff --git a/o3d/gpu/np_utils/default_np_object.h b/o3d/gpu/np_utils/default_np_object.h
deleted file mode 100644
index 575dabc..0000000
--- a/o3d/gpu/np_utils/default_np_object.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright (c) 2006-2008 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.
-
-#ifndef GPU_NP_UTILS_DEFAULT_NP_OBJECT_H_
-#define GPU_NP_UTILS_DEFAULT_NP_OBJECT_H_
-
-#include "base/basictypes.h"
-#include "gpu/np_utils/np_headers.h"
-
-namespace gpu_plugin {
-
-class BaseNPDispatcher;
-
-// This class implements each of the functions in the NPClass interface. They
-// all return error by default. Note that these are not virtual functions and
-// this is not an interface. This class can be used as a mixin so that an
-// NPObject class does not need to implement every NPClass function but rather
-// inherits a default from DefaultNPObject.
-template <typename RootClass>
-class DefaultNPObject : public RootClass {
- public:
- void Invalidate() {}
-
- bool HasMethod(NPIdentifier name) {
- return false;
- }
-
- bool Invoke(NPIdentifier name,
- const NPVariant* args,
- uint32_t num_args,
- NPVariant* result) {
- return false;
- }
-
- bool InvokeDefault(const NPVariant* args,
- uint32_t num_args,
- NPVariant* result) {
- return false;
- }
-
- bool HasProperty(NPIdentifier name) {
- return false;
- }
-
- bool GetProperty(NPIdentifier name, NPVariant* result) {
- return false;
- }
-
- bool SetProperty(NPIdentifier name, const NPVariant* value) {
- return false;
- }
-
- bool RemoveProperty(NPIdentifier name) {
- return false;
- }
-
- bool Enumerate(NPIdentifier** names,
- uint32_t* count) {
- *names = NULL;
- *count = 0;
- return true;
- }
-
- bool Construct(const NPVariant* args,
- uint32_t num_args,
- NPVariant* result) {
- return false;
- }
-
- static BaseNPDispatcher* GetDispatcherChain() {
- return NULL;
- }
-
- protected:
- DefaultNPObject() {}
- virtual ~DefaultNPObject() {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(DefaultNPObject);
-};
-} // namespace gpu_plugin
-
-#endif // GPU_NP_UTILS_DEFAULT_NP_OBJECT_H_