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

Side by Side Diff: chrome/renderer/web_ui_bindings.cc

Issue 6513010: WebUI: Get rid of more references to DOMUI in the rest of the directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/web_ui_bindings.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/web_ui_bindings.h" 5 #include "chrome/renderer/web_ui_bindings.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "base/stl_util-inl.h" 9 #include "base/stl_util-inl.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 81
82 // Retrieve the source frame's url 82 // Retrieve the source frame's url
83 GURL source_url; 83 GURL source_url;
84 WebKit::WebFrame* webframe = WebKit::WebFrame::frameForCurrentContext(); 84 WebKit::WebFrame* webframe = WebKit::WebFrame::frameForCurrentContext();
85 if (webframe) 85 if (webframe)
86 source_url = webframe->url(); 86 source_url = webframe->url();
87 87
88 // Send the message up to the browser. 88 // Send the message up to the browser.
89 sender()->Send( 89 sender()->Send(
90 new ViewHostMsg_DOMUISend(routing_id(), source_url, message, content)); 90 new ViewHostMsg_WebUISend(routing_id(), source_url, message, content));
91 } 91 }
92 92
93 void DOMBoundBrowserObject::SetProperty(const std::string& name, 93 void DOMBoundBrowserObject::SetProperty(const std::string& name,
94 const std::string& value) { 94 const std::string& value) {
95 CppVariant* cpp_value = new CppVariant; 95 CppVariant* cpp_value = new CppVariant;
96 cpp_value->Set(value); 96 cpp_value->Set(value);
97 BindProperty(name, cpp_value); 97 BindProperty(name, cpp_value);
98 properties_.push_back(cpp_value); 98 properties_.push_back(cpp_value);
99 } 99 }
OLDNEW
« no previous file with comments | « chrome/renderer/web_ui_bindings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698