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

Side by Side Diff: content/renderer/web_ui_runner.cc

Issue 1113783002: Use Local instead of Handle in src/content/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months 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
« no previous file with comments | « content/renderer/web_ui_runner.h ('k') | content/shell/renderer/binding_helpers.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/renderer/web_ui_runner.h" 5 #include "content/renderer/web_ui_runner.h"
6 6
7 #include "content/public/renderer/render_frame.h" 7 #include "content/public/renderer/render_frame.h"
8 #include "gin/modules/module_registry.h" 8 #include "gin/modules/module_registry.h"
9 #include "gin/per_context_data.h" 9 #include "gin/per_context_data.h"
10 #include "gin/public/context_holder.h" 10 #include "gin/public/context_holder.h"
(...skipping 23 matching lines...) Expand all
34 34
35 WebUIRunner::~WebUIRunner() { 35 WebUIRunner::~WebUIRunner() {
36 } 36 }
37 37
38 void WebUIRunner::Run(const std::string& source, 38 void WebUIRunner::Run(const std::string& source,
39 const std::string& resource_name) { 39 const std::string& resource_name) {
40 frame_->executeScript( 40 frame_->executeScript(
41 blink::WebScriptSource(blink::WebString::fromUTF8(source))); 41 blink::WebScriptSource(blink::WebString::fromUTF8(source)));
42 } 42 }
43 43
44 v8::Handle<v8::Value> WebUIRunner::Call(v8::Handle<v8::Function> function, 44 v8::Local<v8::Value> WebUIRunner::Call(v8::Local<v8::Function> function,
45 v8::Handle<v8::Value> receiver, 45 v8::Local<v8::Value> receiver,
46 int argc, 46 int argc,
47 v8::Handle<v8::Value> argv[]) { 47 v8::Local<v8::Value> argv[]) {
48 return frame_->callFunctionEvenIfScriptDisabled(function, receiver, argc, 48 return frame_->callFunctionEvenIfScriptDisabled(function, receiver, argc,
49 argv); 49 argv);
50 } 50 }
51 51
52 gin::ContextHolder* WebUIRunner::GetContextHolder() { 52 gin::ContextHolder* WebUIRunner::GetContextHolder() {
53 return context_holder_; 53 return context_holder_;
54 } 54 }
55 55
56 } // namespace content 56 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/web_ui_runner.h ('k') | content/shell/renderer/binding_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698