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

Side by Side Diff: chrome/renderer/external_extension.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/external_extension.h" 5 #include "chrome/renderer/external_extension.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 #include "chrome/common/render_messages.h" 9 #include "chrome/common/render_messages.h"
10 #include "chrome/common/search_provider.h" 10 #include "chrome/common/search_provider.h"
11 #include "content/public/renderer/render_view.h" 11 #include "content/public/renderer/render_view.h"
12 #include "third_party/WebKit/public/web/WebDocument.h" 12 #include "third_party/WebKit/public/web/WebDocument.h"
13 #include "third_party/WebKit/public/web/WebFrame.h" 13 #include "third_party/WebKit/public/web/WebFrame.h"
14 #include "third_party/WebKit/public/web/WebView.h" 14 #include "third_party/WebKit/public/web/WebView.h"
15 #include "v8/include/v8.h" 15 #include "v8/include/v8.h"
16 16
17 using WebKit::WebFrame; 17 using blink::WebFrame;
18 using WebKit::WebView; 18 using blink::WebView;
19 using content::RenderView; 19 using content::RenderView;
20 20
21 namespace extensions_v8 { 21 namespace extensions_v8 {
22 22
23 static const char* const kSearchProviderApi = 23 static const char* const kSearchProviderApi =
24 "var external;" 24 "var external;"
25 "if (!external)" 25 "if (!external)"
26 " external = {};" 26 " external = {};"
27 "external.AddSearchProvider = function(name) {" 27 "external.AddSearchProvider = function(name) {"
28 " native function NativeAddSearchProvider();" 28 " native function NativeAddSearchProvider();"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 return; 138 return;
139 } 139 }
140 args.GetReturnValue().Set(static_cast<int32_t>(install)); 140 args.GetReturnValue().Set(static_cast<int32_t>(install));
141 } 141 }
142 142
143 v8::Extension* ExternalExtension::Get() { 143 v8::Extension* ExternalExtension::Get() {
144 return new ExternalExtensionWrapper(); 144 return new ExternalExtensionWrapper();
145 } 145 }
146 146
147 } // namespace extensions_v8 147 } // namespace extensions_v8
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/webstore_bindings.cc ('k') | chrome/renderer/external_host_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698