diff options
Diffstat (limited to 'chrome/renderer/automation/dom_automation_v8_extension.cc')
-rw-r--r-- | chrome/renderer/automation/dom_automation_v8_extension.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/chrome/renderer/automation/dom_automation_v8_extension.cc b/chrome/renderer/automation/dom_automation_v8_extension.cc new file mode 100644 index 0000000..efe5ada --- /dev/null +++ b/chrome/renderer/automation/dom_automation_v8_extension.cc @@ -0,0 +1,19 @@ +// Copyright (c) 2010 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 "chrome/renderer/automation/dom_automation_v8_extension.h" + +#include "chrome/renderer/extensions/bindings_utils.h" +#include "grit/renderer_resources.h" + +using bindings_utils::GetStringResource; + +const char* DomAutomationV8Extension::kName = "chrome/domautomation"; + +v8::Extension* DomAutomationV8Extension::Get() { + static v8::Extension* extension = + new bindings_utils::ExtensionBase( + kName, GetStringResource<IDR_DOM_AUTOMATION_JS>(), 0, NULL); + return extension; +} |