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

Unified Diff: gpu/np_utils/np_browser.cc

Issue 481007: Deleted np_utils library. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years 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 | « gpu/np_utils/np_browser.h ('k') | gpu/np_utils/np_browser_mock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/np_utils/np_browser.cc
===================================================================
--- gpu/np_utils/np_browser.cc (revision 34090)
+++ gpu/np_utils/np_browser.cc (working copy)
@@ -1,123 +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.
-
-#include "gpu/np_utils/np_browser.h"
-#include "base/logging.h"
-#include "webkit/glue/plugins/nphostapi.h"
-
-namespace np_utils {
-
-NPBrowser* NPBrowser::browser_;
-
-NPBrowser::NPBrowser(NPNetscapeFuncs* funcs)
- : netscape_funcs_(funcs) {
- // Make this the first browser in the linked list.
- previous_browser_ = browser_;
- browser_ = this;
-}
-
-NPBrowser::~NPBrowser() {
- // Remove this browser from the linked list.
- DCHECK(browser_ == this);
- browser_ = previous_browser_;
-}
-
-NPIdentifier NPBrowser::GetStringIdentifier(const NPUTF8* name) {
- return netscape_funcs_->getstringidentifier(name);
-}
-
-void* NPBrowser::MemAlloc(size_t size) {
- return netscape_funcs_->memalloc(size);
-}
-
-void NPBrowser::MemFree(void* p) {
- netscape_funcs_->memfree(p);
-}
-
-NPObject* NPBrowser::CreateObject(NPP npp, const NPClass* cl) {
- return netscape_funcs_->createobject(npp, const_cast<NPClass*>(cl));
-}
-
-NPObject* NPBrowser::RetainObject(NPObject* object) {
- return netscape_funcs_->retainobject(object);
-}
-
-void NPBrowser::ReleaseObject(NPObject* object) {
- netscape_funcs_->releaseobject(object);
-}
-
-void NPBrowser::ReleaseVariantValue(NPVariant* variant) {
- netscape_funcs_->releasevariantvalue(variant);
-}
-
-bool NPBrowser::HasProperty(NPP npp,
- NPObject* object,
- NPIdentifier name) {
- return netscape_funcs_->hasproperty(npp, object, name);
-}
-
-bool NPBrowser::GetProperty(NPP npp,
- NPObject* object,
- NPIdentifier name,
- NPVariant* result) {
- return netscape_funcs_->getproperty(npp, object, name, result);
-}
-
-bool NPBrowser::SetProperty(NPP npp,
- NPObject* object,
- NPIdentifier name,
- const NPVariant* result) {
- return netscape_funcs_->setproperty(npp, object, name, result);
-}
-
-bool NPBrowser::RemoveProperty(NPP npp,
- NPObject* object,
- NPIdentifier name) {
- return netscape_funcs_->removeproperty(npp, object, name);
-}
-
-bool NPBrowser::HasMethod(NPP npp,
- NPObject* object,
- NPIdentifier name) {
- return netscape_funcs_->hasmethod(npp, object, name);
-}
-
-bool NPBrowser::Invoke(NPP npp,
- NPObject* object,
- NPIdentifier name,
- const NPVariant* args,
- uint32_t num_args,
- NPVariant* result) {
- return netscape_funcs_->invoke(npp, object, name, args, num_args, result);
-}
-
-NPObject* NPBrowser::GetWindowNPObject(NPP npp) {
- NPObject* window;
- if (NPERR_NO_ERROR == netscape_funcs_->getvalue(npp,
- NPNVWindowNPObject,
- &window)) {
- return window;
- } else {
- return NULL;
- }
-}
-
-void NPBrowser::PluginThreadAsyncCall(NPP npp,
- PluginThreadAsyncCallProc callback,
- void* data) {
- netscape_funcs_->pluginthreadasynccall(npp, callback, data);
-}
-
-uint32 NPBrowser::ScheduleTimer(NPP npp,
- uint32 interval,
- bool repeat,
- TimerProc callback) {
- return netscape_funcs_->scheduletimer(npp, interval, repeat, callback);
-}
-
-void NPBrowser::UnscheduleTimer(NPP npp, uint32 timer_id) {
- netscape_funcs_->unscheduletimer(npp, timer_id);
-}
-
-} // namespace np_utils
« no previous file with comments | « gpu/np_utils/np_browser.h ('k') | gpu/np_utils/np_browser_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698