From 50285fffa5e44c61cbf6141908c6297fbd0b20d4 Mon Sep 17 00:00:00 2001 From: "aa@chromium.org" Date: Fri, 11 Mar 2011 23:10:56 +0000 Subject: Remove Gears from Chrome. There are probably a few more bits and pieces that can be removed, but I think this is the majority of it. BUG=51934 Review URL: http://codereview.chromium.org/6576020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77888 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/extensions/v8/gears_extension.cc | 44 --------------------------------- webkit/extensions/v8/gears_extension.h | 23 ----------------- 2 files changed, 67 deletions(-) delete mode 100644 webkit/extensions/v8/gears_extension.cc delete mode 100644 webkit/extensions/v8/gears_extension.h (limited to 'webkit/extensions') diff --git a/webkit/extensions/v8/gears_extension.cc b/webkit/extensions/v8/gears_extension.cc deleted file mode 100644 index 200135d..0000000 --- a/webkit/extensions/v8/gears_extension.cc +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2006-2009 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 "webkit/extensions/v8/gears_extension.h" - -namespace extensions_v8 { - -const char* const kGearsExtensionName = "v8/Gears"; - -// Note: when a page touches the "google.gears.factory" object, this script -// touches the DOM. We expect the DOM to be available at that time. -const char* const kGearsExtensionScript = - "var google;" - "if (!google)" - " google = {};" - "if (!google.gears)" - " google.gears = {};" - "(function() {" - " var factory = null;" - " google.gears.__defineGetter__('factory', function() {" - " if (!factory) {" - " factory = document.createElement('object');" - " factory.width = 0;" - " factory.height = 0;" - " factory.style.visibility = 'hidden';" - " factory.type = 'application/x-googlegears';" - " document.documentElement.appendChild(factory);" - " }" - " return factory;" - " });" - "})();"; - -class GearsExtensionWrapper : public v8::Extension { - public: - GearsExtensionWrapper() - : v8::Extension(kGearsExtensionName, kGearsExtensionScript) {} -}; - -v8::Extension* GearsExtension::Get() { - return new GearsExtensionWrapper(); -} - -} // namespace extensions_v8 diff --git a/webkit/extensions/v8/gears_extension.h b/webkit/extensions/v8/gears_extension.h deleted file mode 100644 index cb828438..0000000 --- a/webkit/extensions/v8/gears_extension.h +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) 2006-2009 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. - -// The GearsExtension is a v8 extension to add a "google.gears.factory" getter -// on the page, which, when accessed, lazily inserts the gears plugin into -// the page and attaches it to the factory variable. - -#ifndef WEBKIT_EXTENSIONS_V8_GEARS_EXTENSION_H_ -#define WEBKIT_EXTENSIONS_V8_GEARS_EXTENSION_H_ - -#include "v8/include/v8.h" - -namespace extensions_v8 { - -class GearsExtension { - public: - static v8::Extension* Get(); -}; - -} // namespace extensions_v8 - -#endif // WEBKIT_EXTENSIONS_V8_GEARS_EXTENSION_H_ -- cgit v1.1