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

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

Issue 8889041: first cut at uber page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: total different approach Created 9 years 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) 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 "content/renderer/web_ui_bindings.h" 5 #include "content/renderer/web_ui_bindings.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 // Send the message up to the browser. 93 // Send the message up to the browser.
94 sender_->Send(new ViewHostMsg_WebUISend( 94 sender_->Send(new ViewHostMsg_WebUISend(
95 routing_id_, 95 routing_id_,
96 source_url, 96 source_url,
97 message, 97 message,
98 *(static_cast<ListValue*>(content.get())))); 98 *(static_cast<ListValue*>(content.get()))));
99 } 99 }
100 100
101 void DOMBoundBrowserObject::SetProperty(const std::string& name, 101 void DOMBoundBrowserObject::SetProperty(const std::string& name,
102 const std::string& value) { 102 const std::string& value) {
103 CppVariant* cpp_value = new CppVariant; 103 CppVariant* cpp_value = new CppVariant;
104 cpp_value->Set(value); 104 cpp_value->Set(value);
105 BindProperty(name, cpp_value); 105 BindProperty(name, cpp_value);
106 properties_.push_back(cpp_value); 106 properties_.push_back(cpp_value);
107 } 107 }
OLDNEW
« chrome/common/url_constants.cc ('K') | « content/browser/webui/web_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698