summaryrefslogtreecommitdiffstats
path: root/webkit/extensions
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-11 23:10:56 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-11 23:10:56 +0000
commit50285fffa5e44c61cbf6141908c6297fbd0b20d4 (patch)
tree5fb535a307298d93e4c885c40856303784cbf543 /webkit/extensions
parent1ad795b4c02d1fd42743252685bd411619a2d4e2 (diff)
downloadchromium_src-50285fffa5e44c61cbf6141908c6297fbd0b20d4.zip
chromium_src-50285fffa5e44c61cbf6141908c6297fbd0b20d4.tar.gz
chromium_src-50285fffa5e44c61cbf6141908c6297fbd0b20d4.tar.bz2
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
Diffstat (limited to 'webkit/extensions')
-rw-r--r--webkit/extensions/v8/gears_extension.cc44
-rw-r--r--webkit/extensions/v8/gears_extension.h23
2 files changed, 0 insertions, 67 deletions
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_