| OLD | NEW |
| 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 "content/renderer/browser_plugin/browser_plugin_bindings.h" | 5 #include "content/renderer/browser_plugin/browser_plugin_bindings.h" |
| 6 | 6 |
| 7 #include <cstdlib> | |
| 8 #include <string> | 7 #include <string> |
| 9 | 8 |
| 10 #include "base/bind.h" | |
| 11 #include "base/message_loop/message_loop.h" | |
| 12 #include "base/strings/string16.h" | |
| 13 #include "base/strings/string_number_conversions.h" | |
| 14 #include "base/strings/string_split.h" | |
| 15 #include "base/strings/utf_string_conversions.h" | |
| 16 #include "content/common/browser_plugin/browser_plugin_constants.h" | 9 #include "content/common/browser_plugin/browser_plugin_constants.h" |
| 17 #include "content/public/renderer/v8_value_converter.h" | |
| 18 #include "content/renderer/browser_plugin/browser_plugin.h" | 10 #include "content/renderer/browser_plugin/browser_plugin.h" |
| 19 #include "third_party/WebKit/public/platform/WebString.h" | |
| 20 #include "third_party/WebKit/public/web/WebBindings.h" | 11 #include "third_party/WebKit/public/web/WebBindings.h" |
| 21 #include "third_party/WebKit/public/web/WebDOMMessageEvent.h" | |
| 22 #include "third_party/WebKit/public/web/WebDocument.h" | |
| 23 #include "third_party/WebKit/public/web/WebElement.h" | |
| 24 #include "third_party/WebKit/public/web/WebFrame.h" | |
| 25 #include "third_party/WebKit/public/web/WebNode.h" | |
| 26 #include "third_party/WebKit/public/web/WebPluginContainer.h" | |
| 27 #include "third_party/WebKit/public/web/WebView.h" | |
| 28 #include "third_party/npapi/bindings/npapi.h" | 12 #include "third_party/npapi/bindings/npapi.h" |
| 29 #include "v8/include/v8.h" | |
| 30 | 13 |
| 31 using blink::WebBindings; | 14 using blink::WebBindings; |
| 32 using blink::WebElement; | |
| 33 using blink::WebDOMEvent; | |
| 34 using blink::WebDOMMessageEvent; | |
| 35 using blink::WebPluginContainer; | |
| 36 using blink::WebString; | |
| 37 | 15 |
| 38 namespace content { | 16 namespace content { |
| 39 | 17 |
| 40 namespace { | 18 namespace { |
| 41 | 19 |
| 42 BrowserPluginBindings* GetBindings(NPObject* object) { | 20 BrowserPluginBindings* GetBindings(NPObject* object) { |
| 43 return static_cast<BrowserPluginBindings::BrowserPluginNPObject*>(object)-> | 21 return static_cast<BrowserPluginBindings::BrowserPluginNPObject*>(object)-> |
| 44 message_channel.get(); | 22 message_channel.get(); |
| 45 } | 23 } |
| 46 | 24 |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 for (PropertyBindingList::iterator iter = property_bindings_.begin(); | 285 for (PropertyBindingList::iterator iter = property_bindings_.begin(); |
| 308 iter != property_bindings_.end(); | 286 iter != property_bindings_.end(); |
| 309 ++iter) { | 287 ++iter) { |
| 310 if ((*iter)->MatchesName(name)) | 288 if ((*iter)->MatchesName(name)) |
| 311 return (*iter)->GetProperty(this, result); | 289 return (*iter)->GetProperty(this, result); |
| 312 } | 290 } |
| 313 return false; | 291 return false; |
| 314 } | 292 } |
| 315 | 293 |
| 316 } // namespace content | 294 } // namespace content |
| OLD | NEW |