OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |