summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/automation/dom_automation_v8_extension.cc
blob: efe5ada46a9ffc7edfebb691fd20b309d62e6fc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
}