Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Side by Side Diff: chrome/renderer/extensions/document_custom_bindings.cc

Issue 63273002: Rename WebKit namespace to blink (part 4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/extensions/document_custom_bindings.h" 5 #include "chrome/renderer/extensions/document_custom_bindings.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "chrome/renderer/extensions/chrome_v8_context.h" 10 #include "chrome/renderer/extensions/chrome_v8_context.h"
(...skipping 15 matching lines...) Expand all
26 void DocumentCustomBindings::RegisterElement( 26 void DocumentCustomBindings::RegisterElement(
27 const v8::FunctionCallbackInfo<v8::Value>& args) { 27 const v8::FunctionCallbackInfo<v8::Value>& args) {
28 if (args.Length() != 2 || !args[0]->IsString() || !args[1]->IsObject()) { 28 if (args.Length() != 2 || !args[0]->IsString() || !args[1]->IsObject()) {
29 NOTREACHED(); 29 NOTREACHED();
30 return; 30 return;
31 } 31 }
32 32
33 std::string element_name(*v8::String::AsciiValue(args[0])); 33 std::string element_name(*v8::String::AsciiValue(args[0]));
34 v8::Local<v8::Object> options = args[1]->ToObject(); 34 v8::Local<v8::Object> options = args[1]->ToObject();
35 35
36 WebKit::WebExceptionCode ec = 0; 36 blink::WebExceptionCode ec = 0;
37 WebKit::WebDocument document = context()->web_frame()->document(); 37 blink::WebDocument document = context()->web_frame()->document();
38 v8::Handle<v8::Value> constructor = 38 v8::Handle<v8::Value> constructor =
39 document.registerEmbedderCustomElement( 39 document.registerEmbedderCustomElement(
40 WebKit::WebString::fromUTF8(element_name), options, ec); 40 blink::WebString::fromUTF8(element_name), options, ec);
41 args.GetReturnValue().Set(constructor); 41 args.GetReturnValue().Set(constructor);
42 } 42 }
43 43
44 } // namespace extensions 44 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/dispatcher.cc ('k') | chrome/renderer/extensions/dom_activity_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698