| Index: chrome/renderer/extensions/css_native_handler.cc
|
| diff --git a/chrome/renderer/extensions/css_native_handler.cc b/chrome/renderer/extensions/css_native_handler.cc
|
| deleted file mode 100644
|
| index e5a94ca48b8b4f90ece46c81f56f5366c6b23269..0000000000000000000000000000000000000000
|
| --- a/chrome/renderer/extensions/css_native_handler.cc
|
| +++ /dev/null
|
| @@ -1,35 +0,0 @@
|
| -// Copyright 2013 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/extensions/css_native_handler.h"
|
| -
|
| -#include "chrome/renderer/extensions/chrome_v8_context.h"
|
| -#include "third_party/WebKit/public/platform/WebString.h"
|
| -#include "third_party/WebKit/public/web/WebScriptBindings.h"
|
| -#include "third_party/WebKit/public/web/WebSelector.h"
|
| -
|
| -namespace extensions {
|
| -
|
| -using blink::WebString;
|
| -
|
| -CssNativeHandler::CssNativeHandler(ChromeV8Context* context)
|
| - : ObjectBackedNativeHandler(context) {
|
| - RouteFunction("CanonicalizeCompoundSelector",
|
| - base::Bind(&CssNativeHandler::CanonicalizeCompoundSelector,
|
| - base::Unretained(this)));
|
| -}
|
| -
|
| -void CssNativeHandler::CanonicalizeCompoundSelector(
|
| - const v8::FunctionCallbackInfo<v8::Value>& args) {
|
| - CHECK_EQ(args.Length(), 1);
|
| - CHECK(args[0]->IsString());
|
| - WebString input_selector =
|
| - blink::WebScriptBindings::toWebString(args[0].As<v8::String>());
|
| - WebString output_selector = blink::canonicalizeSelector(
|
| - input_selector, blink::WebSelectorTypeCompound);
|
| - args.GetReturnValue().Set(blink::WebScriptBindings::toV8String(
|
| - output_selector, context()->v8_context()->GetIsolate()));
|
| -}
|
| -
|
| -} // namespace extensions
|
|
|